<div dir="ltr">I think it is good<div>reviewed</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 21 nov. 2022 à 16:08, azul-jf <<a href="mailto:duke@openjdk.org">duke@openjdk.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sun, 20 Nov 2022 03:39:56 GMT, Phil Race <<a href="mailto:prr@openjdk.org" target="_blank">prr@openjdk.org</a>> wrote:<br>
<br>
>> This is a fix for LineBreakMeasurer. It takes into account the TextAttribute.TRACKING value (not eq 0) while calculating the line breaks.<br>
>> <br>
>> Tested on Linux x64, Windows x64, macOS x64 with the reproducer (LineBreakSample.java) attached to JDK-8165943 and the following group of tests:<br>
>> `$JTREG_HOME/bin/jtreg -jdk:$BUILD_HOME ./test/jdk/java/awt/font`<br>
><br>
> 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.<br>
<br>
Hi @prrace, this came to our attention as a customer issue. The reproducer we used was the one from JDK-8165943. <br>
<br>
As a reminder of the issue and an illustration of the desired outcome, here are some screen captures. <br>
<br>
Existing code, TRACKING = 0.0:<br>
<br>
![image](<a href="https://user-images.githubusercontent.com/68303684/203083698-a557b968-2e68-48b5-8313-09f7458b91c5.png" rel="noreferrer" target="_blank">https://user-images.githubusercontent.com/68303684/203083698-a557b968-2e68-48b5-8313-09f7458b91c5.png</a>)<br>
<br>
Existing code, TRACKING = 0.1:<br>
<br>
![image](<a href="https://user-images.githubusercontent.com/68303684/203084245-f32ae45f-0d1b-4419-8d7d-274f23d14155.png" rel="noreferrer" target="_blank">https://user-images.githubusercontent.com/68303684/203084245-f32ae45f-0d1b-4419-8d7d-274f23d14155.png</a>)<br>
<br>
Submitted code, TRACKING = 0.1:<br>
<br>
![image](<a href="https://user-images.githubusercontent.com/68303684/203084873-c31da8e2-7044-4737-a15d-2738f90e4929.png" rel="noreferrer" target="_blank">https://user-images.githubusercontent.com/68303684/203084873-c31da8e2-7044-4737-a15d-2738f90e4929.png</a>)<br>
<br>
-------------<br>
<br>
PR: <a href="https://git.openjdk.org/jdk/pull/10289" rel="noreferrer" target="_blank">https://git.openjdk.org/jdk/pull/10289</a><br>
</blockquote></div>