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:

# Quick and dirty hack: converts a font to truetype (.ttf)
Print("Opening "+$1);
Print("Saving "+$1:r+".ttf");

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

for i in *.otf; do fontforge -script $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>