gluonhq / gluonfx-gradle-plugin

Plugin that simplifies using Gluon Client for Java/JavaFX gradle projects
BSD 3-Clause "New" or "Revised" License
100 stars 21 forks source link

nativeCompile Software garbled on Mac #51

Open lvxingtu opened 4 years ago

lvxingtu commented 4 years ago

I try official HelloFXML demo and the process success. But the font incorrect.

image

Java : openjdk 11.0.2 Mac : Catalina 10.15.1

log

> Configure project :
Found module name 'hellofxml'
[周六 11月 16 21:51:26 CST 2019][信息] [SUB] 2019-11-16 21:51:26.943 HelloFXML[30855:996734] Starting Gluon VM...
[周六 11月 16 21:51:26 CST 2019][信息] [SUB] InitializeEncoding is now (lazily) called
[周六 11月 16 21:51:26 CST 2019][信息] [SUB] ONLOAD PRISM_ES2
[周六 11月 16 21:51:27 CST 2019][信息] [SUB] 2019-11-16 21:51:27.173 HelloFXML[30855:996707] 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:].
[周六 11月 16 21:51:27 CST 2019][信息] [SUB] 2019-11-16 21:51:27.173 HelloFXML[30855:996707] CoreText note: Set a breakpoint on CTFontLogSystemFontNameRequest to debug.
[周六 11月 16 21:51:27 CST 2019][信息] [SUB] 2019-11-16 21:51:27.174 HelloFXML[30855:996707] 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:].
[周六 11月 16 21:51:27 CST 2019][信息] [SUB] 2019-11-16 21:51:27.234 HelloFXML[30855:996738] 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:].

> Task :nativeRun
Omega :: host triplet = x86_64-macos-macos
Omega :: target triplet = x86_64-macos-macos
<=========----> 75% EXECUTING [40s]
> :nativeRun
jperedadnr commented 4 years ago

Submitted PR to fix this issue in OpenJFX: https://github.com/openjdk/jfx/pull/55 In the meantime setting a font should solve it.