(OTF_cmap): New member table_index;
authorhanda <handa>
Thu, 23 Jul 2009 07:57:08 +0000 (07:57 +0000)
committerhanda <handa>
Thu, 23 Jul 2009 07:57:08 +0000 (07:57 +0000)
src/otf.h

index 7842ab1..8b88474 100644 (file)
--- a/src/otf.h
+++ b/src/otf.h
@@ -273,11 +273,14 @@ typedef struct
   unsigned version;
   unsigned numTables;
   OTF_EncodingRecord *EncodingRecord;
-  /* Mapping table: Unicode->GlyphID */
+  /* Mapping table: Unicode->GlyphID (for BMP only) */
   unsigned short *unicode_table;
   int max_glyph_id;
   /* Mapping table: GlyphID->Unicode */
   unsigned short *decode_table;
+  /* Index of the EncodingRecord for Unicode->GlyphID mapping.
+     -1 means that the font supports only Unicode BMP characters.  */
+  int table_index;
 } OTF_cmap;