[OpenJDK 2D-Dev] RFR: 8224109: Text spaced incorrectly by drawString under rotation with fractional metrics

Philip Race philip.race at oracle.com
Fri Jan 10 21:33:18 UTC 2020


Bug: https://bugs.openjdk.java.net/browse/JDK-8224109
Webrev: http://cr.openjdk.java.net/~prr/8224109/

There have been at least a couple of reports on this problem which manifests
when using fractional metrics.

As noted in the bug eval
- we had the wrong sign for the y advance in this path
-  the wrong transform component was being used for the rotation.

The fix is quite small but creating a regression test  was a challenge
to be able to reliably tell where the rendering landed and if it
was the same for different APIs and that it goes in an "expected" direction.

I found one new bug 8236451with a laid out glyphvector which is
not fixed here because it is a harfbuzz code path problem.

Also we have known issues with AAT fonts and harfbuzz so  using
Courier New on mac.

Not to mention Macos Mojave wants to do AA text even when you
ask for B&W (bug open on that too) so it is really hard to verify in 
that case.

-phil.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/2d-dev/attachments/20200110/64b62ad4/attachment.htm>


More information about the 2d-dev mailing list