On Thu, 26 Feb 2026 04:04:16 GMT, Jayathirth D V <[email protected]> wrote:

>> While working on [JDK-8373290](https://bugs.openjdk.org/browse/JDK-8373290), 
>> it is noticed that with FreeType update 
>> java/awt/font/TextLayout/FormatCharAdvanceTest.java is failing.
>> 
>> On more analysis it is found that this Test is not using appropriate 
>> FontMetrics under FontMetrics.stringWidth() and Font.getStringBounds("AB", 
>> frc) code path. Test continues to use Type1 FontMetrics for TTF font.
>> 
>> Freetype update just revealed this issue as "width" slightly changes between 
>> the Type1 and TTF font used in this test(This is happening because of 
>> hinting/rounding change in FreeType update). We are not seeing any change of 
>> Metrics for other Physical(Helvetica.ttf) or Logical(Dialog) fonts.
>> 
>> We have separate bug 
>> [JDK-8378622](https://bugs.openjdk.org/browse/JDK-8378622) to analyse and 
>> fix FontMetrics caching issue. We are updating FormatCharAdvanceTest to use 
>> unique "font name" for both Type1 and TTF font to pick valid FontMetrics and 
>> make this test work properly. Changing the font name will not affect the 
>> purpose of this test.
>
> Jayathirth D V has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   Remove jtreg bugid

Marked as reviewed by psadhukhan (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/29910#pullrequestreview-3858279321

Reply via email to