[comp.lang.postscript] Generating AFM files for PD fonts

austin@skorpio.USask.CA (Alvin Austin) (12/06/90)

Most wp programs require that an AFM file be provided with a
downloadable PS font so that the program can figure out how 
to do character spacing and line breaking.

For public domain fonts, these AFM files are often either 
non-existent or not included.

Has anyone come up with some code to produce at least a 
partial AFM file (which could then be hand-edited), either
by writing a stand-alone program, or maybe sending the 
font to the printer, then using 'stringwidth' (and other)
operators, and then capturing the 'print' output?

Any comments or suggestions welcome...

Thanks,
Alvin Austin
___________________________________________________________________________
Alvin Austin                                Email: austin@skorpio.USask.Ca
Department of Computational Science
(Mail) Room 1C101 Engineering Building     Office: Room 145.1 Arts Building
University of Saskatchewan              Telephone: (306) 966-4895
Saskatoon, Sask. CANADA  S7N 0W0              FAX: (306) 966-8709
___________________________________________________________________________

pd1h+@andrew.cmu.edu (Philip H. Dye) (12/09/90)

As I recall a postscript program that prints own the AFM file or outputs
it to the printers standard output (back to the send on a serial line) is
available on the adobe ps developers package.  All of the information and
programs from that package are available from the adobe fileserver.

Philip

clewis@ecicrl.UUCP (Chris Lewis) (12/11/90)

In article <1990Dec5.203819.9021@herald.usask.ca> austin@skorpio.USask.CA (Alvin Austin) writes:
>Most wp programs require that an AFM file be provided with a
>Has anyone come up with some code to produce at least a 
>partial AFM file (which could then be hand-edited), either
>by writing a stand-alone program, or maybe sending the 
>font to the printer, then using 'stringwidth' (and other)
>operators, and then capturing the 'print' output?

If ditroff width tables are close enough for your hand-editting,
there's a program in psroff 2.0 which you can send to the printer
and it spits back ditroff width tables in shar format.  This could
be the basis of a AFM-specific format generator.
-- 
Chris Lewis, Phone: (613) 832-0541
UUCP: uunet!utai!lsuc!ecicrl!clewis
Moderator of the Ferret Mailing List (ferret-request@eci386)
Psroff mailing list (psroff-request@eci386)

pgd@bbt.se (12/13/90)

In article <1990Dec5.203819.9021@herald.usask.ca> austin@skorpio.USask.CA (Alvin Austin) writes:
>Most wp programs require that an AFM file be provided with a
>Has anyone come up with some code to produce at least a 
>partial AFM file (which could then be hand-edited), either
>by writing a stand-alone program, or maybe sending the 
>font to the printer, then using 'stringwidth' (and other)
>operators, and then capturing the 'print' output?

There is a program in the archives which generates an AFM file from
any font. I got one from there, but have forgotten exactly from where.
But can try with:
comp.sources.unix volume 7 issue 7: Postscript program to generate .AFM files

P. Garbha

shiva@well.sf.ca.us (Kenneth Porter) (12/15/90)

austin@skorpio.USask.CA (Alvin Austin) writes:
 
> Has anyone come up with some code to produce at least a 
> partial AFM file (which could then be hand-edited), either
> by writing a stand-alone program, or maybe sending the 
> font to the printer, then using 'stringwidth' (and other)
> operators, and then capturing the 'print' output?
 
Pipeline Associates (publishers of The PostScript Journal) has
getafm.ps, which when sent to the printer, will return the AFM
file for a font.  Does anyone have an email address for
Pipeline?
 
Ken (shiva@well.sf.ca.us)