[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Devel] Freetype2 patch on Mac
From: |
Steve Hartwell |
Subject: |
Re: [Devel] Freetype2 patch on Mac |
Date: |
Thu, 8 Jan 2004 10:39:15 -0800 |
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
Re: [Devel] Freetype2 patch on Mac, George Williams, 2004/01/08