From a6e74c5d5b86ec6bbd0ffe8f23178bbc4bf90514 Mon Sep 17 00:00:00 2001 From: handa Date: Thu, 22 Sep 2005 07:27:03 +0000 Subject: [PATCH] (ft_open): Set rface->average_width. --- src/font-ft.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"); -- 1.7.10.4