(dump_lookup_subtable_gsub): For Lookup Type
authorhanda <handa>
Mon, 29 Mar 2004 12:47:18 +0000 (12:47 +0000)
committerhanda <handa>
Mon, 29 Mar 2004 12:47:18 +0000 (12:47 +0000)
7, fix arg to dump_lookup_subtable_gsub.
(dump_lookup_subtable_gpos): Support Lookup Type 9.

example/otfdump.c

index 0ff9dec..7d1d4d9 100644 (file)
@@ -866,8 +866,7 @@ dump_lookup_subtable_gsub (int indent, int index, unsigned type,
              subtable->u.extension1.ExtensionOffset);
       dump_lookup_subtable_gsub (indent, index, 
                                 subtable->u.extension1.ExtensionLookupType,
-                                (subtable
-                                 + subtable->u.extension1.ExtensionOffset));
+                                subtable->u.extension1.ExtensionSubtable);
       break;
 
     case 8:
@@ -1090,6 +1089,21 @@ dump_lookup_subtable_gpos (int indent, int index, unsigned type,
       else
        printf (" invalid");
       break;
+
+    case 9:
+      if (subtable->Format == 1)
+       {
+         IPRINT ("(ExtensionLookupType %d)",
+                 subtable->u.extension1.ExtensionLookupType);
+         IPRINT ("(ExtensionOffset %d)",
+                 subtable->u.extension1.ExtensionOffset);
+         dump_lookup_subtable_gpos
+           (indent, index, 
+            subtable->u.extension1.ExtensionLookupType,
+            subtable->u.extension1.ExtensionSubtable);
+       }
+      else
+       printf (" invalid");
     }
   printf (")");
 }