From 78fbb4ad8ec79454265ae2b0289daa626893872e Mon Sep 17 00:00:00 2001 From: handa Date: Fri, 6 Aug 2004 12:09:42 +0000 Subject: [PATCH] (lookup_gsub): Fix handling of Extension lookup. (lookup_gpos): Support Extension lookup. (gstring_subst): Fix previous change. --- src/otfdrive.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]; -- 1.7.10.4