-
Notifications
You must be signed in to change notification settings - Fork 17
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
[ui] Designer font display #10
Comments
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:
|
thanks.
so if i want to change the designer font display,i could change java version? |
Could this be an font anti aliasing issue? Desktop environments also usually offer settings for displaying fonts (hinting, sub-pixel-rendering, anti aliasing). But these settings probably won't effect javafx applications. |
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. |
@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 @Jmm233 If you've got another JRE installed, I'd try switching just for the sake of it. On ubuntu you may use |
@ChitsuthaCSKKU Which java version and openjfx version are you using? Try updating to the latest version, maybe that solves the problem. |
I am using which are the latest version, I think? |
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/ |
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
|
@savithraj Have you had a look at #49? It looks similar to your error |
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: System.setProperty("prism.text", "t2k");
System.setProperty("prism.lcdtext", "true"); is enough to get much better results. Moreover, this can be done during application startup (in the 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). |
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. |
PMD designer v6.11.0
OS:Ubuntu16.04
The font in the designer is too difficult to read,so i come for help.
thank you
The text was updated successfully, but these errors were encountered: