From: handa Date: Fri, 12 Oct 2007 05:28:53 +0000 (+0000) Subject: (layout_glyphs): Fix calculation of off_x and off_y. X-Git-Url: http://git.chise.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77a47b867228832368c642cbcd58b74594e06616;p=m17n%2Fm17n-lib.git (layout_glyphs): Fix calculation of off_x and off_y. --- diff --git a/src/draw.c b/src/draw.c index 5709638..9fdea08 100644 --- a/src/draw.c +++ b/src/draw.c @@ -671,9 +671,9 @@ layout_glyphs (MFrame *frame, MGlyphString *gstring, int from, int to, rfont = g->rface->rfont; size = rfont->spec.size; - off_x = (size * (COMBINING_CODE_OFF_X (combining_code) - 128) + off_x = (size * (COMBINING_CODE_OFF_X (combining_code)) / 1000); - off_y = (size * (COMBINING_CODE_OFF_Y (combining_code) - 128) + off_y = (size * (COMBINING_CODE_OFF_Y (combining_code)) / 1000); base_x = COMBINING_CODE_BASE_X (combining_code); base_y = COMBINING_CODE_BASE_Y (combining_code);