From 275be9ba6d4dc7a49a6ffca1281f14453fd89ca8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wu=2C=20Chia-I=20=28=E5=90=B3=E4=BD=B3=E4=B8=80=29?= Date: Mon, 21 Nov 2005 03:05:34 +0000 Subject: [PATCH] * src/sfnt/ttsbit0.c (tt_sbit_decoder_load_image): image_offset is added to image_start twice when image_format is 2 or 5. --- ChangeLog | 5 +++++ src/sfnt/ttsbit0.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7a4b984c0..d36046e63 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-11-21 Chia-I Wu + + * 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 * src/sfnt/sfobjs.c (sfnt_init_face): Check that format_tag is known diff --git a/src/sfnt/ttsbit0.c b/src/sfnt/ttsbit0.c index 31c77856f..990dfcfee 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;