From: handa Date: Fri, 6 Aug 2004 12:09:42 +0000 (+0000) Subject: (lookup_gsub): Fix handling of Extension lookup. X-Git-Tag: REL-0-9-1~9 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=78fbb4ad8ec79454265ae2b0289daa626893872e;p=m17n%2Flibotf.git (lookup_gsub): Fix handling of Extension lookup. (lookup_gpos): Support Extension lookup. (gstring_subst): Fix previous change. --- diff --git a/src/otfdrive.c b/src/otfdrive.c index cd50897..b2122ce 100644 --- a/src/otfdrive.c +++ b/src/otfdrive.c @@ -68,7 +68,8 @@ gstring_subst (OTF_GlyphString *gstring, int from, int to, int flag, int non_ignored_idx; for (i = non_ignored_idx = to - 1; i >= from; i--) - if (flag & (1 << gstring->glyphs[i].GlyphClass)) + if (! gstring->glyphs[i].glyph_id + || (flag & (1 << gstring->glyphs[i].GlyphClass))) { OTF_Glyph temp = gstring->glyphs[i];