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

Jean-Michaël Celerier jeanmichael.celerier at gmail.com
Thu Aug 26 13:36:42 CEST 2021


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.

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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20210826/cf9481df/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/cf9481df/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/cf9481df/attachment-0001.png>


More information about the Interest mailing list