From 21f7d507f4b50e2743ab47954270f4c72d5a722a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 15 Oct 2008 03:45:29 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20528272=20=E2=80=93=20"Error=20loading=20G?= =?UTF-8?q?POS=20table=205503"=20when=20using=20katakana?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2008-10-14 Behdad Esfahbod Bug 528272 – "Error loading GPOS table 5503" when using katakana characters * pango/opentype/harfbuzz-gpos.c (Load_Mark2Array): Skip parsing null anchor tables. --- src/harfbuzz-gpos.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/harfbuzz-gpos.c b/src/harfbuzz-gpos.c index 2a9cbf680..1e83711e3 100644 --- a/src/harfbuzz-gpos.c +++ b/src/harfbuzz-gpos.c @@ -2799,6 +2799,13 @@ static HB_Error Load_Mark2Array( HB_Mark2Array* m2a, 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(); if ( FILE_Seek( new_offset ) || ( error = Load_Anchor( &m2an[n], stream ) ) != HB_Err_Ok )