From: handa Date: Fri, 25 Jun 2004 12:53:54 +0000 (+0000) Subject: (gd_render): Don't call FT_Get_Char_Index. X-Git-Tag: withdl~15 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d2aefee1a351ff9f485011f493294b2c51a50e36;p=m17n%2Fm17n-lib.git (gd_render): Don't call FT_Get_Char_Index. --- diff --git a/src/m17n-gd.c b/src/m17n-gd.c index 9b8735a..6ffdc84 100644 --- a/src/m17n-gd.c +++ b/src/m17n-gd.c @@ -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;