RFR: 8165943: LineBreakMeasurer does not measure correctly if TextAttribute.TRACKING is set.
Patrick Chen
chen.j.patrick at gmail.com
Tue Nov 22 13:55:01 UTC 2022
I think it is good
reviewed
Le lun. 21 nov. 2022 à 16:08, azul-jf <duke at openjdk.org> a écrit :
> On Sun, 20 Nov 2022 03:39:56 GMT, Phil Race <prr 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`
> >
> > I haven't had time to look at this. Maybe I can look at it some time in
> the 1st week of December. Ping me then.
>
> Hi @prrace, this came to our attention as a customer issue. The reproducer
> we used was the one from JDK-8165943.
>
> As a reminder of the issue and an illustration of the desired outcome,
> here are some screen captures.
>
> Existing code, TRACKING = 0.0:
>
> 
>
> Existing code, TRACKING = 0.1:
>
> 
>
> Submitted code, TRACKING = 0.1:
>
> 
>
> -------------
>
> PR: https://git.openjdk.org/jdk/pull/10289
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/client-libs-dev/attachments/20221122/c90ebeb2/attachment.htm>
More information about the client-libs-dev
mailing list