[Interest] Configuring Qt's built-in freetype ?

Elvis Stansvik elvstone at gmail.com
Thu Aug 26 14:48:03 CEST 2021


Den tors 26 aug. 2021 kl 13:39 skrev Jean-Michaël Celerier <
jeanmichael.celerier at gmail.com>:

> Hi,
>
> for consistency, I am shipping my app with freetype on all platforms.
> This looks "correct", definitely better than using macOS or Win32's font
> rendering, but ! Qt's built-in freetype does not look as good than my Linux
> system's finely-tuned freetype configuration which prompted some
> investigation.
>
> It's very visible for instance in the menu bar:
> * Top one is my system freetype, notice how the fonts are crispy and
> beautiful.
> * Below one is using Qt's -qt-freetype: notice how the straight lines,
> like for the "t" in settings or the vertical bars in H are blurry.
> [image: here.png]
>
> If you zoom you'll notice that the one below is missing sub-pixel AA:
>
> [image: here-small.png]
> Thus my question: is there a way (even if that implies rebuilding Qt) to
> pass configuration options to freetype ? Surely that must be possible as
> it's able to do the correct thing with my distro (arch btw)'s Qt / freetype
> / fontconfig combo.
>

Maybe set FONTCONFIG_FILE envvar to point to a custom config file that you
ship, or FONTCONFIG_PATH to point to a conf.d directory with a custom
config snippet.

Elvis


> Kind regards,
> Jean-Michaël
>
>
> ------------------------------
> Jean-Michaël Celerier
> *cto* ossia.io | *consulting inquiries* celtera.dev | *personal*
> jcelerier.name
> t: +336 81 31 53 08
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20210826/03dca956/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: here.png
Type: image/png
Size: 7258 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20210826/03dca956/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: here-small.png
Type: image/png
Size: 6767 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20210826/03dca956/attachment-0001.png>


More information about the Interest mailing list