From e271d38e798f286de8d7cb6a566bcad008052f19 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 5 Sep 2008 07:36:53 +0000 Subject: [PATCH] (compose-gstring-for-graphic): Fix handling "above" marks. --- lisp/composite.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lisp/composite.el b/lisp/composite.el index c47ee190319..a86b3147023 100644 --- a/lisp/composite.el +++ b/lisp/composite.el @@ -599,13 +599,13 @@ All non-spacing characters has this function in (setq xoff (- rbearing lb))) ((= class 212) (setq xoff (- lbearing ce) - yoff (if (>= de 0) 0 (- ascent de)))) + yoff (if (>= de 0) 0 (- ascent (- de))))) ((= class 214) (setq xoff (- center ce) - yoff (if (>= de 0) 0 (- ascent de)))) + yoff (if (>= de 0) 0 (- ascent (- de))))) ((= class 216) (setq xoff (- rbearing ce) - yoff (if (>= de 0) 0 (- ascent de)))) + yoff (if (>= de 0) 0 (- ascent (- de))))) ((= class 218) (setq xoff (- lbearing ce) yoff (if (> as 0) 0 (+ descent as gap)))) @@ -621,13 +621,13 @@ All non-spacing characters has this function in (setq xoff (- rbearing lb))) ((= class 228) (setq xoff (- lbearing ce) - yoff (if (>= de 0) 0 (- ascent de gap)))) + yoff (if (>= de 0) 0 (- ascent (- de) gap)))) ((= class 230) (setq xoff (- center ce) - yoff (if (>= de 0) 0 (- ascent de gap)))) + yoff (if (>= de 0) 0 (- ascent (- de) gap)))) ((= class 232) (setq xoff (- rbearing ce) - yoff (if (>= de 0) 0 (- ascent de gap)))))) + yoff (if (>= de 0) 0 (- ascent (- de) gap)))))) (lglyph-set-adjustment glyph (- xoff width) yoff)))))) (let ((i 0)) (while (and (< i nglyphs) (setq glyph (lgstring-glyph gstring i))) -- 2.39.5