int c;
/* Glyph ID of the glyph. If the value is 0, the library gets a
- correct value from the above character code via cmap. */
+ correct value from the above character code via cmap if such a
+ glyph is available in the font.
+
+ The function OTF_drive_gpos2 may insert a glyph whose glyph_id is
+ 0 but positioning_type is positive. It is not an actual glyph
+ but just contains positioning information that should be
+ accumulated to the positioning information of the previous
+ glyphs. */
OTF_GlyphID glyph_id;
/* GlyphClass of the glyph. The value is extracted from the GDEF
Process glyph string by Unicode-based cmap table.
The OTF_drive_cmap() function looks up a Unicode-based cmap table
- of OpenType font $OTF, and setup the member <glyhph_id> of all
+ of OpenType font $OTF, and setup the member <glyph_id> of all
glhphs in the glyph string $GSTRING if the value of the member is
not zero. */
The OTF_drive_cmap2() function looks up a cmap table (whose
Platform-ID is $PLATFORM_ID an Encoding-ID is $ENCODING_ID) of
- OpenType font $OTF, and setup the member <glyhph_id> of all glhphs
+ OpenType font $OTF, and setup the member <glyph_id> of all glhphs
in the glyph string $GSTRING if the value of the member is not
zero. */
/***
Process glyph string by GPOS table.
- The OTF_drive_gdef() function looks up the GPOS table of $OTF of
+ The OTF_drive_gpos() function is deprecated. Use
+ OTF_drive_gpos2() instread. */
+
+extern int OTF_drive_gpos (OTF *otf, OTF_GlyphString *gstring,
+ const char *script, const char *language,
+ const char *features);
+
+/***
+ Process glyph string by GPOS table.
+
+ The OTF_drive_gpos2() function looks up the GPOS table of $OTF of
OpenType font $OTF, and by using features the font has for script
$SCRIPT and language system $LANGSYS, setup members
<positioning_type> and <f> of all glhphs in the glyph string
$GSTRING. $FEATURES is a list of features to apply. */
-extern int OTF_drive_gpos (OTF *otf, OTF_GlyphString *gstring,
- const char *script, const char *language,
- const char *features);
+extern int OTF_drive_gpos2 (OTF *otf, OTF_GlyphString *gstring,
+ const char *script, const char *language,
+ const char *features);
/*** (3-6) OTF_drive_tables() */