开发者

Issue with Font through .ttf file

I Am loading a font through .ttf file in java but the size is coming as 1. How to make it more like 16

InputStream in = Check.class.getResourceAsStream("CALIBRI.T开发者_JAVA技巧TF");  
Font font = Font.createFont(Font.TRUETYPE_FONT, in); 


Use Font.deriveFont(Font, float) to derive a font with the desired size from the newly created font.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜