[HarfBuzz] harfbuzz: Branch 'master'

Behdad Esfahbod behdad at kemper.freedesktop.org
Tue Oct 14 20:47:54 PDT 2008


 src/harfbuzz-gpos.c |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 2cd1f660f368be985fac69694dec38c8cead94dd
Author: Behdad Esfahbod <behdad at behdad.org>
Date:   Tue Oct 14 23:46:38 2008 -0400

    GNOME Bug 528272 – "Error loading GPOS table 5503" when using katakana characters
    
    harfbuzz-gpos.c (Load_Mark2Array): Skip parsing null anchor tables.

diff --git a/src/harfbuzz-gpos.c b/src/harfbuzz-gpos.c
index 1e796d1..7a769f1 100644
--- a/src/harfbuzz-gpos.c
+++ b/src/harfbuzz-gpos.c
@@ -2783,6 +2783,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 )



More information about the HarfBuzz mailing list