From 5a4f7e0fabada72213e9e83ba86edaa78d128d68 Mon Sep 17 00:00:00 2001 From: handa Date: Fri, 9 Nov 2007 08:16:53 +0000 Subject: [PATCH] (mface__realize): Reset measured flag before calling mfont__get_metric. --- src/face.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/face.c b/src/face.c index 68f774a..d78e623 100644 --- a/src/face.c +++ b/src/face.c @@ -749,6 +749,8 @@ mface__realize (MFrame *frame, MFace **faces, int num, int size, MFont *font) { work_gstring.glyphs[0].g.code = mfont__encode_char (frame, (MFont *) rfont, NULL, 'x'); + work_gstring.glyphs[0].g.encoded = 1; + work_gstring.glyphs[0].g.measured = 0; if (work_gstring.glyphs[0].g.code != MCHAR_INVALID_CODE) { mfont__get_metric (&work_gstring, 0, 1); -- 1.7.10.4