Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Load OTF font from file

810719Sep 12 2012 — edited Sep 12 2012
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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 10 2012
Added on Sep 12 2012
1 comment
4,935 views