Skip to content

Commit

Permalink
Revert #2155 .
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcwilliams403 committed Mar 21, 2024
1 parent 297cb22 commit 4810fb4
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 73 deletions.
1 change: 1 addition & 0 deletions changes/29.0.3.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@
* Fix side bearings of `U+29E2` under Quasi-Proportional.
* Fix width of PUNCTUATION SPACE (`U+2008`) under Quasi-Proportional.
* Fix `percent`=`dots` glyphs for PER {MILLE|TEN THOUSAND} SIGN (`U+2030`..`U+2031`) under Quasi-Proportional when `NWID` is enabled.
* Remove untagged variant selector for Cyrillic Capital Ef (`Ф`).
71 changes: 29 additions & 42 deletions packages/font-glyphs/src/letter/greek/upper-phi.ptl
Original file line number Diff line number Diff line change
Expand Up @@ -71,55 +71,42 @@ glyph-block Letter-Greek-Upper-Phi : begin
define [MtSerif df y] : tagged 'serifMT' : HSerif.lt df.middle y Jut
define [MbSerif df y] : tagged 'serifMB' : HSerif.mb df.middle y Jut

define CyrlCapitalEfConfig : SuffixCfg.weave
object # bowl
"" VarPhiRing
splitBowl CyrlEfSplitRing
object # serifs
serifless false
serifed true

foreach { suffix { Bowl Serifs } } [Object.entries CyrlCapitalEfConfig] : do
define [GrekCapitalPhiImpl fFlatTB df slab] : glyph-proc
local y1 : mix [if slab Stroke 0] [if slab (CAP - Stroke) CAP] 0.125
local y2 : mix [if slab Stroke 0] [if slab (CAP - Stroke) CAP] 0.875
include : Bowl fFlatTB df y1 y2
include : StraightBar df 0 y1 y2 CAP

if slab : begin
include : tagged 'serifMT' : HSerif.mt df.middle CAP MidJutSide
include : tagged 'serifMB' : HSerif.mb df.middle 0 MidJutSide

create-glyph "grek/Phi.\(suffix)" : glyph-proc
local df : include : DivFrame para.diversityM 3
include : df.markSet.capital
include : GrekCapitalPhiImpl 0 df Serifs
define [GrekCapitalPhiImpl fFlatTB df] : glyph-proc
local y1 : mix [if SLAB Stroke 0] [if SLAB (CAP - Stroke) CAP] 0.125
local y2 : mix [if SLAB Stroke 0] [if SLAB (CAP - Stroke) CAP] 0.875
include : VarPhiRing fFlatTB df y1 y2
include : StraightBar df 0 y1 y2 CAP

create-glyph "cyrl/Ef.\(suffix)" : glyph-proc
local df : include : DivFrame para.diversityM 3
include : df.markSet.capital
include : GrekCapitalPhiImpl 1 df Serifs
if SLAB : begin
include : tagged 'serifMT' : HSerif.mt df.middle CAP MidJutSide
include : tagged 'serifMB' : HSerif.mb df.middle 0 MidJutSide

create-glyph "cyrl/Ef.BGR.\(suffix)" : glyph-proc
local df : include : DivFrame para.diversityM 3
include : df.markSet.capital
create-glyph 'grek/Phi' 0x3A6 : glyph-proc
local df : include : DivFrame para.diversityM 3
include : df.markSet.capital
include : GrekCapitalPhiImpl 0 df

local top : CAP + LongJut - HalfStroke
local bot : 0 - LongJut + HalfStroke
create-glyph 'cyrl/Ef' 0x424 : glyph-proc
local df : include : DivFrame para.diversityM 3
include : df.markSet.capital
include : GrekCapitalPhiImpl 1 df

include : ExtendAboveBaseAnchors top
include : ExtendBelowBaseAnchors bot
create-glyph 'cyrl/Ef.BGR' : glyph-proc
local df : include : DivFrame para.diversityM 3
include : df.markSet.capital

include : VarPhiRing 0 df 0 CAP
include : StraightBar df bot 0 CAP top
local top : CAP + LongJut - HalfStroke
local bot : 0 - LongJut + HalfStroke

if Serifs : begin
include : tagged 'serifMT' : HSerif.mt df.middle top MidJutSide
include : tagged 'serifMB' : HSerif.mb df.middle bot MidJutSide
include : ExtendAboveBaseAnchors top
include : ExtendBelowBaseAnchors bot

select-variant 'grek/Phi' 0x3A6
select-variant 'cyrl/Ef' 0x424
select-variant 'cyrl/Ef.BGR'
include : VarPhiRing 0 df 0 CAP
include : StraightBar df bot 0 CAP top

if SLAB : begin
include : tagged 'serifMT' : HSerif.mt df.middle top MidJutSide
include : tagged 'serifMB' : HSerif.mb df.middle bot MidJutSide

create-glyph 'grek/varphi' 0x3D5 : glyph-proc
local df : include : DivFrame para.diversityM 3
Expand Down
31 changes: 0 additions & 31 deletions params/variants.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5853,35 +5853,6 @@ selectorAffix."cyrl/u" = "serifed"



[prime.cyrl-capital-ef]
# No tags and sampler -- for style-driven variation

[prime.cyrl-capital-ef.variants.serifless]
rank = 1
selector."grek/Phi" = "serifless"
selector."cyrl/Ef" = "serifless"
selector."cyrl/Ef.BGR" = "serifless"

[prime.cyrl-capital-ef.variants.serifed]
rank = 2
selector."grek/Phi" = "serifed"
selector."cyrl/Ef" = "serifed"
selector."cyrl/Ef.BGR" = "serifed"

[prime.cyrl-capital-ef.variants.split-serifless]
rank = 3
selector."grek/Phi" = "serifless"
selector."cyrl/Ef" = "splitBowlSerifless"
selector."cyrl/Ef.BGR" = "serifless"

[prime.cyrl-capital-ef.variants.split-serifed]
rank = 4
selector."grek/Phi" = "serifed"
selector."cyrl/Ef" = "splitBowlSerifed"
selector."cyrl/Ef.BGR" = "serifed"



[prime.cyrl-ef]
sampler = "ф"
samplerExplain = "Cyrillic Lower Ef"
Expand Down Expand Up @@ -7702,7 +7673,6 @@ cyrl-en = "serifless"
cyrl-er = "eared-serifless"
cyrl-capital-u = "straight-serifless"
cyrl-u = "straight-serifless"
cyrl-capital-ef = "serifless"
cyrl-ef = "serifless"
cyrl-che = "standard"
cyrl-capital-yeri = "corner"
Expand Down Expand Up @@ -7842,7 +7812,6 @@ cyrl-en = "serifed"
cyrl-er = "eared-serifed"
cyrl-capital-u = "straight-turn-serifed"
cyrl-u = "straight-turn-serifed"
cyrl-capital-ef = "serifed"
cyrl-ef = "serifed"
cyrl-capital-ya = "straight-serifed"
cyrl-ya = "straight-serifed"
Expand Down

0 comments on commit 4810fb4

Please sign in to comment.