[OpenJDK 2D-Dev] RFR: 8089573: [macosx] Incorrect char to glyph mapping printing on OSX 10.10

Philip Race philip.race at oracle.com
Wed Oct 12 20:06:24 UTC 2016


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

See the bug for some images showing the problem of scrambled text
when printing.

Although only JavaFX is affected the solution is entirely on the JDK side.

JavaFX looks up some UI "system" fonts via special API calls and these 
are fonts
that are not otherwise enumerated by CoreText.
JavaFX expects JDK to be able to access these fonts but it cannot.
We need to make the same API calls on JDK.
The exact fonts returned vary by MacOS release so it seems hard to 
create a JDK regression
test but on the FX side it is seen instantly if you print a UI control 
as the text is messed up
due to incorrect glyph ids.

I intend to backport this to 8u and I've verified this does fix it on 8u 
too ..

Also both 8 & 9 build successfully with JPRT.

-phil.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20161012/5e2d405c/attachment.html>


More information about the 2d-dev mailing list