1.添加styles,名为style1;
2.添加condition styles,添加两个condition style,分别名为 style1和style2;
3.设置condition style 的属性:
(1)右击设置condition style 的Edit Condition 为 $F{FLAG}.equals("1")
(2)添加第二个condition style ,Edit Condition 为 $F{FLAG}.equals("0")
4.设置$F{FLAG}.equals("1")的属性,勾选blod。如下图:
5.设置元素的style属性,设置为style1;
6.最终效果,当字段FLAG的值为1时,字体加粗,为0时,字体不加粗,如下图: