User Tools

Site Tools


blog:convert_otf_to_ttf

This is an old revision of the document!


Convert OTF to TTF

Create a TrueType font out of a OpenType one (e.g. because OpenOffice.org and VISIO doesn’t support .otf) by using FontForge:

otf2ttf
#!/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 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 

Discussion

Enter your comment. Wiki syntax is allowed:
   ____  _   __ ______   __ __  __  __
  / __/ | | / //_  __/  / //_/ / / / /
 / _/   | |/ /  / /    / ,<   / /_/ / 
/___/   |___/  /_/    /_/|_|  \____/
 
blog/convert_otf_to_ttf.1461308718.txt.gz · Last modified: 2016-04-22 09:05 by brb