Skip to content

Commit

Permalink
Further optimize jut length of middle serif of E/F. (#2482)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcwilliams403 authored Aug 25, 2024
1 parent f126515 commit 2427404
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/font-glyphs/src/letter/latin/upper-f.ptl
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,19 @@ glyph-block Letter-Latin-Upper-F : begin

glyph-block-export xMidBarShrink
define [xMidBarShrink serifV] : [Math.max HalfStroke ((RightSB - SB) * 0.15)] + [if serifV (Stroke * 0.25) 0]

define [yMidBarImpl y] : fallback y DesignParameters.upperEBarPos

glyph-block-export yMidBar
define [yMidBar top y] : top * [fallback y DesignParameters.upperEBarPos]
define [yMidBar top y] : top * [yMidBarImpl y]

glyph-block-export EFVJutLength
define [EFVJutLength top pyBar stroke] : begin
local jutTop : Math.min VJut
top - [mix (top - stroke) ([yMidBar top pyBar] + stroke / 2) 0.5]
local jutBot : Math.min VJut
mix stroke ([yMidBar top pyBar] - stroke / 2) 0.5
local jutMid : 0.5 * [Math.min jutTop jutBot]
local jutMid : 0.5 * [mix jutBot jutTop : yMidBarImpl pyBar]
return { jutTop jutBot jutMid }

define xFBarLeft : SB * 1.5
Expand Down

0 comments on commit 2427404

Please sign in to comment.