[OpenJDK 2D-Dev] RFR: 6232267: TrueType Fonts which have only Apple platform names cannot be loaded

Philip Race philip.race at oracle.com
Wed Jan 4 23:55:56 UTC 2017

Bug : https://bugs.openjdk.java.net/browse/JDK-6232267
Webrev : http://cr.openjdk.java.net/~prr/6232267/

Fonts such as "Menlo" on OS X have no Microsoft names
(see https://www.microsoft.com/typography/otspec/name.htm)
so historically we rejected these.

Now that we support OS X, this is more of an issue, and
it is possible to run into a case where we fail to parse these fonts
when they go through the Font.createFont() path, even on OS X.

This adds that basic support for parsing Apple names so that
we load the font. This support already exists on JavaFX.


More information about the 2d-dev mailing list