From be9c10d4dd0f1558bd4ca58c4392532585dc35bb Mon Sep 17 00:00:00 2001 From: handa Date: Fri, 6 Aug 2004 12:10:56 +0000 Subject: [PATCH] (mfont__ft_drive_otf): Fix for the case that no GSUB feature to apply. --- src/font-ft.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/font-ft.c b/src/font-ft.c index ebcd01c..a514df7 100644 --- a/src/font-ft.c +++ b/src/font-ft.c @@ -1021,6 +1021,12 @@ mfont__ft_drive_otf (MGlyphString *gstring, int from, int to, for (i = 0; i < len; i++) { MGlyph temp = gstring->glyphs[from + i]; + + if (otf_gstring.glyphs[i].glyph_id) + { + temp.code = otf_gstring.glyphs[i].glyph_id; + temp.otf_encoded = 1; + } MLIST_APPEND1 (gstring, glyphs, temp, MERROR_FONT_OTF); } -- 1.7.10.4