freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft] Parsing AFM files without PFA/PFB


From: Antony Lee
Subject: Re: [ft] Parsing AFM files without PFA/PFB
Date: Wed, 27 Mar 2019 18:03:49 +0100

Thanks for the quick reply.
Antony Lee

On Wed, Mar 27, 2019 at 3:51 PM Werner LEMBERG <address@hidden> wrote:

>
> > Does FreeType provide a way to parse an AFM file and extract the
> > corresponding glyph metrics and kerning information, when the
> > accompanying PFA/PFB file is not present?
>
> No.
>
> > One use case is Matplotlib's postscript backend, which can layout
> > glyphs just based on their metrics but does not need the pfa/pfb
> > files itself.  Right now Matplotlib uses its own handwritten AFM
> > parser, but it would be nice if FreeType's AFM support could be used
> > instead.
>
> Well, FreeType is a *rendering* library, i.e., its main goal is to
> produce bitmaps.  Scanning AFM files alone is completely useless for
> FreeType; for this reason there isn't a separate API to access the
> metrics data.
>
>
>     Werner
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]