Commit 275be9ba6d4dc7a49a6ffca1281f14453fd89ca8

Wu, Chia-I (吳佳一) 2005-11-21T03:05:34

* src/sfnt/ttsbit0.c (tt_sbit_decoder_load_image): image_offset is added to image_start twice when image_format is 2 or 5.

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;