$ mkdir /usr/share/fonts/default/TrueType
cp *.otf /usr/share/fonts/default/TrueType
cd /usr/share/fonts/default/TrueType
ttmkfdiror
/usr/sbin/ttmkfdir
>mkfontdir
chkfontpath --add /usr/share/fonts/default/TrueTypeor
/usr/sbin/chkfontpath --add /usr/share/fonts/default/TrueType
fc-cache
>exit
# you must be in directory with your .otf files! # (C) Vijay Kumar, 2005 su mkdir /usr/share/fonts/default/TrueType cp *.otf /usr/share/fonts/default/TrueType cd /usr/share/fonts/default/TrueType /usr/sbin/ttmkfdir mkfontdir /usr/sbin/chkfontpath --add /usr/share/fonts/default/TrueType fc-cache
To convert an otf font to ttf (because OpenOffice does not care about otf fonts), you can use the following procedure.
#!/usr/local/bin/fontforge #! (C) Thomas Maier, 2007 # Usage: # for i in *.otf; do echo $i; fontforge -script ~/bin/otf2ttf.sh $i; done # Quick and dirty hack: converts a font to truetype (.ttf) Print("Opening "+$1); Open($1); Print("Saving "+$1:r+".ttf"); Generate($1:r+".ttf"); Quit(0);After saving this procedure to a convinient place, you can use it (using bash) in the following manner:
for i in *.otf; do echo $i; fontforge -script ~/bin/otf2ttf.sh $i; done