Oracle Community Directory
Oracle Community FAQ
My Oracle Support Community (MOSC)
Go Directly To
Oracle Technology Network Community
My Oracle Support Community
OPN Cloud Connection
Oracle Employee Community
Oracle User Group Community
Abstract Window Toolkit (AWT)
Please enter a title.
You can not post a blank message. Please type your message and try again.
This discussion is archived
: Sep 12, 2012 4:41 PM by
Load OTF font from file
Sep 12, 2012 4:23 PM
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
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?
This content has been marked as final.
Show 1 reply
Re: Load OTF font from file
Sep 12, 2012 4:41 PM
in response to
As it turns out, the OTF fonts load just fine with Font.TRUETYPE_FONT set as the font type.