Importing potrace/ghostscript eps files into Fontlab

Christian Robertson
11.Feb.2008 9.11pm
Christian Robertson's picture

I’ve been trying to import eps files output from potrace and/or ghostscript into Fontlab with no success. Can anyone think of an automated way (as in accessible via script) to make this work without having to write a an eps interpreter or worse, a script for Illustrator?

Just in case any Postscript hackers are reading this, I’m attaching the output from potrace. If there is a simple thing in the output that is offending Fontlab, I wouldn’t mind parsing the eps to strip it out.

AttachmentSize
a_a.eps.txt0 bytes


DanGayle
11.Feb.2008 11.56pm
DanGayle's picture

This is unpopular, but potrace is available from within the Fontforge environment, from the command line. Michael Boyer might be the best person to ask about that, as he seems very open to helping out with that sort of thing.

Explained a little here


twardoch
12.Feb.2008 3.49am
twardoch's picture

Christian,

gs -q -dNODISPLAY -dNOPAUSE -dSAFER ps2ai.ps a_a.eps > a_a_new.eps

should do the trick.

Adam


twardoch
12.Feb.2008 3.56am
twardoch's picture

BTW, we would love to integrate Ghostscript as a library in FontLab products, which would allow us to import pretty much any PostScript, EPS and PDF files, but unfortunately, their licensing terms are quite prohibitive.

A.


Christian Robertson
12.Feb.2008 9.09am
Christian Robertson's picture

Awesome. Thanks, Adam. It’s nuts how Ghostscript uses ps to translate ps.


twardoch
12.Feb.2008 11.12am
twardoch's picture

I know a guy who wrote a citation management database in PostScript :)

A.