我有一组由 Java 生成的步行图表。整个图表的标签在 Calibri 8 中并且一致。值是 0.00 时除外,这在 Arial 8 中很突出。
我把它追溯到这个类:
import java.text.MessageFormat;
public class ItemLabelGen extends StandardCategoryItemLabelGenerator {
public String GenLable(CategoryDataset ds, int row, int column) {
Number num = ds.getValue(row, column);
return MessageFormat.format("{0,number,#0.00}",num);
}
}
所以我的问题是,我如何在这里控制字体大小或字体本身?0.00 就像拇指酸痛一样突出,让我们的人们在这里疯狂。
如果我无法在 MessageFormat 中控制它,有什么办法可以强制它使用特定的字体,因为我有这个值?
蒂亚,乙