I've had my environment fonts set up a certain way for the past year or two to be significantly smaller and easier to read (for me) along with a bunch of other gui tweaks. Forgot a lot of the things I did to do it again, though.
After a software update on some applications last night, the font for a lot of things, but not everything, changed to a larger size. The only thing font-related that synaptic
updated was fontconfig
, fontconfig-config
and related libs.
Basically, where do applications get their default font settings from and how can I configure them?
Although, I don't have a DE or gnome-settings-daemon
running, I tried setting the options in gnome-tweak-tool
, assuming it's a setting for GNOME/gtk applications, but it still didn't work. Tried looking for font-related settings in dconf-editor
and gconf-editor
as well.
I'm pretty sure I missed something since I've forgotten a lot of what I did to configure everything in the first place. For example, I checked my gtk2 and gtk3 settings as far as I can remember how they're set yet the settings still indicate the font and font size I've set since before.
Here's a list of some of the applications I've seen which had an increase in font size:
gvim
- I've only ever set the font and not the size in.vimrc
, the size just increased from what it used to be.i3
- Like gvim above, I only set the font in.i3/config
, soi3bar
and the window title bar had the correct font, but got bigger after the update.evince
- I first noticed it here. I was reading pdfs in presentation mode and noticed that the line "End of Presentation. Click to Exit" was bigger than it normally was. As usual, the font was still the correct one.dunst
- Notification font got bigger. I don't remember ever setting the font manually for this program, but it used to have the correct font and size I set for the system a long time ago without having to manually set the application-specific font option fordunst
.leafpad
- Display font got bigger. Weird because I remember using it with the right size the week before.dmenu
- Again, the font is the same as what I set it a long time ago. It's just bigger now.transmission-gtk
- File list shown with Right Click > Properties shows each line to have an incorrectly scaled font. Fortunately, most of the rest of the application still has the correct font and font size I want.gnome-calculator
- The font in the text box (the calculator "screen") is larger than normal.
Any information on how any of these applications set their fonts in the mentioned ways would help. Some of them share a clear common thread (being GTK/Gnome applications), but I'm thinking that further up the line, something common affected all of them in a similar way.
The fact that some of these applications have only ever had their font set, but not their font-size, tells me that the only thing that probably changed is whatever setting I changed a long time ago to set the font to be "smaller than default" got changed to a larger value. Again, I just can't remember or figure out where it's set.
EDIT: Unfortunately, I might have not been clear. The fonts themselves aren't the issue, but the size in which they are displayed by different applications. I've found the solution, which I've answered below.
Regarding location of fonts, they are stored in
/usr/share/fonts/
and/home/USERNAME/.fonts/
. This may be somewhat relevant.There is also a font section in the
unity-tweak-tool
for altering default font settings. Maybe give it a try.The solution I've found is to edit the dpi settings in
~/.Xresources
, by editing the line below to have the correct dpi value. The font now renders as it once did across multiple applications GTK or otherwise.