You are not logged in.
Hello,
I am having issues with fonts for non-GTK applications. It defaults to a weird bold font that does not support characters such as č. š, etc.:
https://i.imgur.com/wRYLPAk.png
https://i.imgur.com/2DZY47s.png
I would like to change it to sth else I do not really know how.
Here is what I tried:
First of all, I tried changing XFCE appearance settings but no success there - obviously not as it changes fonts for XFCE (correct font set there)
Then my second step was to use fontconfig. Here is the XML file I created within ~/.config/fontconfig/fonts.conf:
<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM "urn:fontconfig:fonts.dtd">
<fontconfig>
<alias>
<family>sans-serif</family>
<prefer>
<family>Roboto</family>
</prefer>
</alias>
<alias>
<family>serif</family>
<prefer>
<family>Roboto</family>
</prefer>
</alias>
<alias>
<family>monospace</family>
<prefer>
<family>MesloLGS NF</family>
</prefer>
</alias>
</fontconfig>I had to created the file and also a folder with name fontconfig. Then I ran fc-cache but the font did not change...
I will use OnlyOffice as an example ecause it is not a GTK application - on other systems I am nit having this issue and some other applications also behaved the same such as Joplin.
Thank you
Last edited by othersamo_ (2022-02-06 19:35:35)
"Why join the navy if you can be a pirate?"
- Steve Jobs
Offline
I will use OnlyOffice as an example ecause it is not a GTK application...
OnlyOffice-bin from the aur uses gtk3. As does joplin. What builds of these are you using that are not gtk? More directly, are the problematic programs using qt?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
othersamo_ wrote:I will use OnlyOffice as an example ecause it is not a GTK application...
OnlyOffice-bin from the aur uses gtk3. As does joplin. What builds of these are you using that are not gtk? More directly, are the problematic programs using qt?
Actually they were not qt. They both have their own theming.
Similar thing happened to firefox whend displaying pages - they same font was used...
"Why join the navy if you can be a pirate?"
- Steve Jobs
Offline
Similar thing happened to firefox whend displaying pages - the same font was used...
Use the web inspector to check what font CSS calculates, then run eg. "fc-match Helvetica" (if it's helvetica)
My guess is that those other clients (onlyoffice is a web application and joplin is electron, ie. chromium…) don't use a generic font (sans-serif) but some windows default (arial, tahoma, segoe…) and that resolves to some limited font on your system.
Offline
Similar thing happened to firefox whend displaying pages - the same font was used...
Use the web inspector to check what font CSS calculates, then run eg. "fc-match Helvetica" (if it's helvetica)
My guess is that those other clients (onlyoffice is a web application and joplin is electron, ie. chromium…) don't use a generic font (sans-serif) but some windows default (arial, tahoma, segoe…) and that resolves to some limited font on your system.
I checked the inspector and it seems to be Arial.
Result of supposed command:
ARIALBD.TTF: "Arial" "Bold""Why join the navy if you can be a pirate?"
- Steve Jobs
Offline
Well, if "Arial" resolves to some bold version of what looks like some ancient windows copy of the fiont, there's your answer.
fc-list|grep -i arialand consider deleting that font and install a better replacement (some ms-fonts from the aur or the liberation fonts)
Offline
Well, if "Arial" resolves to some bold version of what looks like some ancient windows copy of the fiont, there's your answer.
fc-list|grep -i arialand consider deleting that font and install a better replacement (some ms-fonts from the aur or the liberation fonts)
Thanks, I switched to liberation fonts and helped!
"Why join the navy if you can be a pirate?"
- Steve Jobs
Offline
Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.
Offline