Skip to main content

Load and display OpenType Fonts

1 reply [Last post]
newcron
Offline
Joined: 2008-01-14

Hello,

I noticed that sun.font.FontManager.getFontsFromPlatform() does not return OpenType Fonts installed on a System (using Windows XP, SP2, Java 1.6.0_05-ea). Aswell creating new Font objects with OpenType Fonts as name does not work too.

Is there any way to load and render Fonts with Graphics2D, or is there any JSR/other library capable of that (as far as my googling skills tell: there isn't)?

regards,
newcron

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Phil Race

Depends what you mean by "OpenType". If you mean specifically the CFF
(Postscript outlines) subset of OpenType then JDK doesn't support that.
There's an open RFE on this : http://bugs.sun.com/view_bug.do?bug_id=4356282

-phil.

java2d@JAVADESKTOP.ORG wrote:
> Hello,
>
> I noticed that [i]sun.font.FontManager.getFontsFromPlatform()[/i] does not return OpenType Fonts installed on a System (using Windows XP, SP2, Java 1.6.0_05-ea). Aswell creating new Font objects with OpenType Fonts as name does not work too.
>
> Is there any way to load and render Fonts with Graphics2D, or is there any JSR/other library capable of that (as far as my googling skills tell: there isn't)?
>
> regards,
> newcron
> [Message sent by forum member 'newcron' (newcron)]
>
> http://forums.java.net/jive/thread.jspa?messageID=253698
>
> ===========================================================================
> To unsubscribe, send email to listserv@java.sun.com and include in the body
> of the message "signoff JAVA2D-INTEREST". For general help, send email to
> listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".