freetype-devel
[Top][All Lists]
Advanced

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

[Devel] BUGREPORT: ATARI-PureC-Compiler with FT_SIZEOF_INT=2


From: PORTHOS
Subject: [Devel] BUGREPORT: ATARI-PureC-Compiler with FT_SIZEOF_INT=2
Date: Sat, 23 Nov 2002 11:02:48 +0100

Hallo,

puh! I found the bugs that made CFF-Fonts not work! But this has
nothing to do with my compiler -
this code does only work if the CFF-Font is "full" with 256 glyphs!!!!
So it must be changed:

Cffload.c
==================

/* Make sure j is not too big. */
/* if ( (FT_UInt) glyph_code < num_glyphs ) */   <-- this makes it not sure 
(but stops all action)
if ( j < num_glyphs )                            <--but this of course!


Cffcmap.c
==================

/* if ( char_code < cmap->count ) */             <-- this is wrong
if ( char_code < 256 )                           <-- I am not sure if this is 
always right
result = cmap->gids[char_code];


Please heave a look if there are similar bugs in the two files!


-- 
Mit freundlichen Grüßen,
Wolfgang Domröse
mailto:address@hidden




reply via email to

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