convert .otf to .ttf fonts on linux

Because i needed to do that… The instruction is from this article.
Here we go…
Make sure fontforge is installed. then generate the following script:

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

Save the script as otf2ttf.sh
To convert all .otf in a folder do:

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

That’s it

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>