<div dir="ltr">Hello,<br><br>Thanks for the answer. I've found a couple of very long but very informative threads that have given me some pointers.<br><br>Poor quality font rendering<br><a href="https://mail.openjdk.org/pipermail/openjfx-dev/2013-August/009958.html">https://mail.openjdk.org/pipermail/openjfx-dev/2013-August/009958.html</a><br><br>The crisp fonts saga<br><a href="https://mail.openjdk.org/pipermail/openjfx-dev/2023-December/044234.html">https://mail.openjdk.org/pipermail/openjfx-dev/2023-December/044234.html</a><br><br>In my case there were two problems:<br><br>- I had SceneAntialiasing enabled, which seems to prevent -fx-smoothing-type=lcd from working<br>- I forgot that -fx-smoothing-type is only enabled for .text nodes, but not for all Text nodes by default<br><br>I also assumed that Linux fontconfig settings would have some effect on JavaFX font rendering, but judging from tests this isn't the case. Perhaps the only thing that matters is freetype compilation flags. I've found that Fedora enabled ClearType font rendering some time ago (<a href="https://www.phoronix.com/news/Fedora-ClearType-Subpixel-Font">https://www.phoronix.com/news/Fedora-ClearType-Subpixel-Font</a>).<br><br>As for -fx-smooth-type=gray, with some fonts such as Open Sans, Liberation Sans or Montserrat it may look quite close to acceptable. <br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">вс, 4 авг. 2024 г. в 01:41, Philip Race <<a href="mailto:philip.race@oracle.com">philip.race@oracle.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">There's not many knobs available. Hinting is not enabled - and that's <br>
commonly the case on modern plartforms.<br>
LCD is your best option for readibility of static text, which is why it <br>
is the default for UI Controls,<br>
It should reduce the pixel grid fitting uneveness you highlight but <br>
doesn't eliminate it.<br>
Note : this presumes that the freetype on your system enables LCD .. if <br>
it doesn't there's nothing FX can do about that.<br>
<br>
-phil.<br>
<br>
<br>
On 8/2/24 10:43 AM, <a href="mailto:quizynox@gmail.com" target="_blank">quizynox@gmail.com</a> wrote:<br>
> Hello,<br>
><br>
> Sorry for asking here, but I seem to have tried everything I could <br>
> find on SO/Reddit/JBS etc. Could someone please share what font <br>
> settings I should be using to get decent font hinting on Linux? Please <br>
> see the screenshot.<br>
><br>
> <a href="https://drive.google.com/file/d/1gXYXzbcq4cHmZpza20yQJHfs0pMbgiZa/view" rel="noreferrer" target="_blank">https://drive.google.com/file/d/1gXYXzbcq4cHmZpza20yQJHfs0pMbgiZa/view</a><br>
><br>
> I'm not very picky, but the font I see is just not suitable for <br>
> presenting app to customers. I've tried enabling and disabling hinting <br>
> and autohinting, using different hinting styles, changing the font <br>
> smoothing type and prism.lcdtext etc. Unfortunately no matter what I <br>
> do, the font hinting is always bad.<br>
><br>
> Fedora, KDE, all latest versions.<br>
><br>
<br>
</blockquote></div>