On Tue, 10 Dec 2024 20:09:09 GMT, Daniel Gredler <dgred...@openjdk.org> wrote:
> Soft hyphens should never render, regardless of the rendering path used > internally. > > This PR does not expand the categorization of "complex" characters in > `FontUtilities` in order to force the use of `TextLayout` rendering code > paths (as was discussed in JBS). > > Instead, it takes the existing (limited) format-category checks in > `sun.font.CMap` (a TrueType font helper class), expands it to a more general > / complete default-ignorable check (`FontUtilities.isDefaultIgnorable(int)`), > and then moves these checks out of `CMap` and up a level into the > `CharToGlyphMapper` classes themselves. > > The Type1 glyph mapper, the TTF glyph mapper, and the macOS glyph mapper have > all been updated. This pull request has now been integrated. Changeset: 41bdc47d Author: Daniel Gredler <dgred...@openjdk.org> Committer: Phil Race <p...@openjdk.org> URL: https://git.openjdk.org/jdk/commit/41bdc47d71340e5d7f4317a5040521868d4c4314 Stats: 468 lines in 6 files changed: 438 ins; 16 del; 14 mod 8208377: Soft hyphens render if not using TextLayout Reviewed-by: achung, prr ------------- PR: https://git.openjdk.org/jdk/pull/22670