Open GoogleCodeExporter opened 9 years ago
this is not a bug, is a enhacement and the proposed change to the class
Original comment by gabriel.tandil@gmail.com
on 13 Mar 2009 at 2:56
A possible solution would to allow a path be provided that can load the font
for us
as needed:
{{{
try {
Font t = Font.createFont(Font.TRUETYPE_FONT,
ComboBoxTest.class.getClassLoader().getResource("rsrc/fonts/adventure.ttf").open
Strea
m());
GraphicsEnvironment ge =
GraphicsEnvironment.getLocalGraphicsEnvironment();
ge.registerFont(t);
System.out.println("FONTFAMILY:"+t.getFamily());
} catch (Exception e) {
e.printStackTrace();
}
}}}
Original comment by Captain....@gmail.com
on 8 Dec 2009 at 6:31
Original issue reported on code.google.com by
gabriel.tandil@gmail.com
on 5 Mar 2009 at 5:01Attachments: