Integrated: 8165943: LineBreakMeasurer does not measure correctly if TextAttribute.TRACKING is set.

Olga Mikhaltsova omikhaltcova at openjdk.org
Wed Dec 7 18:05:23 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`

This pull request has now been integrated.

Changeset: 8edb98df
Author:    Olga Mikhaltsova <omikhaltcova at openjdk.org>
Committer: Andrew Brygin <bae at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/8edb98df3dd393103f2c80e929b011bc6b7993a3
Stats:     325 lines in 5 files changed: 315 ins; 3 del; 7 mod

8165943: LineBreakMeasurer does not measure correctly if TextAttribute.TRACKING is set.

Co-authored-by: Jason Fordham <jclf at azul.com>
Reviewed-by: prr

-------------

PR: https://git.openjdk.org/jdk/pull/10289



More information about the client-libs-dev mailing list