Skip to content

Commit

Permalink
Fix IJ broken shapes under condensed (#2292) (#2304)
Browse files Browse the repository at this point in the history
  • Loading branch information
be5invis authored Apr 21, 2024
1 parent 3c64e3a commit d653306
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions packages/font-glyphs/src/letter/latin/lower-j.ptl
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ glyph-block Letter-Latin-Lower-J : begin

define Body : namespace
export : define [Regular df top xMiddle] : glyph-proc
local hookx : xMiddle - (Width * 0.5) - [HSwToV HalfStroke] + OXHook
local turn : xMiddle - Width * 0.25 + CorrectionOMidS
local hookx : Math.min (xMiddle - (Width * 0.5) - [HSwToV HalfStroke] + OXHook) (xMiddle - 1.5 * [HSwToV Stroke] + OXHook)
set-base-anchor "below" [mix hookx xMiddle 0.5] Descender
include : dispiro
widths.rhs
Expand Down
6 changes: 3 additions & 3 deletions packages/font-glyphs/src/letter/latin/lower-y.ptl
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,13 @@ glyph-block Letter-Latin-Lower-Y : begin
local joinHeight3 : [Math.abs k] * Stroke + joinHeight1
local deltaX : Math.max yBottomJut [HSwToV : 1.2 * Stroke]
local fine : AdviceStroke 3
local xLoopLeft : Math.max (SB * -0.25) [mix joinX (me.yrstrokel - deltaX) 2]
local xLoopLeft : Math.min [Math.max (SB * -0.25) [mix joinX (me.yrstrokel - deltaX) 2]] (joinX - 1.5 * [HSwToV fine])
local xCenter : mix xLoopLeft joinX 0.5
list
ConnectZ me.yshrink
g4.left.mid ([Math.min (me.yrstrokel - deltaX) xCenter] + CorrectionOMidS) bottom [widths.rhs]
g2.left.mid (xCenter + CorrectionOMidX * fine) bottom [widths.rhs]
archv
g4.up.mid xLoopLeft [mix bottom joinHeight3 0.5] [widths.rhs.heading fine Upward]
g2.up.mid xLoopLeft [mix bottom joinHeight3 0.5] [widths.rhs.heading fine Upward]
arcvh
flat xCenter joinHeight3 [heading Rightward]
curl Middle joinHeight3 [heading Rightward]
Expand Down

0 comments on commit d653306

Please sign in to comment.