Postscript font metrics?

Just van Rossum just at letterror.com
Wed Jul 5 15:22:05 EDT 2000


Paul Winkler wrote:
>
> I need to generate some nice Postscript output from a python script,
> and I'm finding that I need to get at the font metrics info from the
> .afm files so I can place things correctly. (Either that or write
> *everything* in postscript -- no way!!)
>
> I can't find anything like this on Parnassus. Anyone ever seen any
> python code that gets the useful info from .afm files?

My (hardly advertized, but free) FontTools package contains an AFM parser:

   http://www.petr.nl/just/FontTools.tar.gz

Sorry, the doco is, erm, somewhat limited ;-)

Just



More information about the Python-list mailing list