Postscript font metrics?

Steve Holden sholden at bellatlantic.net
Wed Jul 5 09:22:37 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?
> 
> If not, I might have a go at hacking the relevant parts of the Perl
> PostScript-Font-1.02 module into Python... but then I'll have to
> (yuck) read someone else's Perl code, which I haven't done in a
> looong time and I was never that good at it.
> 
> --
> .................    paul winkler    ..................
> slinkP arts:   music, sound, illustration, design, etc.
>         web page:  http://www.ulster.net/~abigoo
>       A member of ARMS:   http://www.reacharms.com
>                or http://www.mp3.com/arms


Have you considered using PIDDLE for your PostScript output?

I recently used it to generate PDF files, but PostScript is another
possible backend.  It's impressive, and will compute string lengths
for you to allow "typesetting"-style outputs.  Take a look at

	http://piddle.sourceforge.net

Hope this helps.

regards
 Steve

-- 
Helping people meet their information needs with training and technology.
703 967 0887   sholden at bellatlantic.net   http://home.cox.rr.com/sholden/



More information about the Python-list mailing list