How to change system font? System font not applied

Hello there! Hope you’re doing well.

I can’t change the system font. For some reason the system font is set to monospace:

You could see that under Fonts I have set it to Noto Sans. But this is what always gets rendered:

Even dolphin has this monospace:

screenshot-2022-05-27-05-44-07

I want to change this monospace because I find it hard to read, especially on Firefox, but I have no idea where this is set.

Below please see my font setting in System Settings:

I changed it and rebooted my system. However the same monospace persisted. I should say that I also used LXAppearance (see below) when I was tweaking the system, but I can’t figure out what’s causing the Firefox issue above.

Below is my ~/.config/fontconfig/fonts.conf:

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <alias>
  <family>serif</family>
  <prefer>
   <family>Liberation Serif</family>
  </prefer>
 </alias>
 <alias>
  <family>sans-serif</family>
  <prefer>
   <family>Liberation Sans</family>
  </prefer>
 </alias>
 <alias>
  <family>sans</family>
  <prefer>
   <family>Liberation Sans</family>
  </prefer>
 </alias>
 <alias>
  <family>monospace</family>
  <prefer>
   <family>Liberation Mono</family>
  </prefer>
 </alias>
 <alias>
  <family>mono</family>
  <prefer>
   <family>Liberation Mono</family>
  </prefer>
 </alias>
</fontconfig>

and .gtkrc-2.0:

# DO NOT EDIT! This file will be overwritten by LXAppearance.
# Any customization should be done in ~/.gtkrc-2.0.mine instead.

include "/home/user/.gtkrc-2.0.mine"
gtk-theme-name="Nordic"
gtk-icon-theme-name="Papirus-Dark"
gtk-font-name="Noto Sans 11"
gtk-cursor-theme-name="Adwaita"
gtk-cursor-theme-size=24
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-button-images=1
gtk-menu-images=1
gtk-enable-event-sounds=0
gtk-enable-input-feedback-sounds=0
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle="hintslight"
gtk-xft-rgba="rgb"

Any help is much appreciated.

I’m making some progress. With the following config:

~/.config/gtk-3.0/settings.ini:

[Settings]
gtk-application-prefer-dark-theme=true
gtk-button-images=1
gtk-cursor-theme-name=Adwaita
gtk-cursor-theme-size=24
gtk-decoration-layout=icon:minimize,maximize,close
gtk-enable-animations=true
gtk-enable-event-sounds=0
gtk-enable-input-feedback-sounds=0
gtk-font-name=Noto Sans 11
gtk-icon-theme-name=Papirus-Dark
gtk-menu-images=1
gtk-primary-button-warps-slider=false
gtk-theme-name=Nordic
gtk-toolbar-icon-size=GTK_ICON_SIZE_LARGE_TOOLBAR
gtk-toolbar-style=GTK_TOOLBAR_BOTH_HORIZ
gtk-xft-antialias=1
gtk-xft-hinting=1
gtk-xft-hintstyle=hintslight
gtk-xft-rgba=rgb

~/.config/gtk-4.0/settings.ini:

[Settings]
gtk-application-prefer-dark-theme=true
gtk-cursor-theme-name=Adwaita
gtk-cursor-theme-size=24
gtk-decoration-layout=icon:minimize,maximize,close
gtk-enable-animations=true
gtk-font-name=Noto Sans,  11
gtk-icon-theme-name=Papirus-Dark
gtk-primary-button-warps-slider=false

However, Arch Wiki and even general Wikipedia still has this monospace font:

Is it firefox or even website setting? Or something in my KDE setting? Thanks again!

Once I changed Sans-serif from JetBrainsMono Nerd Font to say, Noto Sans in Firefox font setting, the monospace problem is gone. Thanks!

So my font problem is two-fold: one is system setting and the other Firefox setting. The dolphin situation is fixed by the config mentioned above; the Firefox situation fixed by just changing Firefox font setting.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.