Command-line tool to convert TTF to OTF?

Primary tabs

6 posts / 0 new
Last post
mike anderson's picture
Offline
Joined: 10 Oct 2013 - 4:20pm
Command-line tool to convert TTF to OTF?
0

Does one exist? I really like the way TransType 3 Pro performs in its conversion process, but it would be more flexible if a command-line tool existed that did the same thing at at least nearly the same quality.
I've tried FontForge and it doesn't do such a good job on some TTFs I've tested. Sometimes it doesn't even convert the outlines to PS and the end/starting node(s) are not aligned properly but instead off by a few pixels creating an ugly jagged effect :/ Unfortunately also most online font converters do the same thing (bad quality).

Any ideas? Can be a program/script (ie. python) and run on Win/Mac/Linux no problem, I got all three OS's :)

Jens Kutílek's picture
Offline
Joined: 12 Sep 2007 - 7:55am
0

Why do you need to convert them at all? There are very few reasons that I can think of why this should be necessary.

Charles Ellertson's picture
Joined: 3 Nov 2004 - 11:00am
0

Jens, as I understand it, MS Word will not use OpenType features with a ttf font unless the font has a digital signature. Expensive. However, with Word, the same font will use the same OT features if the font is in otf format.

All more evidence for the hypothesis that there is (currently) no intelligent life beyond earth, because within 250 years of discovering radio wave communications, any species self-destructs.

Reynir Heiðberg Stefánsson's picture
Joined: 19 Nov 2010 - 11:15am
0

It seems to have dribbled out of the documentation, but FontForge can append a dummy digital signature. Dunno if it's still Good Enough, though. I think it's also possible with ttx.

Frank E. Blokland's picture
Joined: 28 Mar 2003 - 12:31pm
0

Té: ‘[…] a dummy digital signature. Dunno if it's still Good Enough […]

Yes, adding a dummy ‘DSIG’ will do the trick. One can generate one with for instance FontForge and just copy it to other TTF fonts. At DTL we use OTM for this, of course, but surely there are other tools for this purpose too. I don’t know whether it is available still, but quite some time ago the free command-line utility Addtable.exe worked for us as well.

FEB

Dave Crossland's picture
Offline
Joined: 14 Feb 2007 - 1:47pm
0

I've tried FontForge and it doesn't do such a good job on some TTFs I've tested. Sometimes it doesn't even convert the outlines to PS and the end/starting node(s) are not aligned properly but instead off by a few pixels creating an ugly jagged effect :/

Please email me about this, d.crossland@gmail.com, and I'll get FontForge fixed :)