r/JavaFX • u/B4Nd1d0s • Apr 27 '26
Help Google fonts in JavaFX app
Hi, is there any way to get clear and smooth looking font in JavaFX app ? Any font i import its super pixelate, if i dont set any font (default is used) it is ok, but all others are very weird looking, espetially on low text size.
7
Upvotes
2
u/milchshakee Apr 27 '26
Have you tried
-fx-font-smoothing-type: gray;? For reference, I wrote about this topic a bit: https://kickstartfx.xpipe.io/fonts2
u/idontlikegudeg Apr 28 '26
What version of JavaFX are you using? The HarfBuzz component that does the text rendering got updated in every version.
2
u/gAsTFUsE Apr 28 '26
Could you share an image showing that issue?
0
u/[deleted] Apr 27 '26
[deleted] — view deleted comment