I was looking at some JavaFX introductions. HelloWorld type things. In this 
case literally…
https://docs.oracle.com/javafx/2/get_started/hello_world.htm

The button labels show garbled text. Googling shows a number of similar 
examples. 
I found one issue indicating something very similar showing as resolved.
https://bugs.openjdk.java.net/browse/JDK-8234916

If you try to setFont you get about the same messages like…

java -cp . --module-path ~/Documents/javafx-sdk-11.0-2.2/lib --add-modules 
javafx.base,javafx.controls helloworld.HelloWorld
2021-06-30 17:52:22.790 java[4142:207281] CoreText note: Client requested name 
".SFNS-Regular", it will get Times-Roman rather than the intended font. All 
system UI font access should be through proper APIs such as 
CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
2021-06-30 17:52:22.790 java[4142:207281] CoreText note: Set a breakpoint on 
CTFontLogSystemFontNameRequest to debug.
2021-06-30 17:52:22.792 java[4142:207281] CoreText note: Client requested name 
".SFNS-Regular", it will get Times-Roman rather than the intended font. All 
system UI font access should be through proper APIs such as 
CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
2021-06-30 17:52:22.896 java[4142:207311] CoreText note: Client requested name 
".SFNS-Regular", it will get Times-Roman rather than the intended font. All 
system UI font access should be through proper APIs such as 
CTFontCreateUIFontForLanguage() or +[NSFont systemFontOfSize:].
Hello World!

Should I open an issue on this someplace or is it still open somewhere? 
Or is there something I should do different to avoid it? 


Reply via email to