Skip to content

How to fix fonts in arch?

When I use a window manager without a desktop enviroment, the fonts are really messed up, when i use any terminal other than urxvt or xterm the spacing is messed up, then when I try to change the font in urxvt or xterm the spacing messes up again. Any ideas to fix this?

15 points17 comments
Open on Reddit
About this post
Posted
Archived
Score
15 · 100% up
Kind
Text
ID
956tsf

Author

1
posts
8
comments
0
media
View profile

17 comments

Imma recommend you check out the Fonts section in the ArchWiki.

I'm not sending you that direction because I'm a jerk; I'm sending you that way for a better explanation than i could give you.

Trust the Arch Wiki.

30 points

Thank you all for the replies!

But i fixed the issue by adding:

URxvt.letterSpace:-2

to my .Xresources file

6 points

Have you tried adding configuration you like to .Xresources or you just change it in a console?

3 points

Check out Termite sometime. It also uses its own config file. Just a suggestion. I like trying all things lol

2 points

Store this file as $(HOME)/.config/fontconfig/fonts.conf

https://raw.githubusercontent.com/bytting/dotfiles/master/home/.config/fontconfig/fonts.conf

Install some good font packages: ttf-liberation, ttf-droid, noto-fonts, adobe-source-code-pro-fonts

Then reboot.

The adobe source code pro font is by far the best for terminals. You can configure it in .Xresources

https://raw.githubusercontent.com/bytting/dotfiles/master/home/.Xresources

And here is how to calculate the correct DPI value for your screen

https://winaero.com/blog/find-change-screen-dpi-linux/

1 points

wow thank you, this looks really good! im sure this is a better solution than i came up with, thank you for responding!

1 points

You're welcome. Basically, Arch doesn't add any configuration other than what the upstream projects comes with by default, so fonts needs a little work. Installing some decent font packages and adding the fonts.conf file is all it takes though.

2 points

I still don't get the proper way to change fonts, even reading the wiki, the console font i understand, but using i3wm + urxvt or st terminal i found out that i have to change the font for each one, i don't know if this is the right way but it worked for me

1 points

1+ on that. I couldn’t figure it out either. Just lucked out that sun12x22 was big enough to be readable on my MacBook. I’m just sticking with that for now.

1 points

Sorry for not being a great help but i fixed mine simply switching fonts. Google might say something if you google fontname + your WMs name

1 points

I believe you having installed the fonts which are in your config. Installating the corresponding fonts package will fix it

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.