This site is currently read-only as we are migrating to Oracle Forums for an improved community experience. You will not be able to initiate activity until January 30th, when you will be able to use this site as normal.

    Forum Stats

  • 3,889,794 Users
  • 2,269,775 Discussions
  • 7,916,823 Comments

Discussions

Load OTF font from file

810719
810719 Member Posts: 4
edited Sep 12, 2012 5:41PM in Abstract Window Toolkit (AWT)
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?

Answers

This discussion has been closed.