debian/scripts/ConvertOTFont.ff
raw| 1 | #!/usr/bin/fontforge |
| 2 | # |
| 3 | # Convert fonts from PfaEdit's native format to OpenType format |
| 4 | |
| 5 | if ($argc > 1) |
| 6 | i = 1; |
| 7 | while ( i < $argc ) |
| 8 | Open($argv[i]) |
| 9 | otfile = $fontname + ".otf" |
| 10 | Print("Converting ",otfile) |
| 11 | Generate(otfile) |
| 12 | Close() |
| 13 | i++ |
| 14 | endloop |
| 15 | else |
| 16 | Print("Usage: $0 font.sfd [font.sfd ...]") |
| 17 | endif |