RFR: 8219641: java/awt/font/Rotate/RotatedTextTest.java fails on Linux: Test failed for angle 15.0
Arno Zeller
azeller at openjdk.org
Tue Sep 19 09:18:39 UTC 2023
On Mon, 18 Sep 2023 23:34:12 GMT, Phil Race <prr 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 :-)?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/15780#issuecomment-1725128539
More information about the client-libs-dev
mailing list