On Sat, 26 Jun 2021 15:40:47 GMT, Johan Vos <j...@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)`

This pull request has been closed without being integrated.

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

PR: https://git.openjdk.org/jfx/pull/547

Reply via email to