From: handa Date: Tue, 2 Nov 2004 06:09:53 +0000 (+0000) Subject: (lookup_gsub): For Format 3, set X-Git-Tag: REL-0-9-5~100 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=cc62a4a4ffeb51962f3729a9d07e65a8b4fb9e9e;p=m17n%2Flibotf.git (lookup_gsub): For Format 3, set OTF_Glyph->alternate_set. --- diff --git a/src/otfdrive.c b/src/otfdrive.c index c969cd9..a962bae 100644 --- a/src/otfdrive.c +++ b/src/otfdrive.c @@ -459,14 +459,11 @@ lookup_gsub (OTF_LookupList *lookup_list, unsigned lookup_list_index, break; case 3: - /* For the moment, we always ignore this feature. */ - break; if (subtable->Format == 1) { OTF_GSUB_Alternate1 *alt1 = &subtable->u.alternate1; - OTF_AlternateSet *altset = alt1->AlternateSet + coverage_idx; - g->glyph_id = altset->Alternate[0]; + g->alternate_set = alt1->AlternateSet + coverage_idx; gidx++; } else