Forum Documentation

Fonts on FreeBSD

James Bursa
I didn't see this anywhere in the documentation or forum, so here's a summary of how to get fonts working on FreeBSD most easily.

1. Install the fontconfig and webfonts ports

2. Install Prince (e.g. prince-6.0r6-freebsd63.tar.gz)

3. Edit prince/bin/prince and add the line
export FONTCONFIG_PATH=/usr/X11R6/etc/fonts
before the last line

This avoids "prince: internal error: no available fonts" or having to put paths to ttf files in your CSS.

James
mikeday
Thanks for the tips! :)
jm.federico
Latest version of FreeBSD don't need to export FONTCONFIG_PATH, just do this:

sudo pkg install fontconfig
cd /usr/ports/x11-fonts/webfonts
sudo make install clean