True Type Fonts in FreeBSD

This is tutorial how to install true type font in FreeBSD.

Load  freetype module in  /etc/X11/xorg.conf file inside “Module” section:

Load "freetype"

And then, create folder for True Type Font (.ttf). It has default location in /usr/local/lib/X11/fonts/TTF. Copy all .ttf files to this folder (some files have Microsoft license, it is not legal to copy).

Create fonts.dir file (something like a font archive).

# cd /usr/local/lib/X11/fonts/TTF
# ttmkfdir -o fonts.dir

The last, add this FontPath into /etc/X11/xorg.conf file in “Files” section:

FontPath "/usr/local/lib/X11/fonts/TTF"

Restart X Server (re-login).


Leave a Reply

Your email address will not be published. Required fields are marked *