I run a light desktop, currently openbox, and prefer to set things up through config files rather than relying on settings managers.
In the case of fonts, this allows much more refined control, consistent across all apps, system wide. It's possible to control settings per font family, per weighting, per point size, to remap fonts, to supply preferences/fallbacks for unavailable fonts etc.
'Nice fonts' is of course subjective, and can depend on monitor type, geometry, dpi, antialiasing/hinting preferences etc, but here's my ~/.fonts.conf to use as a starting point. Copy it to your home directory, rebuild freetype2 if you need to, install the relevant fonts, run fc-cache, reboot/restart X and tweak from there...
Make sure your '.gtkrc-2.0' is including your personal '.gtkrc.mine'...
And that your '.gtkrc.mine' contains font settings...
Finally, make sure firefox font preferences are set to defaults (ie. serif/sans-serif/monospace - no named fonts as fonts.conf takes care of all that properly).
Remember I'm not using a settings manager. If you are (check with ps aux) then make sure your manual settings aren't being overridden.
With these settings I have a very clean looking desktop, with crisp fonts that look good in all apps, and on all websites I visit, and gives me my beloved terminus for terminals
I'd be interested in seeing what others have in addition to these settings...
In the case of fonts, this allows much more refined control, consistent across all apps, system wide. It's possible to control settings per font family, per weighting, per point size, to remap fonts, to supply preferences/fallbacks for unavailable fonts etc.
'Nice fonts' is of course subjective, and can depend on monitor type, geometry, dpi, antialiasing/hinting preferences etc, but here's my ~/.fonts.conf to use as a starting point. Copy it to your home directory, rebuild freetype2 if you need to, install the relevant fonts, run fc-cache, reboot/restart X and tweak from there...
XML:
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
install ==> print/freetype2 [WITH_LCD_FILTERING=yes and assumes BCI not disabled]
install ==> x11-fonts/dejavu
install ==> x11-fonts/webfonts
install ==> x11-fonts/terminus-font
-->
<!-- reject all bitmap fonts, with the exception of 'terminus' -->
<selectfont>
<acceptfont>
<pattern>
<patelt name="family"> <string>Terminus</string> </patelt>
</pattern>
</acceptfont>
<rejectfont>
<pattern>
<patelt name="scalable"> <bool>false</bool> </patelt>
</pattern>
</rejectfont>
</selectfont>
<!-- preferred aliases -->
<alias> <family>serif</family>
<prefer>
<family>DejaVu Serif</family>
</prefer>
</alias>
<!-- preferred aliases -->
<alias> <family>sans-serif</family>
<prefer>
<family>DejaVu Sans</family>
</prefer>
</alias>
<!-- preferred aliases -->
<alias> <family>monospace</family>
<prefer>
<family>DejaVu Sans Mono</family>
<family>Terminus</family>
</prefer>
</alias>
<!-- default quality settings -->
<match target="font">
<edit mode="assign" name="rgba"> <const>none</const> </edit>
<edit mode="assign" name="antialias"> <bool>true</bool> </edit>
<edit mode="assign" name="autohint"> <bool>true</bool> </edit>
<edit mode="assign" name="hinting"> <bool>true</bool> </edit>
<edit mode="assign" name="hintstyle"> <const>hintfull</const> </edit>
</match>
<!-- reduce ringing ==> requires freetype2 'WITH_LCD_FILTERING=yes' -->
<match target="font">
<edit mode="assign" name="lcdfilter"> <const>lcdlight</const> </edit>
</match>
<!-- disable autohinting for bold fonts -->
<match target="font">
<test compare="more" name="weight"> <const>medium</const> </test>
<edit mode="assign" name="autohint"> <bool>false</bool> </edit>
</match>
<!-- disable autohinting for fonts that don't need it -->
<match target="pattern" name="family">
<test qual="any" name="family">
<string>Andale Mono</string>
<string>Arial</string>
<string>Arial Black</string>
<string>Comic Sans MS</string>
<string>Courier New</string>
<string>Georgia</string>
<string>Impact</string>
<string>Trebuchet MS</string>
<string>Tahoma</string>
<string>Times New Roman</string>
<string>Verdana</string>
<string>Webdings</string>
</test>
<edit mode="assign" name="hinting"> <bool>true</bool> </edit>
<edit mode="assign" name="autohint"> <bool>false</bool> </edit>
</match>
</fontconfig>
Make sure your '.gtkrc-2.0' is including your personal '.gtkrc.mine'...
Code:
include "/home/mart/.gtkrc.mine"
And that your '.gtkrc.mine' contains font settings...
Code:
style "user-font"
{
font_name = "Sans 9"
}
widget_class "*" style "user-font"
gtk-font-name = "Sans 9"
Finally, make sure firefox font preferences are set to defaults (ie. serif/sans-serif/monospace - no named fonts as fonts.conf takes care of all that properly).
Remember I'm not using a settings manager. If you are (check with ps aux) then make sure your manual settings aren't being overridden.
With these settings I have a very clean looking desktop, with crisp fonts that look good in all apps, and on all websites I visit, and gives me my beloved terminus for terminals
I'd be interested in seeing what others have in addition to these settings...
Last edited by a moderator: