Fix overshoot of hooks at bottom

This commit is contained in:
be5invis 2024-08-03 06:27:57 -07:00
parent 67ca6979e2
commit ad824f4094

View file

@ -432,7 +432,7 @@ glyph-block CommonShapes : begin
local doSwash : !noSwash && !isStart && atBottom && (para.isItalic || isTail) && [if (para.slopeAngle >= 0) ltr [not ltr]]
local superness DesignParameters.superness
local y : yRef + [if dtu (-1) 1] * overshoot
local y : yRef + [if (yRef > toFinish.y) (-1) 1] * overshoot
# Adjust terminal's position if necessary
toFinish.x = toFinish.x + OXHook * [if ltr (-1) 1] * [if isStart (-1) 1]