
Getting Width Information from a Postscript font
Quote:
> > > I dont know a great deal about the fundamentals of PS so sorry if this
> is a
> > > nonsensical question.
> > > Ive got a project where I need to know how to get exact width
> information
> > > about each character in a given PS Font. I want to be able to tell,
> given
> > > the name and size of the font, exactly how much room it will take up on
> the
> > > page.
> > Best advice is to get the character width from the AFM file for
> > the font in question. An AFM is an Adobe Font Metrics file, a
> > plain ASCII text file that contains information about font metrics.
> > --
> Thanks. Where can I get AFM files from?
The font vendor.
Quote:
> Does that mean I have to get an AFM file for EVERY font,
All the ones you want to use at least.
Quote:
> because we've got lots.
You probably received AFMs when you purchased the fonts. If you're
working on windows, then you must have PFMs for the fonts you use,
and there are PFM->AFM converters. Alternatively, you could consider
getting the metrics from the PFM.
Quote:
> Is there a program that can create them for you?
getafm, which is part of the widely-available psutils. But as the
man page says:
BUGS
Kerning information is not generated by getafm; it is best
to use original AFM files if possible.
--