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

[macos 10.15] Garbled text running with native-image

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8, openjfx11, openjfx13
    • Fix Version/s: openjfx14
    • Component/s: javafx
    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      os_x_10.15

      Backports

        Description

        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.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  jpereda Jose Pereda
                  Reporter:
                  jpereda Jose Pereda
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: