From: handa Date: Tue, 2 Nov 2004 06:11:01 +0000 (+0000) Subject: (dump_cmap_table): Support Format 2 of cmap. X-Git-Tag: REL-0-9-5~97 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=f85e4f655718d896a3018c945e931cb0be6fd399;p=m17n%2Flibotf.git (dump_cmap_table): Support Format 2 of cmap. --- diff --git a/example/otfdump.c b/example/otfdump.c index abbb43e..fc5eb72 100644 --- a/example/otfdump.c +++ b/example/otfdump.c @@ -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;