Skip to content

Commit dee3f7c

Browse files
Optimize round-top variants for A part of AE. (#2547)
1 parent 49519d1 commit dee3f7c

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

changes/31.9.1.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* Optimize glyphs for `round-top-serifless` and `round-top-base-serifed` variants for `A` part (`cv11`) of Capital AE (`U+00C6`) under Quasi-Proportional.

packages/font-glyphs/src/letter/latin-ext/upper-ae-oe.ptl

+9-4
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,16 @@ glyph-block Letter-Latin-Upper-AE-OE : begin
7373
corner eleft 0
7474

7575
define [AEAHalfRoundTop df top eleft sw] : glyph-proc
76+
define ada : df.archDepthA ArchDepth sw
77+
define adb : df.archDepthB ArchDepth sw
78+
79+
local yMidDepth : if (top > ada + adb) ada (top * (ada / (ada + adb)))
80+
7681
include : HBar.t df.leftSB eleft (XH * 0.75 / CAP * top) sw
7782
include : dispiro
7883
widths.rhs sw
7984
flat df.leftSB 0 [heading Upward]
80-
curl pre@ (post@ <-> ArchDepthA)
85+
curl pre@ (post@ <-> yMidDepth)
8186
arcvh
8287
straight.right.end eleft top [heading Rightward]
8388

@@ -206,13 +211,13 @@ glyph-block Letter-Latin-Upper-AE-OE : begin
206211
define eleft : df.middle - [HSwToV : sw * [if SLAB (1 / 3) (1 / 4)]]
207212
define swVJut : Math.min sw ((df.rightSB - eleft - [HSwToV sw]) * (4 / 5))
208213

214+
define ada : df.archDepthA ArchDepth sw
215+
define adb : df.archDepthB ArchDepth sw
216+
209217
local xMidRight : df.rightSB - sw / 4
210218
local yBar : top * eBarPos
211219
local { jutTop jutBot jutMid } : EFVJutLength top eBarPos sw
212220

213-
local ada : df.archDepthA ArchDepth sw
214-
local adb : df.archDepthB ArchDepth sw
215-
216221
# O half
217222
if (top > ada + adb) : then : begin
218223
include : dispiro

0 commit comments

Comments
 (0)