From f85e4f655718d896a3018c945e931cb0be6fd399 Mon Sep 17 00:00:00 2001 From: handa Date: Tue, 2 Nov 2004 06:11:01 +0000 Subject: [PATCH] (dump_cmap_table): Support Format 2 of cmap. --- example/otfdump.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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; -- 1.7.10.4