ref: 275be9ba6d4dc7a49a6ffca1281f14453fd89ca8
parent: d81947e4294edebd8aa417366f690d0c03638fed
author: Wu, Chia-I (吳佳一) <[email protected]>
date: Sun Nov 20 22:05:34 EST 2005
* src/sfnt/ttsbit0.c (tt_sbit_decoder_load_image): image_offset is added to image_start twice when image_format is 2 or 5.
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2005-11-21 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.
+
+2005-11-21 Chia-I Wu <[email protected]>
+
* src/sfnt/sfobjs.c (sfnt_init_face): Check that format_tag is known
before loading the table directory.
--- a/src/sfnt/ttsbit0.c
+++ b/src/sfnt/ttsbit0.c
@@ -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;