[jdk25u] RFR: 8361381: GlyphLayout behavior differs on JDK 11+ compared to JDK 8

duke duke at openjdk.org
Fri Nov 28 12:45:55 UTC 2025


On Thu, 13 Nov 2025 23:10:47 GMT, Vishal Chand <duke at openjdk.org> wrote:

> Backporting:
> 
> 8361381: GlyphLayout behavior differs on JDK 11+ compared to JDK 8
> 
> Summary of the change:
> * Fixes a regression in HarfBuzz-based text layout in JDK 9+ where GlyphLayout incorrectly clustered characters in complex scripts (e.g., Khmer) due to faulty “each glyph maps to one character” assumptions.
> * Adjusts the clustering algorithm in `ExtendedTextSourceLabel::createCharinfo()` by removing the needless `clusterExtraGlyphs` logic so line-breaking and wrapping behave consistently with JDK 8.
> 
> Testing:
> * tests in `test/jdk/java/awt/font/` are passing locally on Amazon Linux 2.
> 
> Applies cleanly, low risk.

@vish-chan 
Your change (at version ca88ffa36973b1c0192476f8c180a06d78f69e9c) is now ready to be sponsored by a Committer.

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

PR Comment: https://git.openjdk.org/jdk25u/pull/379#issuecomment-3589201469


More information about the jdk-updates-dev mailing list