pango r2730 - in trunk: . pango/opentype



Author: behdad
Date: Wed Oct 15 03:45:29 2008
New Revision: 2730
URL: http://svn.gnome.org/viewvc/pango?rev=2730&view=rev

Log:
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.

Modified:
   trunk/ChangeLog
   trunk/pango/opentype/harfbuzz-gpos.c

Modified: trunk/pango/opentype/harfbuzz-gpos.c
==============================================================================
--- trunk/pango/opentype/harfbuzz-gpos.c	(original)
+++ trunk/pango/opentype/harfbuzz-gpos.c	Wed Oct 15 03:45:29 2008
@@ -2799,6 +2799,13 @@
 
       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 )



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]