This discussion is archived
1 Reply Latest reply: Sep 12, 2012 2:41 PM by 810719 RSS

Load OTF font from file

810719 Newbie
Currently Being Moderated
I've read in several places, that java 6+ supports OTF fonts, yet I can not find, how one can load an OpenType font frm a file.
There are numerous examples of how to load TTF fonts, by calling
Font.createFont(Font.TRUETYPE_FONT, fontFile);
but none seems to notice the glaringly obvious problem, that the OPENTYPE_FONT font type constant does not exist.

So... is it possible? How is it possible?


  • Correct Answers - 10 points
  • Helpful Answers - 5 points