[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Devel] Freetype2 patch on Mac
From: |
Garrick Meeker |
Subject: |
Re: [Devel] Freetype2 patch on Mac |
Date: |
Thu, 8 Jan 2004 12:16:04 -0800 |
User-agent: |
KMail/1.5.94 |
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
Re: [Devel] Freetype2 patch on Mac, George Williams, 2004/01/08