freetype-devel
[Top][All Lists]
Advanced

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

Re: [Devel] Freetype2 patch on Mac


From: Dan Williams
Subject: Re: [Devel] Freetype2 patch on Mac
Date: Thu, 8 Jan 2004 18:01:01 -0600 (CST)

Go for it.  When you're done, post the patch and let us have a
look.  Maybe this means I can now reduce the number of freetype build
folders I have lying around since the patch has a standing chance of
getting merged this time ;)

Cheers,
Dan

On Thu, 8 Jan 2004, Garrick Meeker wrote:

> I guess that I usually saw suitcase fonts with one FOND but multiple faces in 
> it.  Dan's changes to dfont loading (also in my patch) does something similar 
> to your code below.
> 
> I'd vote for having freetype support multiple faces on the Mac without 
> patches.  Maybe we can use Steve's changes for suitcase and everything else 
> from the patch I posted?  I can take a stab at merging them and cleaning up 
> any duplicate code.
> 
> On Thursday 08 January 2004 10:39 am, Steve Hartwell wrote:
> > On Jan 8, 2004, at 10:13 AM, Dan Williams wrote:
> > >  Are you sure there's always only one FOND resource for a Suitcase
> > > font?
> >
> > Suitcases often have more than one FOND.  Most of the Apple system
> > fonts (.dfont) have multiple FONDs.
> >
> > On Jan 8, 2004, at 1:31 AM, Garrick Meeker wrote:
> > > Support for multiple styles in FT_New_Face_From_Suitcase().  There is
> > > only one
> > > FOND resource (I think?) and the index should be used read reading the
> > > FOND,
> > > not when getting the resource.
> >
> > In my version of ftmac.c, the index represents the 'i'th face in the
> > suitcase, like this:
> >
> >      for (res_index = 1; ; ++res_index)
> >      {
> >             fond = Get1IndResource( 'FOND', res_index );
> >             if ( ResError() )
> >             {
> >             error = FT_Err_Cannot_Open_Resource;
> >             goto Error;
> >             }
> >             if ( face_index < 0)
> >             break;
> >
> >             num_faces = count_faces( *fond );
> >             if ( face_index < num_faces )
> >             break;
> >
> >             face_index -= num_faces;
> >      }
> >
> > I didn't think anyone else would be interested in access to multiple
> > faces so I didn't submit my changes.  If you'd like to see them, please
> > contact me off list and I'll send you a copy.
> >
> > Steve Hartwell
> >
> > http://stevehartwell.home.comcast.net/proj/fontinspector
> >
> >
> > _______________________________________________
> > 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]