(dump_cmap_table): Support Format 2 of cmap.
authorhanda <handa>
Tue, 2 Nov 2004 06:11:01 +0000 (06:11 +0000)
committerhanda <handa>
Tue, 2 Nov 2004 06:11:01 +0000 (06:11 +0000)
example/otfdump.c

index abbb43e..fc5eb72 100644 (file)
@@ -1356,6 +1356,22 @@ dump_cmap_table (int indent, OTF_cmap *cmap)
            printf (")");
          }
          break;
+
+       case 12:
+         {
+           OTF_EncodingSubtable12 *sub12
+             = cmap->EncodingRecord[i].subtable.f.f12;
+           int j;
+
+           for (j = 0; j < sub12->nGroups; j++)
+             {
+               IPRINT ("(Group (#x%X) (startChar #x%04X) (endChar #x%04X) (startGlyphID #x%X))",
+                       j,
+                       sub12->Groups[j].startCharCode,
+                       sub12->Groups[j].endCharCode,
+                       sub12->Groups[j].startGlyphID);
+             }
+         }
        }
 
       indent -= 2;