bug: https://bugs.openjdk.java.net/browse/JDK-8199529
webrev : http://cr.openjdk.java.net/~prr/8199529/

Whilst this test does not currently fail, it did fail at the time when freetype was
returning different metrics for LCD vs B&W.

The problem is that the test assumes LCD AA is set on the graphics when in
fact Swing sets that hint just before rendering test and reverts it afterwards.

Since all the built-in L&Fs are supposed to get the AA hint from the desktop,
updating the AA hint on the graphics to match that is required to match what
Swing is supposed to have set on the component.

Test passes on all platforms - before and after the fix, however it now will
report a failure only when there is one .. rather than the false positive we had.

-phil.

Reply via email to