From 4619c6e66ef47e8e4953142a5c65467a6b0a2c01 Mon Sep 17 00:00:00 2001 From: Hans Hagen Date: Thu, 30 Jul 2020 17:51:33 +0200 Subject: 2020-07-30 16:52:00 --- tex/context/base/mkiv/driv-shp.lmt | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'tex/context/base/mkiv/driv-shp.lmt') diff --git a/tex/context/base/mkiv/driv-shp.lmt b/tex/context/base/mkiv/driv-shp.lmt index 2e9751b9c..6e4195588 100644 --- a/tex/context/base/mkiv/driv-shp.lmt +++ b/tex/context/base/mkiv/driv-shp.lmt @@ -588,7 +588,6 @@ local hlist_out, vlist_out do -- we can encounter localpar, boundary and penalty nodes but a special -- iterator over content nodes won't save much - for current, id, subtype in nextnode, current do if id == glyph_code then local char, font = isglyph(current) @@ -1034,17 +1033,13 @@ local hlist_out, vlist_out do if not orientation then -- local basepoint_h = shift -- local basepoint_v = height - if shift == 0 then - pos_h = ref_h + if boxdir ~= pos_r then + shift = shift + width + end + if pos_r == righttoleft_code then + pos_h = ref_h - shift else - if boxdir ~= pos_r then - shift = shift + width - end - if pos_r == righttoleft_code then - pos_h = ref_h - shift - else - pos_h = ref_h + shift - end + pos_h = ref_h + shift end pos_v = ref_v - (cur_v + height) -- synced -- cgit v1.2.3