(gd_render): Don't call FT_Get_Char_Index.
authorhanda <handa>
Fri, 25 Jun 2004 12:53:54 +0000 (12:53 +0000)
committerhanda <handa>
Fri, 25 Jun 2004 12:53:54 +0000 (12:53 +0000)
src/m17n-gd.c

index 9b8735a..6ffdc84 100644 (file)
@@ -672,16 +672,11 @@ gd_render (MDrawWindow win, int x, int y,
 
   for (; from < to; x += from++->width)
     {
-      FT_UInt code;
       unsigned char *bmp;
       int xoff, yoff;
       int width, pitch;
 
-      if (from->otf_encoded)
-       code = from->code;
-      else
-       code = FT_Get_Char_Index (ft_face, (FT_ULong) from->code);
-      FT_Load_Glyph (ft_face, code, load_flags);
+      FT_Load_Glyph (ft_face, (FT_UInt) from->code, load_flags);
       yoff = y - ft_face->glyph->bitmap_top + from->yoff;
       bmp = ft_face->glyph->bitmap.buffer;
       width = ft_face->glyph->bitmap.width;