Thursday, April 23, 2009

Improving Font On Linux

Although this documentation specifically created for Ubuntu Linux, I have tried this method with both Ubuntu and Gentoo. The difference only on package (portage on Gentoo) and where the system put font files.

Fonts you need: artwiz-aleczapka, ttf-bitstream-vera and corefonts


1. artwiz-aleczapka and ttf-bitstream-vera
just Google these 2 fonts, and download it, then:
# tar xvjf artwiz-*.tar.bz2
# sudo mv artwiz-* /usr/share/fonts/X11/misc

# sudo dpkg -i ttf-bitstream-vera*.deb

2. corefonts
luckily, the corefonts package already available from ubuntu default repository, just execute:
# sudo apt-get install msttcorefonts

After done with all three fonts, run this:
# sudo fc-cache -f -v
# sudo dpkg-reconfigure fontconfig
# sudo dpkg-reconfigure fontconfig-config, and follow this options:
-- 1. native
-- 2. automatic
-- 3. yes

And you can add it to your /etc/X11/xorg.conf file (I put adding line in bold):

Section "Files"
FontPath "/usr/share/fonts/local"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/Type1"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/75dpi"
FontPath "/usr/share/fonts/100dpi"
FontPath "/usr/share/fonts/X11/misc"
FontPath "/usr/share/fonts/truetype/ttf-bitstream-vera/"
FontPath "/usr/share/fonts/truetype/msttcorefonts/"
End Section

No comments:

Post a Comment

Hi, for all of those who already put comments on my blog post, thanks.. really appreciate it. And for those who have not, just put your comments here :)