From: handa Date: Fri, 9 Nov 2007 08:16:53 +0000 (+0000) Subject: (mface__realize): Reset measured flag before calling X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=5a4f7e0fabada72213e9e83ba86edaa78d128d68;p=m17n%2Fm17n-lib.git (mface__realize): Reset measured flag before calling mfont__get_metric. --- 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);