[OpenJDK 2D-Dev] RFR: 8190280 [macos] Font2DTest demo started failing for Arabic range from JDK 8 u162 b01 on Mac
Prahalad Kumar Narayanan
prahalad.kumar.narayanan at oracle.com
Fri Nov 3 02:02:53 UTC 2017
The change looks good.
Have a good day
From: Philip Race
Sent: Wednesday, November 01, 2017 11:40 PM
Subject: [OpenJDK 2D-Dev] RFR: 8190280 [macos] Font2DTest demo started failing for Arabic range from JDK 8 u162 b01 on Mac
This is a JDK8 version of the bug
which affected harfbuzz in JDK 9
It is triggered by a couple of things but mainly that the Mac font code sometimes sets a glyphid to be the negation of the unicode to tell a special fallback path that the glyphid is not actually supported by the font and low-level rendering code should supply a fall back.
The essence of the fix here is that in the ICU code we reject negative glyph ids and treat them as missing.
The check for AIOBE in CompositeStrike is just an extra safe guard.
More information about the 2d-dev