From 89c24be6da9f753573be3fc22222f6e93c4f8857 Mon Sep 17 00:00:00 2001 From: handa Date: Wed, 11 Aug 2004 05:26:56 +0000 Subject: [PATCH] (ft_find_metric): Call FT_Load_Glyph with FT_LOAD_DEFAULT. --- src/font-ft.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/font-ft.c b/src/font-ft.c index a514df7..bab716c 100644 --- a/src/font-ft.c +++ b/src/font-ft.c @@ -525,13 +525,6 @@ ft_find_metric (MRealizedFont *rfont, MGlyphString *gstring, MFTInfo *ft_info = (MFTInfo *) rfont->info; FT_Face ft_face = ft_info->ft_face; MGlyph *g = MGLYPH (from), *gend = MGLYPH (to); - FT_Int32 load_flags = FT_LOAD_RENDER; - -#ifdef FT_LOAD_TARGET_MONO - load_flags |= FT_LOAD_TARGET_MONO; -#else - load_flags |= FT_LOAD_MONOCHROME; -#endif for (; g != gend; g++) { @@ -571,7 +564,7 @@ ft_find_metric (MRealizedFont *rfont, MGlyphString *gstring, { FT_Glyph_Metrics *metrics; - FT_Load_Glyph (ft_face, (FT_UInt) g->code, FT_LOAD_RENDER); + FT_Load_Glyph (ft_face, (FT_UInt) g->code, FT_LOAD_DEFAULT); metrics = &ft_face->glyph->metrics; g->lbearing = (metrics->horiBearingX >> 6); g->rbearing = (metrics->horiBearingX + metrics->width) >> 6; -- 1.7.10.4