Convert otf to ttf


/ Published in: Bash
Save to your folder(s)

Save the script as otf2ttf.sh and type:

fontforge -script otf2ttf.sh FONTNAME.otf

If you want to convert many .otf fonts in a directory to .ttf fonts, type (thanks sw!):

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


Copy this code and paste it in your HTML
  1. #!/usr/local/bin/fontforge
  2. # Quick and dirty hack: converts a font to truetype (.ttf)
  3. Print("Opening "+$1);
  4. Open($1);
  5. Print("Saving "+$1:r+".ttf");
  6. Generate($1:r+".ttf");
  7. Quit(0);

URL: http://www.stuermer.ch/blog/convert-otf-to-ttf-font-on-ubuntu.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.