miscnotes:fonts
Font Notes
Convert OTF font to TTF
Tested with fontforge-cygwin_2012_08_02.zip on Windows 7.
- Download FontForge for Windows from unofficial fontforge-cygwin.
- Extract the zip.
- If the computer is part of an AD Domain, edit fontforge.bat. Replace the lines:
if not exist "cygwin\etc\passwd" ( mkpasswd > "cygwin\etc\passwd" ) if not exist "cygwin\etc\group" ( mkgroup > "cygwin\etc\group" )
With:
if not exist "cygwin\etc\passwd" ( mkpasswd -l > "cygwin\etc\passwd" ) if not exist "cygwin\etc\group" ( mkgroup -l > "cygwin\etc\group" )
This is to prevent the passwd and group files from being filled with all Active Directory accounts and groups.
- Open a command prompt and use it to start fontforge.bat.
- An Open Font window appears. Click Cancel.
- Copy and paste the following and save as otf2ttf.txt next to fontforge.bat:
#!/usr/local/bin/fontforge Print("Opening "+$1); Open($1); Print("Saving "+$1:r+".ttf"); Generate($1:r+".ttf"); Quit(0);
- Execute the following command in the command prompt and substitute the last parameter with the filename of the OTF font:
fontforge.exe -script otf2ttf.txt font.otf
- There should now be a TTF version of the font next to the OTF file.
miscnotes/fonts.txt · Last modified: 2012/10/04 17:56 by bas