SyntaxFix
Write A Post
Hire A Developer
Questions
If you want to use the font to draw with graphics2d or similar, this works:
InputStream stream = ClassLoader.getSystemClassLoader().getResourceAsStream("roboto-bold.ttf") Font font = Font.createFont(Font.TRUETYPE_FONT, stream).deriveFont(48f)