bugThe FreeType Project - Bugs: bug #25494, TrueType fonts are not correctly...

 
 

bug #25494: TrueType fonts are not correctly recognized on mac

Submitted by:  bram tassyns <bramt>
Submitted on:  Thu 05 Feb 2009 09:41:37 AM UTC  
 
Severity: 3 - NormalItem Group: Incorrect behaviour
Status: DuplicatePrivacy: Public
Assigned to: Werner LEMBERG <wl>Open/Closed: Closed
Planned Release: 2.3.9

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 06 Feb 2009 09:07:53 AM UTC, comment #1:

This is a duplicate of #25347, already fixed in the CVS.

Werner LEMBERG <wl>
Project AdministratorIn charge of this item.
Thu 05 Feb 2009 09:41:37 AM UTC, original submission:

Mac_Read_sfnt_Resource doesn't recognizes mac truetype fonts anymore in freetype 2.3.8 because after calling open_face_PS_from_sfnt_stream we don't reset the stream before continuing.

This is a really big problem on mac prevent freetype from opening any truetype fonts in a resource fork.

proposed fix:

error = open_face_PS_from_sfnt_stream( library,
stream,
face_index,
0, NULL,
aface );
if ( !error )
goto Exit;

if ( FT_ALLOC( sfnt_data, (FT_Long)rlen ) )
return error;
error = FT_Stream_Read( stream, (FT_Byte *)sfnt_data, rlen );

should be changed to:

error = open_face_PS_from_sfnt_stream( library,
stream,
face_index,
0, NULL,
aface );
if ( !error )
goto Exit;

// reset the stream's location again after possibly reading it
// in open_face_PS_from_sfnt_stream
error = FT_Stream_Seek( stream, flag_offset + 4 );
if ( error )
goto Exit;

if ( FT_ALLOC( sfnt_data, (FT_Long)rlen ) )
return error;
error = FT_Stream_Read( stream, (FT_Byte *)sfnt_data, rlen );

bram tassyns <bramt>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by wl (Posted a comment)
  • -unavailable- added by bramt (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 06 Feb 2009 09:07:53 AM UTCwlStatusNone=>Duplicate
      Assigned toNone=>wl
      Open/ClosedOpen=>Closed
      Planned ReleaseNone=>2.3.9

    Back to the top


    Powered by Savane 3.1-cleanup1