Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8234916

[macos 10.15] Garbled text running with native-image

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • jfx14
    • jfx11, jfx13, 8
    • javafx
    • x86_64
    • os_x_10.15

        Running on MacOS Catalina, when doing static builds of libjavafx_font.a and linking against this in a JavaFX app compiled with GraalVM native-image, if default fonts are used, the rendered text is garbled, and a warning message is printed:

        CoreText note: Client requested name ".SFUI-Regular", it will get TimesNewRomanPSMT rather than the intended font. All system UI font access should be through proper APIs such as CTFontCreateUIFontForLanguage() or +[UIFont systemFontOfSize:].
        CoreText note: Set a breakpoint on CTFontLogSystemFontNameRequest to debug.

        According to Apple's WWDC sessions (see for instance : https://asciiwwdc.com/2013/sessions/223?q=periods) or the comment at https://github.com/Cocoanetics/DTCoreText/issues/1168#issuecomment-526411915, font names that start with a period are not to be directly used.

              jpereda Jose Pereda
              jpereda Jose Pereda
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: