freetype-devel
[Top][All Lists]
Advanced

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

[Devel] Re: Distiller produced PFA problems


From: Tom Kacvinsky
Subject: [Devel] Re: Distiller produced PFA problems
Date: Wed, 17 Jan 2001 20:30:39 -0500 (EST)

Ooops!  Indeed, FreeType 2 (as it currently stands) expects a font to have a
Subrs array.  I also know there is a bug in the FontMatrix parsing.  Division by
the fourth member of the FontMatrix does not take into account that the fourth
member may be negative.  I caught this while workin on the CFF driver, but
forgot to migrate it to the Type 1 driver...

I'll fix the FontMatrix stuff tomorrow, and look into the Subrs parsing.  The
latter is tricky: we have to add logic to the code to take into account the fact
the font might reference a non-existant subr (in particular, Subrs 0 - 3).
Which, AFAIK, is OK with Type 1 fonts, because Adobe's Type 1 rasterizers trap
certain Subrs (Subrs 0 - 3) in C code.  Not that this makes it OK, per se, but
conformance with Adobe's Type 1 rasterizers is as good a measuring stick as any.

Tom

On Wed, 17 Jan 2001, Tom Kacvinsky wrote:

> The problem is that the font has a missing FontInfo dictionary.  I added one
> based on some Type 1 fonts laying around, and things then worked out OK.  The
> only problem now is that the font views rather weird.  I'll look into it more
> tomorrow...
>
> Tom
>
> On Wed, 17 Jan 2001, Blinn, Eric W wrote:
>
> >
> > See attached PFA font file...
> >
> > I should add that it looks like the missing subrs array is not the sole
> > problem here.  When you get in and look at the T1_Loader you will see that
> > there are other members that have been initialized but never populated.  If
> > we hadn't tripped over the missing subrs array we would trip on the missing
> > charstrings array in the conditional block that follows immediately after.
> >
> >
> > > -----Original Message-----
> > > From: Tom Kacvinsky [mailto:address@hidden
> > > Sent: Thursday, January 18, 2001 12:22 AM
> > > To: address@hidden
> > > Subject: [Devel] Re: Distiller produced PFA problems
> > >
> > >
> > > Would you send the "offending" PFA to us?  A Type 1 font need
> > > not have a Subrs
> > > array, so we probably ough to add some logic to the code to
> > > work around this...
> > >
> > > Tom
> > >
> > > On Wed, 17 Jan 2001, Blinn, Eric W wrote:
> > >
> > > >
> > > > I'm trying to work with some ASCII Type 1 fonts (.pfa)
> > > produced by Adobe
> > > > Distiller.  In every case I've tried so far, FreeType has
> > > been unable to
> > > > load the font. I've tried version 2.0.1 and also the
> > > current snapshot, with
> > > > no luck.
> > > >
> > > > The error coming out of FT_New_Face() is FT_Err_Invalid_File_Format.
> > > > Stepping down into the driver code I find that error is
> > > really propagating
> > > > up from T1_Open_Face() where we find no subrs array in the face.
> > > >
> > > > I'm just getting started investigating this, but thought
> > > I'd see if anybody
> > > > else has knows anything about it.
> > > >
> > >
> > >
> > > _______________________________________________
> > > Devel mailing list
> > > address@hidden
> > > http://www.freetype.org/mailman/listinfo/devel
> > >
> >
> >
>
>
> _______________________________________________
> Devel mailing list
> address@hidden
> http://www.freetype.org/mailman/listinfo/devel
>




reply via email to

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