Skip to content

Commit f48eb67

Browse files
Make Cyrillic Lower Ef and Greek Phi Symbol use SmallArchDepth.
1 parent d957e1e commit f48eb67

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

changes/32.5.0.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
* Add variant selector for decorative angle brackets (U+276C...U+2771) (#2603, #2623).
2+
* Optimize metrics for bowl of Cyrillic Lower Ef (`ф`) and Greek Small Letter Phi Symbol (`ϕ`).

packages/font-glyphs/src/letter/greek/phi.ptl

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,16 @@ glyph-block Letter-Greek-Phi : begin
1111
glyph-block-import Mark-Adjustment : ExtendAboveBaseAnchors ExtendBelowBaseAnchors
1212
glyph-block-import Letter-Shared-Shapes : FlatHookDepth DiagTail OBarLeft OBarRight
1313

14-
define [VarPhiRing fFlatTB df y2 y3] : glyph-proc
14+
define [VarPhiRing fFlatTB df y2 y3 ada adb] : glyph-proc
1515
include : VBar.m df.middle y2 y3 df.mvs
1616
include : if fFlatTB
17-
OShapeFlatTB y3 y2 df.leftSB df.rightSB df.mvs df.archDepthA df.archDepthB
17+
OShapeFlatTB y3 y2 df.leftSB df.rightSB df.mvs ada adb
1818
Math.max (0.25 * (df.rightSB - df.leftSB)) : HSwToV df.mvs
19-
OShape y3 y2 df.leftSB df.rightSB df.mvs df.archDepthA df.archDepthB
19+
OShape y3 y2 df.leftSB df.rightSB df.mvs ada adb
2020

21-
define [CyrlEfSplitRing fFlatTB df y2 y3] : glyph-proc
22-
local subDf : df.slice 3 2 OX
21+
define [CyrlEfSplitRing fFlatTB df y2 y3 ada adb] : glyph-proc
2322
include : VBar.m df.middle y2 y3 df.mvs
24-
include : union
23+
include : let [subDf : df.slice 3 2 OX] : union
2524
OBarRight.shape
2625
top -- y3
2726
bot -- y2
@@ -39,7 +38,7 @@ glyph-block Letter-Greek-Phi : begin
3938
ada -- subDf.smallArchDepthA
4039
adb -- subDf.smallArchDepthB
4140

42-
define [GrekLowerPhiCursiveRing fFlatTB df y2 y3] : glyph-proc
41+
define [GrekLowerPhiCursiveRing fFlatTB df y2 y3 ada adb] : glyph-proc
4342
local l : df.leftSB + OX * 2
4443
local r : df.width - l
4544
include : dispiro
@@ -104,7 +103,7 @@ glyph-block Letter-Greek-Phi : begin
104103
define [GrekCapitalPhiImpl fFlatTB df] : glyph-proc
105104
local y2 : mix [if SLAB Stroke 0] [if SLAB (CAP - Stroke) CAP] 0.125
106105
local y3 : mix [if SLAB Stroke 0] [if SLAB (CAP - Stroke) CAP] 0.875
107-
include : VarPhiRing fFlatTB df y2 y3
106+
include : VarPhiRing fFlatTB df y2 y3 df.archDepthA df.archDepthB
108107
include : StraightBar df 0 y2 y3 CAP
109108

110109
if SLAB : begin
@@ -133,7 +132,7 @@ glyph-block Letter-Greek-Phi : begin
133132
include : ExtendAboveBaseAnchors top
134133
include : ExtendBelowBaseAnchors bot
135134

136-
include : VarPhiRing true df 0 CAP
135+
include : VarPhiRing true df 0 CAP df.archDepthA df.archDepthB
137136
include : StraightBar df bot 0 CAP top
138137

139138
if SLAB : begin
@@ -143,24 +142,24 @@ glyph-block Letter-Greek-Phi : begin
143142
create-glyph 'taillessphi' 0x2C77 : glyph-proc
144143
local df : include : DivFrame para.diversityM 3
145144
include : df.markSet.e
146-
include : GrekLowerPhiCursiveRing false df 0 XH
145+
include : GrekLowerPhiCursiveRing false df 0 XH df.smallArchDepthA df.smallArchDepthB
147146

148147
create-glyph 'grek/phi.cursive' : glyph-proc
149148
local df : include : DivFrame para.diversityM 3
150149
include : df.markSet.p
151-
include : GrekLowerPhiCursiveRing false df 0 XH
150+
include : GrekLowerPhiCursiveRing false df 0 XH df.smallArchDepthA df.smallArchDepthB
152151
include : VBar.m df.middle Descender (0.2 * df.mvs)
153152

154153
create-glyph 'grek/phi.straight' : glyph-proc
155154
local df : include : DivFrame para.diversityM 3
156155
include : df.markSet.bp
157-
include : VarPhiRing false df 0 XH
156+
include : VarPhiRing false df 0 XH df.smallArchDepthA df.smallArchDepthB
158157
include : StraightBar df Descender 0 XH Ascender
159158

160159
create-glyph 'grek/phi.neohellenic' : glyph-proc
161160
local df : include : DivFrame para.diversityM 3
162161
include : df.markSet.p
163-
include : VarPhiRing false df 0 XH
162+
include : VarPhiRing false df 0 XH df.smallArchDepthA df.smallArchDepthB
164163
include : VBar.m df.middle Descender (0.2 * df.mvs)
165164

166165
select-variant 'grek/phi' 0x3C6
@@ -189,7 +188,7 @@ glyph-block Letter-Greek-Phi : begin
189188
create-glyph "cyrl/ef.\(suffix)" : glyph-proc
190189
local df : include : DivFrame div 3
191190
include : df.markSet.bp
192-
include : Bowl true df 0 XH
191+
include : Bowl true df 0 XH df.smallArchDepthA df.smallArchDepthB
193192
local vs : fallback barSw df.mvs
194193
include : Bar df Descender 0 XH Ascender vs
195194
if sMT : include : sMT df Ascender vs

0 commit comments

Comments
 (0)