From 77a47b867228832368c642cbcd58b74594e06616 Mon Sep 17 00:00:00 2001 From: handa Date: Fri, 12 Oct 2007 05:28:53 +0000 Subject: [PATCH] (layout_glyphs): Fix calculation of off_x and off_y. --- src/draw.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 1.7.10.4