From: handa Date: Wed, 11 Aug 2004 05:26:56 +0000 (+0000) Subject: (ft_find_metric): Call FT_Load_Glyph with X-Git-Tag: REL-1-1-0~25 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=89c24be6da9f753573be3fc22222f6e93c4f8857;p=m17n%2Fm17n-lib.git (ft_find_metric): Call FT_Load_Glyph with FT_LOAD_DEFAULT. --- 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;