On Fri, 27 Aug 2021 16:41:10 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:
> > Yes, the test passes. The only exception is macOS: the test fails there > > either way because the text is rendered with antialiasing and I can't > > disable font smoothing on macOS. Does anyone know how to disable it? > > I'm thinking about skipping macOS altogher. > > You can try to change the foregound color in the Nimbus defaults then render > it, then compare the part of the images which have the text. If the images > are identical then your color was ignored and the bug exists. This should work, however, I think it's not worth the effort. Changing the defaults and comparing the two images entirely will make the test more complicated. Nimbus is a platform-independent Look and Feel, the issue is not specific to macOS. The problem is caught on Windows and Linux where one can easily disable text anti-aliasing. ------------- PR: https://git.openjdk.java.net/jdk/pull/5269