[OpenJDK 2D-Dev] RFC: Fix for JDK-8188030

2017-09-27 Thread Mario Torre
Hi all, I would like to propose a fix for https://bugs.openjdk.java.net/browse/JDK-8188030. The issue is basically that CFF fonts are considered better match than Type 1, but are discarded, leaving the font array with no elements. The fix is here: http://cr.openjdk.java.net/~neugens/8188030/web

Re: [OpenJDK 2D-Dev] RFC: Fix for JDK-8188030

2017-09-27 Thread Phil Race
This is fine for JDK 9 + 10 but the reason CFF fonts are discarded is that we weren't supporting them properly in Oracle JDK until 9. We should have removed this check in 9 but it was forgotten. If you backport this to 7 and 8 it will be a problem there - for Oracle JDK, not OpenJDK. Although it

Re: [OpenJDK 2D-Dev] RFC: Fix for JDK-8188030

2017-09-27 Thread Mario Torre
Hi Phil, I think I may be fine if we need to live with a local patch in our RPM in 8, this use case should be pretty rare, although I'll check first if there’s some ifdefs that I can use for the backport to 8. I tried to figure out if I could just change the logic but all I could get was NPEs. P