RFR: 8219641: java/awt/font/Rotate/RotatedTextTest.java fails on Linux: Test failed for angle 15.0
Alexey Ivanov
aivanov at openjdk.org
Tue Sep 19 16:32:44 UTC 2023
On Tue, 19 Sep 2023 09:15:41 GMT, Arno Zeller <azeller at openjdk.org> wrote:
> > The bug report has "Angle: 15, width diff: -4" Over the length of the string "The quick brown fox jumps over the lazy dog" that could be the occasional rounding difference and there is a comment in the bug report claiming (suggesting?) that's the issue. It is a bit tricky to know what error to allow because if you have a case where all the glyphs are rounded differently it could be 1 pixel per glyph .. much more than "4". Even Deja Vu Sans might reproduce this given the right (or wrong) string.
>
> So, I guess it would be ok to change the test to allow a small difference? The question then is "What is valid allowed difference?" Do you think 5 could be fine? Up to now we only have seen 4 :-)?
It looks 5 wouldn't be enough.
On Ubuntu, using the *Roboto* font, I get `width diff: -13`. With the *Roboto Slab* font, the test does not fail me. I attached the images and logs to the JBS issue.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15780#issuecomment-1726042218
More information about the client-libs-dev
mailing list