leMaik / chunky

Photorealistic image renderer for Minecraft 1.2.1+
https://chunky.lemaik.de
GNU General Public License v3.0
39 stars 1 forks source link

Font error with OpenJDK and OpenJFX on MacOS #28

Open pacohope opened 3 years ago

pacohope commented 3 years ago

I can get Chunky running on MacOS, but a simple font bug causes everything to be illegible. An awful lot seems to be working right. But since I can't read and understand the errors, there might be some silly little thing like typing the wrong directory or something else easy to fix. I simply can't read anything. Here's the details:

  1. openjdk/15.0.1 installed on MacOS Catalina 10.15.7 via brew
  2. openjfx downloaded from gluonhq.com
  3. I launched Chunky this way to get the launcher: java --module-path /Users/pacohope/Downloads/javafx-sdk-11.0.2/lib --add-modules javafx.controls,javafx.fxml -jar ChunkyLauncher.jar. I was able to use --update to do the updates.

When the UI launches, I get a java error in my console, and a window (a couple screenshots are attached).

Screenshot 2021-02-21 at 22 25 04 .

2021-02-21 22:09:16.384 java[62426:3491301] 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-02-21 22:09:16.384 java[62426:3491301] CoreText note: Set a breakpoint on CTFontLogSystemFontNameRequest to debug.
2021-02-21 22:09:16.393 java[62426:3491301] 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-02-21 22:09:16.680 java[62426:3491331] 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:].
Unchecked exception caused Chunky to close.

I was able to later launch Chunky itself, using a command line cobbled together from Chunky's launcher and the stuff for openjfx: /usr/local/Cellar/openjdk/15.0.1/libexec/openjdk.jdk/Contents/Home/bin/java --module-path /Users/pacohope/Downloads/javafx-sdk-11.0.2/lib --add-modules javafx.controls,javafx.fxml -Xmx1024m -Dchunky.home=/Users/pacohope/.chunky -classpath /Users/pacohope/.chunky/lib/chunky-core-2.3.0.jar:/Users/pacohope/.chunky/lib/commons-math3-3.2.jar se.llbit.chunky.main.Chunky

I got a window with a bunch of broken text, but otherwise functional. I clicked the highlighted "OK" button and i got a scrolling yellow progress bar across the bottom of the window. It sure seemed to be doing something. Ultimately, the render window remained blank.

Screenshot 2021-02-21 at 22 25 31

Any chance to get an update that somehow chooses fonts better?