ArchLinux – editing font sizes

Posted in How To's by Shafkat Shahzad, M.Sc - Senior Technical Content Manager on November 28th, 2009

Welcome to the tutorial guide. The guide will provide a user with guidance and instructions on how to edit font. There are two methods which are glu’s method and old method. Let’s have a lookl at the glu’s method.
The_glu’s method
You can edit /etc/X11/xinit/xserverrc and add “-dpi 134″:
exec /usr/bin/X -nolisten tcp -dpi 134

Please restart X and fonts should have the correct size. Notice it’s won’t works if you have Xft*dpi: in your .XDefaults.
You don’t need to edit your config file to set a smaller font size and if you did you should set font-size to 10 or you will have to small fonts…

Old method
On a default installation with Xfce 4 the font sizes were too big, here is what I did to sort them out.
The first step is to set the DPI by adding the following command to ~/.Xdefaults:
Xft*dpi: 134

This will then cause the fonts to be even bigger. If you want to set them all to be font-size 12. You can do this by adding the following into ~/.gtkrc-2.0:
style “user-font”
{
font_name=”Bitstream Vera Sans 12″
}
widget_class “*” style “user-font”

If you want to do the same with KDE fonts only if KDE is not installed then you can add the following to ~/.kde/share/config/kdeglobals:
[General]
StandardFont=Bitstream Vera Sans,6,-1,5,50,0,0,0,0,0
activeFont=Bitstream Vera Sans,6,-1,5,75,0,0,0,0,0
fixed=Bitstream Vera Sans Mono,6,-1,5,50,0,0,0,0,0
font=Bitstream Vera Sans,6,-1,5,50,0,0,0,0,0
menuFont=Bitstream Vera Sans,6,-1,5,50,0,0,0,0,0
taskbarFont=Bitstream Vera Sans,6,-1,5,50,1,0,0,0,0
toolBarFont=Bitstream Vera Sans,6,-1,5,50,0,0,0,0,0

If you followed the guidance and instructions as provided in this tutorial guide then you would have learnt about editing font size.

Bookmark Us
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google
  • MisterWong
  • Netvouz
  • Reddit
  • Slashdot
  • Spurl
  • StumbleUpon
  • Technorati
  • Wists

Leave a Comment