On Fri, 27 Feb 2026 11:01:51 GMT, Jayathirth D V <[email protected]> wrote:
> Update FreeType used for font rendering to latest 2.14.1 version. > > Newly added files in upstream without which our build fails, so including > them: > src/java.desktop/share/native/libfreetype/src/autofit/afadjust.c > src/java.desktop/share/native/libfreetype/src/autofit/afadjust.h > > Below files were present in 2.13.2 upstream but our build worked fine without > them. But with FreeType 2.14.1 our build fails without these files, so added > them also: > src/java.desktop/share/native/libfreetype/src/autofit/ft-hb.c > src/java.desktop/share/native/libfreetype/src/autofit/ft-hb.h > > Below files should have been removed in 2.13.2 update itself as they were > removed from upstream. So deleted them now: > src/java.desktop/share/native/libfreetype/src/truetype/ttsubpix.c > src/java.desktop/share/native/libfreetype/src/truetype/ttsubpix.h > > With this FreeType 2.14.1 update we saw > [JDK-8378623](https://bugs.openjdk.org/browse/JDK-8378623) test issue which > is already resolved. > > While CI testing one more > test(javax/swing/text/html/CSS/8231286/HtmlFontSizeTest.java) failure was > observed only on Oracle Linux 10. After FreeType update the ratio of width > calculated in this test is "1.3757962" in our Oracle Linux 10 machines and it > is rounding off to "1.4" and not the "1.3" value as expected in this test. > Taking the average ratio out of both width and height for a larger font will > give result in values near to the ideal "1.3" ratio. After making this test > more robust it passes on all versions of all platforms in our CI. > javax/swing/text/html/CSS/8231286/HtmlFontSizeTest.java update is also > included in this PR. > > After above test updates, overall testing is green with FreeType 2.14.1 > update. This pull request has now been integrated. Changeset: 57db48cc Author: Jayathirth D V <[email protected]> URL: https://git.openjdk.org/jdk/commit/57db48cc21d47475caf2d1fae6bf37eab8d7521e Stats: 10403 lines in 286 files changed: 5453 ins; 3071 del; 1879 mod 8373290: Update FreeType to 2.14.1 Reviewed-by: azvegint, serb, prr ------------- PR: https://git.openjdk.org/jdk/pull/29954
