Trying to write a class:
private void gameLevel(Graphics g) {
try {
InputStream fnt_stream = getClass().getResourceAsStream("resources/iomanoid.ttf");
Font myFont = Font.createFont(Font.TRUETYPE_FONT, fnt_stream);
Font Iomanoid = new Font("Iomanoid", Font.BOLD, 40);
String msg = "Level";
g.setColor(Color.black);
g.setFont(Iomanoid);
g.drawString(msg, 111,111);
} catch (Exception ex) {
System.out.println(ex);
}
The message appears, but not with the font specified.