freetype-devel
[Top][All Lists]
Advanced

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

[ft-devel] Problem font


From: Ghoshal, Ronen
Subject: [ft-devel] Problem font
Date: Wed, 14 Jan 2009 11:46:23 -0000

Hi Werner

 

This is the same issue as relates to entry: /archive/html/freetype-devel/2008-02/msg00035.html

 

I have another TrueType font with a problem which prevents FreeType from reading its cmap correctly. The final entry has start and end of 0xFFFF, delta of 1, all fine, but the offset is again far outside of the table. In this case calling FT_Get_First_Char followed by repeated calls to FT_Get_Next_Char  with this font causes FreeType to crash.

 

Again it would require the same minor change to tt_cmap4_set_range just before test to handle offset==0xFFFF:

 

if (  range_index >= num_ranges - 1 &&

cmap->cur_start == 0xFFFFU &&

cmap->cur_end == 0xFFFFU &&

cmap->cur_delta == 0x1U )

{

         offset = 0;

}

 

 

I’ve attached the offending font.

Regards

Ronen

 

Attachment: Arial.ttf
Description: Arial.ttf


reply via email to

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