From: handa Date: Fri, 9 Nov 2007 10:13:43 +0000 (+0000) Subject: (mface__realize): Fix previous change. X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=7d74f96cce4d5cbffd467dceaa10c2c092a2d86a;p=m17n%2Fm17n-lib.git (mface__realize): Fix previous change. --- diff --git a/src/face.c b/src/face.c index d78e623..983228c 100644 --- a/src/face.c +++ b/src/face.c @@ -738,6 +738,7 @@ mface__realize (MFrame *frame, MFace **faces, int num, int size, MFont *font) = mfont__encode_char (frame, (MFont *) rfont, NULL, ' '); if (work_gstring.glyphs[0].g.code != MCHAR_INVALID_CODE) { + work_gstring.glyphs[0].g.measured = 0; mfont__get_metric (&work_gstring, 0, 1); rface->space_width = work_gstring.glyphs[0].g.xadv; } @@ -749,10 +750,9 @@ 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) { + work_gstring.glyphs[0].g.measured = 0; mfont__get_metric (&work_gstring, 0, 1); rface->average_width = work_gstring.glyphs[0].g.xadv; }