You are not logged in.

#1 2022-02-03 13:31:35

othersamo_
Member
From: Braislava
Registered: 2020-10-26
Posts: 161

[SOLVED] Font issues with non-GTK applications

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

#2 2022-02-03 15:00:23

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,492
Website

Re: [SOLVED] Font issues with non-GTK applications

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?


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2022-02-03 18:03:51

othersamo_
Member
From: Braislava
Registered: 2020-10-26
Posts: 161

Re: [SOLVED] Font issues with non-GTK applications

Trilby wrote:
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

#4 2022-02-03 21:39:08

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,087

Re: [SOLVED] Font issues with non-GTK applications

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

#5 2022-02-04 18:43:09

othersamo_
Member
From: Braislava
Registered: 2020-10-26
Posts: 161

Re: [SOLVED] Font issues with non-GTK applications

seth wrote:

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

#6 2022-02-04 19:43:25

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,087

Re: [SOLVED] Font issues with non-GTK applications

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 arial

and consider deleting that font and install a better replacement (some ms-fonts from the aur or the liberation fonts)

Offline

#7 2022-02-05 17:14:55

othersamo_
Member
From: Braislava
Registered: 2020-10-26
Posts: 161

Re: [SOLVED] Font issues with non-GTK applications

seth wrote:

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 arial

and 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

#8 2022-02-05 20:51:49

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,087

Re: [SOLVED] Font issues with non-GTK applications

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

Board footer

Powered by FluxBB