#!/bin/sh
### nach http://lists.debian.org/debian-user/2000/debian-user-200011/msg01817.html
apt-get install msttcorefonts ttmkfdir
cd /usr/share/fonts/truetype
ttmkfdir -o fonts.scale
# perl -we 'open X, "<fonts.scale" or die;
#              %h=(); $n=<X>;
#              while(<X>){
#              /^(\S+\.ttf)/; unshift @{$h{$1}}, $_;
#              }
#              open X, ">fonts.scale" or die;
#              print X $n;
#              for $x (sort keys %h){ %print %X %@{$h{$x}}; }'
mkfontdir
cp -a fonts.[ds]* /usr/X11R6/lib/X11/fonts/TrueType/
echo "Append  /usr/X11R6/lib/X11/fonts/TrueType/ to /etc/X11/XF86Config-4"
echo "Append  /usr/X11R6/lib/X11/fonts/TrueType/ to /etc/X11/fs/config"
