Skip to content

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.

4 points4 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
4 · 100% up
Kind
Text
ID
70792m

Author

25
posts
42
comments
5
media
View profile

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.

2 points

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?

1 points

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" or fc-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).

2 points

i3 config only sets i3 font, not a default font for everything. To choose default fonts you should create a fontconfig config

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.