From: handa Date: Fri, 6 Aug 2004 12:10:56 +0000 (+0000) Subject: (mfont__ft_drive_otf): Fix for the case that no GSUB X-Git-Tag: REL-1-1-0~30 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=be9c10d4dd0f1558bd4ca58c4392532585dc35bb;p=m17n%2Fm17n-lib.git (mfont__ft_drive_otf): Fix for the case that no GSUB feature to apply. --- 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); }