Fonts

Posted by zbrom on August 01, 2013 · 1 min read

Arch Linux only comes with the bare minimum essential fonts. I had not realized it was necessary to install additional fonts until after libreoffice was installed. This guide will provide the user with some useful fonts for a typical Arch install. For additional fonts please visit the Arch Wiki.


Font Installation:

For compatibility with office documents, I recommend installing Microsoft Fonts and the Liberation Fonts.

pacman -S ttf-liberation && yaourt -S ttf-ms-fonts

I frequently use Chinese, Korean, Japanese characters in filenames; the following asian fonts are optional if you desire the compatibility.

pacman -S ttf-hannom ttf-baekmuk && yaourt -S ttf-vlgothic

Xorg Configuration:

After installing desired fonts, the font paths must be added to the xorg file.

Go to /usr/share/fonts/ to display all installed fonts.

Edit your xorg config file with your favorite text editor:

nano /etc/X11/xorg.conf

Here is a sample xorg configuration, you must modify it to match the fonts installed in your fonts folder; then add it to xorg.conf.

Code:

# Let X.Org know about the custom font directories
Section "Files"
FontPath "/usr/share/fonts/75dpi"
FontPath "/usr/share/fonts/100dpi"
FontPath "/usr/share/fonts/cyrillic"
FontPath "/usr/share/fonts/encodings"
FontPath "/usr/share/fonts/kanjistrokeorders"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/util"
EndSection

All your fonts should now be recognized; a reboot may be required.

References:

https://wiki.archlinux.org/index.php/Fonts