(layout_glyphs): Fix calculation of off_x and off_y.
authorhanda <handa>
Fri, 12 Oct 2007 05:28:53 +0000 (05:28 +0000)
committerhanda <handa>
Fri, 12 Oct 2007 05:28:53 +0000 (05:28 +0000)
src/draw.c

index 5709638..9fdea08 100644 (file)
@@ -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);