From 2035e3d644412bff63cae2afbe2dd356d4d374e3 Mon Sep 17 00:00:00 2001 From: handa Date: Tue, 13 Jul 2004 01:40:03 +0000 Subject: [PATCH] (layout_glyphs): Call mfont__ft_drive_gpos. --- src/draw.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) 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++; -- 1.7.10.4