Hi, In memory optimized `tt_sbit_decoder_load_image', when index_format is 2 or 5, image_offset is added to image_start twice.
This bug is trivial. But as I don't have a font to test, I send this patch to the list for review, in case I misunderstood the code. BTW, are there fonts having EBSC table? It seems fun to add support for this table. -- Regards, olv
2005-11-18 Chia-I Wu <[EMAIL PROTECTED]> * src/sfnt/ttsbit0.c (tt_sbit_decoder_load_image): image_offset is added to image_start twice when image_format is 2 or 5. === src/sfnt/ttsbit0.c ================================================================== --- src/sfnt/ttsbit0.c (revision 2826) +++ src/sfnt/ttsbit0.c (local) @@ -830,7 +830,7 @@ if ( tt_sbit_decoder_load_metrics( decoder, &p, p_limit, 1 ) ) goto NoBitmap; - image_start = image_offset + image_size * ( glyph_index - start ); + image_start = image_size * ( glyph_index - start ); image_end = image_start + image_size; } break; @@ -910,7 +910,7 @@ if ( mm >= num_glyphs ) goto NoBitmap; - image_start = image_offset + image_size*mm; + image_start = image_size*mm; image_end = image_start + image_size; } break;
_______________________________________________ Freetype-devel mailing list Freetype-devel@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype-devel