From 581d21a2e023b773f5c1f7e4e8f3419d7f467e1b Mon Sep 17 00:00:00 2001 From: handa Date: Wed, 3 Dec 2008 00:41:06 +0000 Subject: [PATCH] (OTF_drive_gpos2): Extern it. --- src/otf.h | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) diff --git a/src/otf.h b/src/otf.h index 47e2a78..431e288 100644 --- a/src/otf.h +++ b/src/otf.h @@ -1186,7 +1186,14 @@ typedef struct 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 @@ -1258,7 +1265,7 @@ typedef struct 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 of all + of OpenType font $OTF, and setup the member of all glhphs in the glyph string $GSTRING if the value of the member is not zero. */ @@ -1269,7 +1276,7 @@ extern int OTF_drive_cmap (OTF *otf, OTF_GlyphString *gstring); 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 of all glhphs + OpenType font $OTF, and setup the member of all glhphs in the glyph string $GSTRING if the value of the member is not zero. */ @@ -1310,15 +1317,25 @@ extern int OTF_drive_gsub (OTF *otf, OTF_GlyphString *gstring, /*** 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 and 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() */ -- 1.7.10.4