[OpenJDK 2D-Dev] RFR: 8256372: [macos] Unexpected symbol was displayed on JTextField with Monospaced font
Erik Joelsson
erikj at openjdk.java.net
Tue May 18 16:15:39 UTC 2021
On Tue, 18 May 2021 15:55:09 GMT, Phil Race <prr at openjdk.org> wrote:
> See the bug report for lots of explanation.
> The short version (not that short) is that Swing adds a new line char to editable TextComponents
> It used to work because harfbuzz asked CoreText which mapped it to an invisible glyph
> Now harfbuzz does its own processing of AAT fonts it is different.
> Harfbuzz looks up the mapping for this but there is none so it gets a missing glyph.
>
> Solution: Since HB now does AAT processing we can dispense with all the special handling of that case
> and core text and just treat AAT fonts like OT fonts.
> This means its gets the same mapping we get when not using Layout.
>
> And the test passes on all platforms .. not just macOS ..
Build changes look ok.
-------------
Marked as reviewed by erikj (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/4097
More information about the 2d-dev
mailing list