[OpenJDK 2D-Dev] RFR: 8231556: Wrong font ligatures used when 2 versions of same font used

Philip Race philip.race at oracle.com
Sat Dec 7 19:59:05 UTC 2019


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

The equals() method for the internal font "peer" looked at fullName.
This fix adds looking at the filename, (called platName in PhysicalFont).
Now we can distinguish the two versions of the Font.

The equals() method was refactored a bit to make it easier to add
the extra tests, and some of the complexity is due to paranoia that
platName *might* be null .. although I don't think that should ever be 
the case.

I can't add a regression test because I'd need to check in two versions of
a font and I can't import these fonts.

But I did confirm this fixes the bug.

I have run client tests on all platforms to verify this fix.

-phil.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/2d-dev/attachments/20191207/b8cadc14/attachment.htm>


More information about the 2d-dev mailing list