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: , ,

Changing Locale on Debian to English

Ohne Kommentare

If you want to change the locale on your Debian system you can make
this habben with the following two commands:

CODE:
dpkg-reconfigure locales
locale-gen


After that you have to restart your console (type the name of your console or
open up a new terminal)

Geschrieben von Peter Rehm

06.01.2013 um 22:54:51

Tags für diesen Artikel: , ,