Fix overlay placement of Tugrik Sign (U+20AE) under Etoile (#2060).

This commit is contained in:
be5invis 2023-10-22 12:50:31 -07:00
parent 189623b894
commit e55ca5729c

View file

@ -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))