* src/sfnt/ttsbit0.c (tt_sbit_decoder_load_image): image_offset is

added to image_start twice when image_format is 2 or 5.
This commit is contained in:
Wu, Chia-I (吳佳一) 2005-11-21 03:05:34 +00:00
parent d81947e429
commit 275be9ba6d
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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;