You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for the report. This is weird: the designer uses the default fonts provided by the JavaFX distribution. Could you provide the following info to help us work out a solution:
How did you start the app? (eg with the launch script (run.sh designer), from inside an ide, with java -jar, with gradle...)
Desktop environments also usually offer settings for displaying fonts (hinting, sub-pixel-rendering, anti aliasing). But these settings probably won't effect javafx applications.
@adangel Not sure it's an aliasing problem. You could be right, but in the screenshot, the font looks like it has serifs (e.g. the l), even though the designer normally uses a sans serif font family. So it could be that the font is for some reason not found and defaulted to that low-res one? I'm not sure how JavaFX selects fonts though, so whether it's a problem with the system or with the JFX distribution...
@Jmm233 If you've got another JRE installed, I'd try switching just for the sake of it. On ubuntu you may use sudo update-alternatives --config java if you've installed your JREs through a package manager. If you need some more help we can talk on Gitter
I am using
openjdk version "15.0.1" 2020-10-20
OpenJDK Runtime Environment (build 15.0.1+9)
OpenJDK 64-Bit Server VM (build 15.0.1+9, mixed mode, sharing)
javafx-sdk-11.0.2
I used openjfx version 16 but I am getting below error. If I use version 11 then I am getting the same UI as @ChitsuthaCSKKU
Jun 03, 2021 8:54:29 AM com.sun.javafx.application.PlatformImpl startup WARNING: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @40f9161a' Graphics Device initialization failed for : es2, sw Error initializing QuantumRenderer: no suitable pipeline found java.lang.RuntimeException: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found at com.sun.javafx.tk.quantum.QuantumRenderer.getInstance(QuantumRenderer.java:280) at com.sun.javafx.tk.quantum.QuantumToolkit.init(QuantumToolkit.java:244) at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:261) at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:286) at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:160) at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:658) at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:678) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195) at java.base/java.lang.Thread.run(Thread.java:831) Caused by: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.java:94) at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:124) ... 1 more java.lang.RuntimeException: No toolkit found at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:273) at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:286) at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:160) at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:658) at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:678) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195) at java.base/java.lang.Thread.run(Thread.java:831)
I did some research into this, and the original issue seems to be rooted on the overall way the javafx renderer works on Linux, which effectively produces blurry text (ie: look into https://github.com/woky/javafx-hates-linux).
is enough to get much better results. Moreover, this can be done during application startup (in the DesignerStarter) with no further changes needed in the application.
I'm unsure if these flags have any unwanted effect on other platforms (that is, f we should only set this when detecting we run under Linux).
Activity
oowekyala commentedon Feb 24, 2019
Hi, thanks for the report. This is weird: the designer uses the default fonts provided by the JavaFX distribution. Could you provide the following info to help us work out a solution:
run.sh designer
), from inside an ide, withjava -jar
, with gradle...)which is added automatically by the run script
Jmm233 commentedon Feb 26, 2019
thanks.
run.sh designer
the jdk version is 1.8.0_191,so i think jre version is 8.According to your instructions, the designer should be no problem.
the display's resolution is 1920X1080,which is the computer's max
so if i want to change the designer font display,i could change java version?
adangel commentedon Feb 26, 2019
Could this be an font anti aliasing issue?
There is this stack overflow question: https://stackoverflow.com/questions/24254000/how-to-force-anti-aliasing-in-javafx-fonts
Desktop environments also usually offer settings for displaying fonts (hinting, sub-pixel-rendering, anti aliasing). But these settings probably won't effect javafx applications.
Jmm233 commentedon Feb 27, 2019
well,your suggestion is valuable, and i got a lot. i am a rookie,so i haven't solve this.i think it is also ok to read. thank you for your help.
oowekyala commentedon Feb 27, 2019
@adangel Not sure it's an aliasing problem. You could be right, but in the screenshot, the font looks like it has serifs (e.g. the
l
), even though the designer normally uses a sans serif font family. So it could be that the font is for some reason not found and defaulted to that low-res one? I'm not sure how JavaFX selects fonts though, so whether it's a problem with the system or with the JFX distribution...@Jmm233 If you've got another JRE installed, I'd try switching just for the sake of it. On ubuntu you may use
sudo update-alternatives --config java
if you've installed your JREs through a package manager. If you need some more help we can talk on GitterChitsuthaCSKKU commentedon Dec 9, 2020
I ran the designer from run.sh designer on macOS. Anyone knows how to solve this? Thanks
adangel commentedon Dec 11, 2020
@ChitsuthaCSKKU Which java version and openjfx version are you using? Try updating to the latest version, maybe that solves the problem.
ChitsuthaCSKKU commentedon Dec 11, 2020
I am using
openjdk version "15.0.1" 2020-10-20
OpenJDK Runtime Environment (build 15.0.1+9)
OpenJDK 64-Bit Server VM (build 15.0.1+9, mixed mode, sharing)
javafx-sdk-11.0.2
which are the latest version, I think?
adangel commentedon Dec 11, 2020
You could try to use openjfx 15.0.1, maybe there are some bugs fixed. It's available from here https://gluonhq.com/products/javafx/
savithraj commentedon Jun 3, 2021
I used openjfx version 16 but I am getting below error. If I use version 11 then I am getting the same UI as @ChitsuthaCSKKU
Jun 03, 2021 8:54:29 AM com.sun.javafx.application.PlatformImpl startup WARNING: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @40f9161a' Graphics Device initialization failed for : es2, sw Error initializing QuantumRenderer: no suitable pipeline found java.lang.RuntimeException: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found at com.sun.javafx.tk.quantum.QuantumRenderer.getInstance(QuantumRenderer.java:280) at com.sun.javafx.tk.quantum.QuantumToolkit.init(QuantumToolkit.java:244) at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:261) at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:286) at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:160) at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:658) at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:678) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195) at java.base/java.lang.Thread.run(Thread.java:831) Caused by: java.lang.RuntimeException: Error initializing QuantumRenderer: no suitable pipeline found at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.init(QuantumRenderer.java:94) at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(QuantumRenderer.java:124) ... 1 more java.lang.RuntimeException: No toolkit found at com.sun.javafx.tk.Toolkit.getToolkit(Toolkit.java:273) at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:286) at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:160) at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:658) at com.sun.javafx.application.LauncherImpl.launchApplication1(LauncherImpl.java:678) at com.sun.javafx.application.LauncherImpl.lambda$launchApplication$2(LauncherImpl.java:195) at java.base/java.lang.Thread.run(Thread.java:831)
oowekyala commentedon Jun 3, 2021
@savithraj Have you had a look at #49? It looks similar to your error
jsotuyod commentedon Aug 10, 2022
I did some research into this, and the original issue seems to be rooted on the overall way the javafx renderer works on Linux, which effectively produces blurry text (ie: look into https://github.com/woky/javafx-hates-linux).
Fortunately, it seems that simply setting:
is enough to get much better results. Moreover, this can be done during application startup (in the
DesignerStarter
) with no further changes needed in the application.I'm unsure if these flags have any unwanted effect on other platforms (that is, f we should only set this when detecting we run under Linux).
jsotuyod commentedon Aug 11, 2022
As for the issue on Mac shown on #10 (comment) I was able to reproduce it using an older version of javafx.
When I run from the IDE (using Javafx 11) the text shows corrupted. Doing some trials I found out that JavaFX 14+ is needed to fix this.
Provide a fix for issue #10
4 remaining items