From d2aefee1a351ff9f485011f493294b2c51a50e36 Mon Sep 17 00:00:00 2001 From: handa Date: Fri, 25 Jun 2004 12:53:54 +0000 Subject: [PATCH] (gd_render): Don't call FT_Get_Char_Index. --- src/m17n-gd.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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; -- 1.7.10.4