Peter Rehm's Blog

apple,development,life & more

wkhtmltopdf and fonts on a linux/debian server

Ohne Kommentare

I just wondered why the created pdf is different between the one I had in my dev environment
and the one in production. The actual reason has been missing fonts in this case.

You can easily install the most common windows and mac fonts on your debian server:

CODE:
apt-get install msttcorefonts
wget https://invisible-files.googlecode.com/files/ttf-mac-fonts.tar.gz
tar xzvf ttf-mac-fonts.tar.gz
sudo mv ttf-mac-fonts /usr/share/fonts/
sudo fc-cache -f -v

Geschrieben von Peter Rehm

14.09.2013 um 16:20:33

Tags für diesen Artikel: , ,