jeudi 12 mars 2015

How should I fix this fontloader?


Vote count:

0




So I'm trying to make a method that returns a font object - deriving it from a .ttf, but my code isn't working:



public Font loadFont(){
Font font = null;
try {
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
font = Font.createFont(Font.TRUETYPE_FONT, new File("vgafix.ttf"));
} catch (Exception e) {
//Handle exception
}
return font;
}


How would I fix this?


Thank you



asked 35 secs ago







How should I fix this fontloader?

Aucun commentaire:

Enregistrer un commentaire