[OpenJDK 2D-Dev] RFR: 8242004: TextLayout throws Exception with a non-invertible transform
Philip Race
philip.race at oracle.com
Fri Apr 3 20:29:21 UTC 2020
bug: https://bugs.openjdk.java.net/browse/JDK-8242004
webrev: https://bugs.openjdk.java.net/browse/JDK-8242004
Several code paths can end up in the method shown in the bug report
with a non-invertible transform.
As much as possible, we can prevent them reaching here by checking in
the rendering code.
If we do get here, which should now be possible only when directly creating
a TextLayout, we can use a default TX. Subsequent rendering of the
TextLayout
will be handled by the other checks being added.
A regression test is provided which checks various APIs to make sure no
exception is thrown.
-phil.
More information about the 2d-dev
mailing list