(read_cmap_table): Set cmap->table_index.
[m17n/libotf.git] / src / otfopen.c
index 2101da8..af85fa5 100644 (file)
@@ -623,6 +623,8 @@ read_cmap_table (OTF *otf, OTF_TableInfo *table, enum OTF_ReaderFlag flag)
            unicode_full_index = i;
        }
     }
+  cmap->table_index = unicode_full_index;
+
   for (i = 0; i < cmap->numTables; i++)
     {
       unsigned format;