You are not logged in.
Hello!
So, not long after having a fresh install of Arch, I wanted to change the font in Termite, so I installed "Hack" font, with the ttf-hack package with pacman, and edited the config file, and worked.
After that I noticed that in Chromium the UI font also changed to Hack. (at UI font I mean, tab titles, bookmarks, any text on the settings drop-down etc. not the text on webpages).
Removing the package solves the problem, but I mean I want to use it in Termite.
Probably I screwed up/forgot to do some font configuration but even after reading the related wiki page, I'm not quite sure where do I need to edit it.
Any ideas how to resolve this?
Last edited by andriii25 (2017-06-24 17:40:50)
Offline
Does Chromium have any settings that would allow you to choose the font? I've never used it so I really don't know. As a last resort, you can configure your default fonts in ~/.config/fontconfig/fonts.conf
Offline
You edited what config file how?
Online
Does Chromium have any settings that would allow you to choose the font? I've never used it so I really don't know. As a last resort, you can configure your default fonts in ~/.config/fontconfig/fonts.conf
Chromium has some settings, but I made sure so that they are definitely not using the Hack font.
Now I tried replacing Hack font with a fonts.conf, which now looks like this, but even after a reboot nothing has changed.
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<match target="pattern">
<test qual="any" name="family"><string>hack</string></test>
<edit name="family" mode="assign" binding="same"><string>Noto</string></edit>
</match>
</fontconfig>Also, launching Chromium from command-line logs nothing that'd even remotely relate to font issues.
You edited what config file how?
Ah, sorry there I was referring to Termite's config, meaning that changing the font for Termite and in the terminal emulator it worked fine. Probably not that related to Chromium.
Offline
Try using an alias instead of a match. I'm not sure it will help, but that is how I have it set up on my computer.
<alias>
<family>sans-serif</family>
<prefer>
<family>Noto Sans</family>
</prefer>
</alias>Offline
Assuming the chromium UI uses the "Sans" font for its gui, what does "fc-match Sans" tell you?
Edit: this is basically same idea as circleface had.
Last edited by seth (2017-06-23 20:20:21)
Online
Try using an alias instead of a match. I'm not sure it will help, but that is how I have it set up on my computer.
<alias> <family>sans-serif</family> <prefer> <family>Noto Sans</family> </prefer> </alias>
Thanks, that worked wonderfully, and I think now I also have a better understanding on how fonts.conf works.
Offline