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.

Reply via email to