Supports fonts with Apple Platform Name Tags

Johnson Lau johnsonlaucn at gmail.com
Tue Jan 11 06:41:50 PST 2011


Hi,

Some fonts shipping with Mac, like STHeiti / Hiragino series, contains
tags with only Mac Platform ID (=1), which causes them wrongly treated
as invalid format by OpenJDK because OpenJDK recognizes name tags with
Platform ID of MS_PLATFORM_ID (=3) ONLY currently.

I added support for MAC_PLATFORM_ID and other possible values to make it
work in both OpenJDK 6 & 7.

Also, there is a patch backporting OpenType font support for OpenJDK 6.

I post the patches here and hope someone can review them.
Should I request RFEs in JDK bug database at first?

Johnson
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jdk6-apple-platform-ttf-and-opentype.tar.gz
Type: application/x-gzip
Size: 8105 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/jdk6-dev/attachments/20110111/4a500629/attachment-0002.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jdk7-apple-platform-ttf.patch.tar.gz
Type: application/x-gzip
Size: 7170 bytes
Desc: not available
Url : http://mail.openjdk.java.net/pipermail/jdk6-dev/attachments/20110111/4a500629/attachment-0003.bin 


More information about the jdk6-dev mailing list