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?
About this post
- Posted
- Archived
- Score
- 15 · 100% up
- Kind
- Text
- ID
- 956tsf
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.
Thank you all for the replies!
But i fixed the issue by adding:
URxvt.letterSpace:-2
to my .Xresources file
If you are willing to use the AUR, there is a patched version of urxvt that is nicer than the one in the default Arch repo. It handles fonts more nicely, IIRC. It's been quite awhile since I've used either version of urxvt as my main terminal emulator, so YMMV.
https://aur.archlinux.org/packages/rxvt-unicode-patched/
That one? Thanks!
Have you tried adding configuration you like to .Xresources or you just change it in a console?
i use .Xresources
Do you mind sharing your .Xresources?
Check out Termite sometime. It also uses its own config file. Just a suggestion. I like trying all things lol
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/
wow thank you, this looks really good! im sure this is a better solution than i came up with, thank you for responding!
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.
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+ 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.
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
I believe you having installed the fonts which are in your config. Installating the corresponding fonts package will fix it
set vconsole FONT?
VCONSOLE_CONF () {
# https://wiki.archlinux.org/index.php/Keyboard_configuration_in_console
echo "KEYMAP=$VCONSOLE_KEYMAP
FONT=$VCONSOLE_FONT" > $CHROOTX/etc/vconsole.conf
}