freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] Problem with OptaneCompactExtrabold.fam font suitcase


From: Deron Kazmaier
Subject: Re: [ft-devel] Problem with OptaneCompactExtrabold.fam font suitcase
Date: Wed, 13 Feb 2008 20:32:00 -0700
User-agent: Thunderbird 2.0.0.9 (Macintosh/20071031)

Hello,

I have no idea where the font can be obtained legally. The user was not clear as to copyright and I deleted the font after getting it to work. I can recontact him about getting any details you might need such as copyright holder for the font.

I also should mention that the Apple Docs for GetResource states:

"... If you call GetResource with a resource type that can’t be found in any of the resource maps of the open resource forks, the function returns NULL, but ResError returns the result code noErr. You should always check that the value of the returned handle is not NULL...."

Let me know what I can do to help,

Deron


address@hidden wrote:
Hi,

I checked google but all OptaneCompactExtraBold I could
download were for Windows TTF (including only 1 face).
Could you tell me where I can download the suitcase version?

Regards,
mpsuzuki

On Sat, 02 Feb 2008 12:42:06 -0700
Deron Kazmaier <address@hidden> wrote:
A Mac user provided to me a font suitcase file (OptaneCompactExtrabold.fam) that crashes FreeType (2.3.5 and latest CVS) when referencing face index #3. I tracked it down to the first call in FT_New_Face_From_SFNT (ftmac.c).

   sfnt = GetResource( FT_MAKE_TAG( 's', 'f', 'n', 't' ), sfnt_id );
   if ( ResError() )
     return FT_Err_Invalid_Handle;

GetResource would return 0, but ResError did not return true. Checking for a NULL handle was required to get FreeType to skip it without crashing.

   if ( sfnt == NULL || ResError() )
     return FT_Err_Invalid_Handle;

I can now access the 7 faces that is reported to be inside with this change.
Hope that is helpful.





reply via email to

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