[11u] java/awt/FontMetrics/MaxAdvanceIsMax.java test failure (was: [11u] RFR 8210782: Upgrade HarfBuzz to the latest 2.3.1)
mbalao at redhat.com
Mon May 13 16:27:17 UTC 2019
Thanks for raising this issue.
I'm not surprised by MaxAdvanceIsMax test failing on some OS. The reason
is that this test is very OS specific.
All installed fonts are tested and a static value from each font is used
for the assertion, after scale calculations. If there is a difference
between what the font creator set when generating the font file and what
the OS rendering library returns -considering that different FreeType
library builds may return different values-, this test will fail.
The internal test during development phase was more reliable because it
tested a known-font only. However, shipping a font is not allowed by
licenses and that's why we changed the test a bit.
We should probably limit the scope somehow.
Despite the test failure, I'm still confident that we did the right
thing in 8218854 .
 - https://bugs.openjdk.java.net/browse/JDK-8218854
More information about the jdk-updates-dev