* src/sfnt/ttsbit0.c (tt_sbit_decoder_load_image): image_offset is added to image_start twice when image_format is 2 or 5.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
diff --git a/ChangeLog b/ChangeLog
index 7a4b984..d36046e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2005-11-21 Chia-I Wu <b90201047@ntu.edu.tw>
+ * 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 <b90201047@ntu.edu.tw>
+
* src/sfnt/sfobjs.c (sfnt_init_face): Check that format_tag is known
before loading the table directory.
diff --git a/src/sfnt/ttsbit0.c b/src/sfnt/ttsbit0.c
index 31c7785..990dfcf 100644
--- 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;