RFR: 8246104: Some complex text doesn't render correctly on macOS

Kevin Rushforth kcr at openjdk.org
Tue Apr 11 11:32:46 UTC 2023


On Sat, 26 Jun 2021 15:40:47 GMT, Johan Vos <jvos at openjdk.org> wrote:

> [Mac only] register system fonts.
> Fix for JDK-8246104
> 
> The list of available fonts returned by CTFontCollectionCreateFromAvailableFonts does not contain internal fonts (at least not by default, although this is not documented). By registering font(s) (files), those fonts become available in the returned list.
> The CT Glyph processing might assign internal fonts to a glyph, and since we lookup the requested font in this list, we fail if the list doesn't contain the font.
> This PR registers all fonts in the system library so that they become available. This is not creating additional Java objects or overhead, as it almost directly invokes `CTFontManagerRegisterFontsForURL` via `CTFontFile.registerFont(String fontfile)`

I am closing this PR now that #1067 is integrated.

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

PR Comment: https://git.openjdk.org/jfx/pull/547#issuecomment-1503159130


More information about the openjfx-dev mailing list