(mfont__ft_drive_otf): Fix for the case that no GSUB
authorhanda <handa>
Fri, 6 Aug 2004 12:10:56 +0000 (12:10 +0000)
committerhanda <handa>
Fri, 6 Aug 2004 12:10:56 +0000 (12:10 +0000)
feature to apply.

src/font-ft.c

index ebcd01c..a514df7 100644 (file)
@@ -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);
       }