I search a way to automatically convert an sfd file (The work format of Fontforge) to the main font format (at least otf, ttf, woof, svg).
But I need to do it in command line, I don’t need to do it from GUI.
Unfortunately it seams that the Fontforge application don’t support it (I read the manpage and there is no mention of this usage). Anyway, I need to do it from command line but it’s not necessary to do it from Fontforge. Any other application who can convert the Fontforge work format “SFD” to the main font format.
So, how can I get a commands like this:
sfd2ttf input.sfd output.ttf
sfd2otf input.sfd output.otf
sfd2woff input.sfd output.woff
sfd2svg input.sfd output.svg
Best Answer
You can do it with Fontforge, see here:
In your case you can create a script, say
convertsfd
, like thismake it executable, and call it like this:
Change the second argument to
foo.otf
or to other formats as needed, I only tested withttf
andotf
.To call the script from anywhere, just place it in your
~/.local/bin
, or some other directory in yourPATH
.