From: handa Date: Tue, 13 Jul 2004 01:40:03 +0000 (+0000) Subject: (layout_glyphs): Call mfont__ft_drive_gpos. X-Git-Tag: REL-1-1-0~119 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2035e3d644412bff63cae2afbe2dd356d4d374e3;p=m17n%2Fm17n-lib.git (layout_glyphs): Call mfont__ft_drive_gpos. --- diff --git a/src/draw.c b/src/draw.c index 05b6f24..a4123b7 100644 --- a/src/draw.c +++ b/src/draw.c @@ -510,6 +510,20 @@ layout_glyphs (MFrame *frame, MGlyphString *gstring, int from, int to) mfont__get_metric (gstring, from, to); +#ifdef HAVE_OTF + while (g < last_g) + { + MGlyph *base = g++; + + if (base->otf_cmd) + { + while (g < last_g && base->otf_cmd == g->otf_cmd) g++; + mfont__ft_drive_gpos (gstring, GLYPH_INDEX (base), GLYPH_INDEX (g)); + } + } + g = MGLYPH (from); +#endif + while (g < last_g) { MGlyph *base = g++;