Bug 528272 – "Error loading GPOS table 5503" when using katakana

2008-10-14  Behdad Esfahbod  <behdad@gnome.org>

        Bug 528272 – "Error loading GPOS table 5503" when using katakana
        characters

        * pango/opentype/harfbuzz-gpos.c (Load_Mark2Array): Skip parsing
        null anchor tables.
This commit is contained in:
Behdad Esfahbod 2008-10-15 03:45:29 +00:00 committed by Behdad Esfahbod
parent a26c6ae705
commit 21f7d507f4
1 changed files with 7 additions and 0 deletions

View File

@ -2799,6 +2799,13 @@ static HB_Error Load_Mark2Array( HB_Mark2Array* m2a,
FORGET_Frame(); FORGET_Frame();
if (new_offset == base_offset) {
/* Anchor table not provided. Skip loading.
* Some versions of FreeSans hit this. */
m2an[n].PosFormat = 0;
continue;
}
cur_offset = FILE_Pos(); cur_offset = FILE_Pos();
if ( FILE_Seek( new_offset ) || if ( FILE_Seek( new_offset ) ||
( error = Load_Anchor( &m2an[n], stream ) ) != HB_Err_Ok ) ( error = Load_Anchor( &m2an[n], stream ) ) != HB_Err_Ok )