jump to navigation

Convert otf to ttf March 4, 2009

Posted by maxmil in : Debian,Utils , trackback

Using fontforge (available in main debian repository) create the script otf2ttf.sh:

#!/usr/bin/fontforge
# 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);

Now pass as parameter to fontforge

fontforge -script otf2ttf.sh fontName.otf

To process a directory of fonts:

for i in *.otf; do fontforge -script otf2ttf.sh $i; done

This info was found here

Comments»

1. Rizaqu - December 1, 2009

Hello. Thanks for this valuable script. It works fine for me.