RFR: 8165943: LineBreakMeasurer does not measure correctly if TextAttribute.TRACKING is set.
Olga Mikhaltsova
omikhaltcova at openjdk.org
Fri Nov 18 14:03:25 UTC 2022
On Thu, 15 Sep 2022 16:51:27 GMT, Olga Mikhaltsova <omikhaltcova at openjdk.org> wrote:
> This is a fix for LineBreakMeasurer. It takes into account the TextAttribute.TRACKING value (not eq 0) while calculating the line breaks.
>
> Tested on Linux x64, Windows x64, macOS x64 with the reproducer (LineBreakSample.java) attached to JDK-8165943 and the following group of tests:
> `$JTREG_HOME/bin/jtreg -jdk:$BUILD_HOME ./test/jdk/java/awt/font`
@prrace Could you please take a look at the proposed changes! Is this fix needed or not? It fixes JDK-8165943/JDK-6598756. I opened PR on JDK-8165943 because it had more active conversation. But maybe I made a mistake and it should be opened on JDK-6598756 (created by you) because it was created earlier then JDK-8165943?
-------------
PR: https://git.openjdk.org/jdk/pull/10289
More information about the client-libs-dev
mailing list