<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Bug: <a class="moz-txt-link-freetext" href="https://bugs.openjdk.java.net/browse/JDK-8089573">https://bugs.openjdk.java.net/browse/JDK-8089573</a><br>
Webrev : <a class="moz-txt-link-freetext" href="http://cr.openjdk.java.net/~prr/8089573/">http://cr.openjdk.java.net/~prr/8089573/</a><br>
<br>
See the bug for some images showing the problem of scrambled text<br>
when printing.<br>
<br>
<span class="diffcontext">Although only
JavaFX is affected the solution is entirely on the JDK side.</span>
<span class="diffaddedchars" style="background-color:#ddfade;"><br>
</span><font color="#000000"><br>
JavaFX looks up some UI "system" fonts via special API calls and
these are fonts<br>
that are not otherwise enumerated by CoreText.<br>
JavaFX expects JDK to be able to access these fonts but it cannot.<br>
We need to make the same API calls on JDK.<br>
The exact fonts returned vary by MacOS release so it seems hard to
create a JDK regression<br>
test but on the FX side it is seen instantly if you print a UI
control as the text is messed up<br>
due to incorrect glyph ids. </font><br>
<br>
I intend to backport this to 8u and I've verified this does fix it
on 8u too ..<br>
<br>
Also both 8 & 9 build successfully with JPRT.<br>
<br>
-phil.<br>
</body>
</html>