From 1a2bd6faa2cf7f17cec38317e23eda3855ce838d Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Wed, 6 Feb 2008 11:52:58 +0000 Subject: [PATCH] (ftfont_open): Fix calculation of font->font.averange_width. --- src/ftfont.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ftfont.c b/src/ftfont.c index 4d9b1157070..cd76c292cd6 100644 --- a/src/ftfont.c +++ b/src/ftfont.c @@ -883,6 +883,7 @@ ftfont_open (f, entity, pixel_size) { int i; + font->font.average_width = 0; for (i = 32; i < 127; i++) { if (FT_Load_Char (ft_face, i, FT_LOAD_DEFAULT) != 0) -- 2.39.5