You are not logged in.
Pages: 1
I've been using Arch for a few years now and just did a big reinstall because I wanted to rebuild my system from the ground up again, but a bit less bloated this time. I was wondering - how can I change the default font?
I've installed terminus-font, and put the correct settings in .Xresources so urxvt is already displaying everything in Terminus, and also put the correct setting in ~/.i3/config so i3, my window manager, would also use Terminus. This all went swimmingly, but my freshly installed surf (the suckless browser) displays everything in some sort of really ugly distorted font that's obviously not Terminus. I've looked through all the documentation I could find for a long while now, but I have no idea where it (surf or any program without a specific font already set in a config) pulls its default font from.
The only relevant thing I've found is ArchWiki mentioning that you can run fc-match to output the default font being used, which outputs:
SyrCOMAdiabene.otf: "East Syriac Adiabene" "Regular"This isn't the font I want to use, and I have no idea why it is default or how I would go about changing it. I've looked through every page on fonts and font configuration and X and everything, but it seems it just isn't mentioned where the default font is set, or even how such a default would behave and how a given program would go about selecting which font it should use to display stuff. So my questions are:
1. How do I set Terminus to be the font used by any applications, old and new, and yet to be installed? Is it possible to set this globally or is it on a per-application basis only? Does surf use GTK or something to get its default font or do I need to edit its config.h and recompile or something?
2. Can I just delete every other font that isn't terminus, so it can always only use terminus? Why is this dumb?
Thanks for any help.
Offline
You need to set a default font for GTK and Qt applications: see the wiki for the details...
I would imagine surf's font is set in config.h, though.
Offline
Thanks for you reply! I created a ~/.gtkrc-2.0 as mentioned in the wiki, containing:
gtk-font-name = "Terminus 8"But the output of fc-match is still unchanged:
SyrCOMAdiabene.otf: "East Syriac Adiabene" "Regular"Where is fc-match getting its default from, and how can I change it? The weird thing is that I don't remember it being like this on any of the previous installations, and the only font-related thing I've done so far this time around was running pacman -S terminus-font. Why would it default to such an odd font? Can I just delete it?
Last edited by Grus (2015-01-11 01:06:43)
Offline
The output of `fc-match` is, AFAICT, completely irrelevant.
Offline
fc-match isn't always accurate, especially when not given any pattern to match. More important to the user would be fc-match sans-serif, fc-match serif, and fc-match monospace.
I believe the wiki's page for Font Configuration is accurate: font configuration is set using the file /etc/fonts/fonts.conf, the symlinks in /etc/fonts/conf.d/, the file $XDG_CONFIG_HOME/fontconfig/fonts.conf, and any files in $XDG_CONFIG_HOME/fontconfig/conf.d/. If you have not set a value for $XDG_CONFIG_HOME, it defaults to $HOME/.config. And, of course GTK apps use their own configuration files, and the various, older Xlib apps set their own fonts. . .
Font configuration is a confusing mess – settings are spread over numerous files in many locations and the manuals expect a degree of literacy with technical jargon that a new user may not have. I haven't yet found an Ariadne to lead me through the labyrinth.
Offline
Pages: 1