From: handa Date: Tue, 9 Nov 2004 01:13:56 +0000 (+0000) Subject: (OTF_Glyph): Delete member alternate_set. X-Git-Tag: REL-0-9-5~91 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=101bec89666cf1de2483193891e06a86ab72f8f3;p=m17n%2Flibotf.git (OTF_Glyph): Delete member alternate_set. (OTF_drive_gsub_alternate): Extern it. --- diff --git a/src/otf.h b/src/otf.h index 9499a60..ed7a5bb 100644 --- a/src/otf.h +++ b/src/otf.h @@ -63,6 +63,8 @@ write to the Free Software Foundation, Inc., 59 Temple Place, Suite (3-4) OTF_drive_gsub() (3-5) OTF_drive_gpos() (3-6) OTF_drive_tables() + (3-7) OTF_get_unicode() + (3-8) OTF_drive_gsub_alternate() (4) API for error handling (4-1) Error codes @@ -1175,8 +1177,6 @@ typedef struct OTF_Anchor *mark2_anchor; } f6; } f; - - OTF_AlternateSet *alternate_set; } OTF_Glyph; /*** @@ -1242,7 +1242,9 @@ extern int OTF_drive_gdef (OTF *otf, OTF_GlyphString *gstring); font $OTF, and by using features the font has for script $SCRIPT and language system $LANGSYS, update member of the glyph string $GSTRING. It may substitute, delete, insert glyphs in that - array. $FEATURES is a list of features to apply. */ + array. $FEATURES is a list of features to apply. This doesn't + perform a lookup of type 3 (Alternate Substitution). For that, + use OTF_drive_gsub_alternate(). */ extern int OTF_drive_gsub (OTF *otf, OTF_GlyphString *gstring, char *script, char *language, char *features); @@ -1283,6 +1285,18 @@ extern int OTF_drive_tables (OTF *otf, OTF_GlyphString *gstring, extern int OTF_get_unicode (OTF *otf, OTF_GlyphID code); +/*** (3-8) OTF_drive_gsub_alternate() */ + +/*** + Find alternate glyphs. + + This is like OTF_drive_gsub(), but perform only a lookup of type 3 + (Alternate Substituion). */ + +extern int OTF_drive_gsub_alternate (OTF *otf, OTF_GlyphString *gstring, + char *script, char *language, + char *features); + /*** (4) API for error handling ***/ /*** (4-1) Error codes ***/