Ubuntu-Note: Copy the TrueType Fonts into ”/usr/share/fonts/truetype” and then run “sudo fc-cache -f -v” and you are done. Details can be found in the Ubuntu Community Documentation. Of course, the Debian-way described below should also work on Ubuntu.

Truetype fonts in Debian

This Howto describes the steps to install Windows Truetype fonts onto a Debian system.

  • You will need the “ttmkfdir” package, and Python.
  • You will also need the Python script ”mkfontalias.py” which is available here.
  • You might need permission to do these steps so I use “su” (note the ”#” prompt at the start of the line).
  • You could install these fonts into /home/<username>/fonts, but remember to alter the paths in the instructions.
  • You should have a licence to use MS fonts, (the gospel according to Bill).
 # mkdir -p /usr/local/share/fonts/ttfonts
 # cp /c/windows/fonts/*.ttf /usr/local/share/fonts/ttfonts

 # apt-get install ttmkfdir

 # cd /usr/local/share/fonts/ttfonts
 # ttmkfdir -o fonts.scale

 # head -1 fonts.scale > fonts.dir
 # tail +2 fonts.scale | tac >> fonts.dir
 # cp fonts.dir fonts.scale

 # cd /usr/local/share/fonts/ttfonts
 # python <pathto>/mkfontalias.py
 # grep 'iso8859-1"' fonts.alias > new.alias
 # mv new.alias fonts.alias

Edit /etc/X11/XF86Config-4 to include this line

	FontPath	"/usr/local/share/fonts/ttfonts"

as is including the tabspace and double quotes.

Run this line or restart the X server

 $ xset fp+ /usr/local/share/fonts/ttfonts

Contributed by Douglas Orchard 2005/08/30 18:34

/home/www/LinuxBasics.org/data/pages/tutorials/using/truetype_fonts_in_debian.txt · Last modified: 2008/07/20 21:08 (external edit)
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0