Default font changing when adding a font to ~/fonts
Hey guys, I have i3wm running and when I added fonts to my ./~fonts it changes the font used by i3-bar, rofi, chromium but not pcmanfm, my font is set in my i3 config, if I remove the new font it reverts to the desired one, why does it do this?
Edited 15 Sep 2017. We only hold this version.
About this post
- Posted
- Archived
- Edited
- Score
- 4 · 100% up
- Kind
- Text
- ID
- 70792m
4 comments
You need to create a config file in
~/.config/fontconfig/conf.d/to set default fonts (sans-serif, serif, and monospace). Here is one of my files for reference.Is there somekind of GUI for managing fontconfig? Because I can't get my desktop to show any difference even when changing my config for different fonts. Also Arch wiki says to put the config $XDG_CONFIG_HOME/fontconfig/fonts.conf there is that right?
There are probably GUIs but I don't know of them.
That directory is correct, but in my opinion, not the ideal, since it doesn't allow additional files in the future if desired. The ideal location in my opinion is what I mentioned before. But it doesn't really matter right now.
What matters is that you see no effect. You have to figure out what font is affected. It might be your default sans-serif font, or your default monospace font, or your default fallback font for no match. You can run
fc-match "sans-serif",fc-match "monospace"orfc-match(not as root) to see the defaults of each of those respectively. Check before and after.Also make sure the font you specify in your config file actually exists and works with
fc-match "fontname"(insert font name).i3 config only sets i3 font, not a default font for everything. To choose default fonts you should create a fontconfig config