[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


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...
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
    <match target="font">
        <edit name="antialias" mode="assign">
        <edit name="hinting" mode="assign">
        <edit name="hintstyle" mode="assign">
        <edit name="rgba" mode="assign">
        <edit name="autohint" mode="assign">
        <edit name="lcdfilter" mode="assign">
        <edit name="dpi" mode="assign">

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"



Attachment: Untitled.png

More information about the Bugtracker mailing list