[Gambas-bugtracker] Bug #2445: gb.qt5 application reports gtk default fonts but shows qt default

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Sat Jan 8 15:05:35 CET 2022


http://gambaswiki.org/bugtracker/edit?object=BUG.2445&from=L21haW4-

Comment #4 by Bruce STEERS:

I have a suggestion for a possible workaround..

If you look at $HOME/.config/fontconfig/fonts.conf you will see there is not much to the file.
It is a simple xml file with font rendering settings not actual font data.

Maybe you "could" check for it and if it does not exist make one?
attached is a pic of the fonts.conf creator dialog
without selecting any options i get the following file...
----------
<pre>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
    <match target="font">
        <edit name="antialias" mode="assign">
            <bool>false</bool>
        </edit>
        <edit name="hinting" mode="assign">
            <bool>false</bool>
        </edit>
        <edit name="hintstyle" mode="assign">
            <const>hintnone</const>
        </edit>
        <edit name="rgba" mode="assign">
            <const>none</const>
        </edit>
        <edit name="autohint" mode="assign">
            <bool>false</bool>
        </edit>
        <edit name="lcdfilter" mode="assign">
            <const>lcdnone</const>
        </edit>
        <edit name="dpi" mode="assign">
            <double>102</double>
        </edit>
    </match>
</fontconfig>
</pre>
------------

possibly setting hinting and antialiasing?
could be a valid workaround?
Or maybe give gb.qt5 some code to report about the missing file?
If Not Exist(User.Home &/ ".config/fontconfig/fonts.conf") then Print "QT fonts.conf not found! This can cause display issues, use the QT configuration tool qt5ct to create a fonts.conf"

Respects

----------------------------------------------------------------------------

Attachment: Untitled.png




More information about the Bugtracker mailing list