Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Font error with OpenJDK and OpenJFX on MacOS #28

Open
pacohope opened this issue Feb 22, 2021 · 0 comments
Open

Font error with OpenJDK and OpenJFX on MacOS #28

pacohope opened this issue Feb 22, 2021 · 0 comments

Comments

@pacohope
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant