From: handa Date: Thu, 22 Sep 2005 07:27:03 +0000 (+0000) Subject: (ft_open): Set rface->average_width. X-Git-Tag: REL-1-3-0~150 X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a6e74c5d5b86ec6bbd0ffe8f23178bbc4bf90514;p=m17n%2Fm17n-lib.git (ft_open): Set rface->average_width. --- diff --git a/src/font-ft.c b/src/font-ft.c index 54d2d83..1ce8825 100644 --- a/src/font-ft.c +++ b/src/font-ft.c @@ -1366,7 +1366,10 @@ ft_open (MFrame *frame, MFont *font, MFont *spec, MRealizedFont *rfont) } } #endif - + if (FT_IS_SCALABLE (ft_face)) + rfont->average_width = 0; + else + rfont->average_width = ft_face->available_sizes->width; rfont->next = MPLIST_VAL (frame->realized_font_list); MPLIST_VAL (frame->realized_font_list) = rfont; MDEBUG_PRINT (" ok\n");