Reputation: 8385
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.TTF");
Font font = Font.createFont(Font.TRUETYPE_FONT, in);
Upvotes: 1
Views: 828
Reputation: 308001
Use Font.deriveFont(Font, float)
to derive a font with the desired size from the newly created font.
Upvotes: 2