From: handa Date: Tue, 6 Nov 2007 04:42:10 +0000 (+0000) Subject: (mface__for_chars): Adjusts the unit of face's ascent and X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed9aabdb231dccb5b2209c1e1a4945a9694b1bb5;p=m17n%2Fm17n-lib.git (mface__for_chars): Adjusts the unit of face's ascent and descent. --- diff --git a/src/face.c b/src/face.c index d238eb3..68f774a 100644 --- a/src/face.c +++ b/src/face.c @@ -834,8 +834,8 @@ mface__for_chars (MSymbol script, MSymbol language, MSymbol charset, new->layouter = rfont->layouter; rfont->layouter = Mnil; new->non_ascii_list = NULL; - new->ascent = rfont->ascent; - new->descent = rfont->descent; + new->ascent = rfont->ascent >> 6; + new->descent = rfont->descent >> 6; } for (; from_g < to_g && from_g->rface->font; from_g++) { @@ -925,8 +925,8 @@ mface__for_chars (MSymbol script, MSymbol language, MSymbol charset, new->non_ascii_list = NULL; if (rfont) { - new->ascent = rfont->ascent; - new->descent = rfont->descent; + new->ascent = rfont->ascent >> 6; + new->descent = rfont->descent >> 6; } } while (g < from_g)