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.
精彩评论