From e55ca5729ce942f43dd9831baf1b3c6f8fd2e92a Mon Sep 17 00:00:00 2001 From: be5invis Date: Sun, 22 Oct 2023 12:50:31 -0700 Subject: [PATCH] Fix overlay placement of Tugrik Sign (U+20AE) under Etoile (#2060). --- font-src/glyphs/symbol/letter.ptl | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/font-src/glyphs/symbol/letter.ptl b/font-src/glyphs/symbol/letter.ptl index 69534439e..fcd7e3d3b 100644 --- a/font-src/glyphs/symbol/letter.ptl +++ b/font-src/glyphs/symbol/letter.ptl @@ -75,11 +75,13 @@ glyph-block Symbol-Currency-Letter-Derived : begin derive-composites 'currency/dongSign' 0x20AB 'dcroat' 'sbRsbUnderlineBelow' derive-composites 'currency/kipSign' 0x20AD 'K' 'hStrike' - create-glyph 'currency/tugrikOverride' : let - l : mix (Middle - [HSwToV HalfStroke]) SB 0.75 - r : mix (Middle + [HSwToV HalfStroke]) RightSB 0.75 - kSlope 0.05 - intersection [Rect 0 CAP l r] : union + create-glyph 'currency/tugrikOverride' : glyph-proc + local l : mix (Middle - [HSwToV HalfStroke]) SB 0.75 + local r : mix (Middle + [HSwToV HalfStroke]) RightSB 0.75 + local kSlope 0.05 + set-width 0 + set-mark-anchor 'overlay' [mix l r 0.5] (CAP * 0.5) + include : intersection [Rect 0 CAP l r] : union ExtLineCenter 4 OverlayStroke l (CAP * (0.6 - kSlope)) r (CAP * (0.6 + kSlope)) ExtLineCenter 4 OverlayStroke l (CAP * (0.35 - kSlope)) r (CAP * (0.35 + kSlope))