-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P3
-
Affects Version/s: 17, 21, 25, 27
-
Component/s: client-libs
-
b11
-
generic
-
generic
While working on JDK-8373290, it is noticed that with FreeType update java/awt/font/TextLayout/FormatCharAdvanceTest.java is failing.
On more analysis it is found that 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 issue in FreeType). We are not seeing any change of Metrics for other Physical(Helvetica.ttf) or Logical(Dialog) fonts.
We have separate bug https://bugs.openjdk.org/browse/JDK-8378622 to analyse and fix FontMetrics caching issue. We are planning to update attribute like "font name" between the Type1 and TTF font used in java/awt/font/TextLayout/FormatCharAdvanceTest.java to get appropriate FontMetrics and make this test work properly. Changing the font name will not affect the purpose of this test.
On more analysis it is found that 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 issue in FreeType). We are not seeing any change of Metrics for other Physical(Helvetica.ttf) or Logical(Dialog) fonts.
We have separate bug https://bugs.openjdk.org/browse/JDK-8378622 to analyse and fix FontMetrics caching issue. We are planning to update attribute like "font name" between the Type1 and TTF font used in java/awt/font/TextLayout/FormatCharAdvanceTest.java to get appropriate FontMetrics and make this test work properly. Changing the font name will not affect the purpose of this test.
- blocks
-
JDK-8373290 Update FreeType to 2.14.1
-
- In Progress
-
- links to
-
Commit(master)
openjdk/jdk/d7c8000a
-
Review(master)
openjdk/jdk/29910