Skip to content

Commit db7536b

Browse files
Potentially save some GIDs surrounding grek/alpha. (#2487)
1 parent c7529b1 commit db7536b

File tree

3 files changed

+47
-28
lines changed

3 files changed

+47
-28
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export : define [apply] : begin
1212
run-glyph-module "./greek/psi.mjs"
1313
run-glyph-module "./greek/upper-omega.mjs"
1414

15+
run-glyph-module "./greek/lower-alpha.mjs"
1516
run-glyph-module "./greek/lower-delta.mjs"
1617
run-glyph-module "./greek/lower-epsilon.mjs"
1718
run-glyph-module "./greek/lower-lunate-epsilon.mjs"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
$$include '../../meta/macros.ptl'
2+
3+
import [mix linreg fallback SuffixCfg] from "@iosevka/util"
4+
import [MathSansSerif] from "@iosevka/glyph/relation"
5+
6+
glyph-module
7+
8+
glyph-block Letter-Greek-Lower-Alpha : begin
9+
glyph-block-import CommonShapes
10+
glyph-block-import Common-Derivatives
11+
glyph-block-import Letter-Latin-Lower-A : SingleStoreyConfig
12+
13+
###########################################################################################
14+
# UNIFIED LETTERFORMS : GREEK ORIGINALS
15+
###########################################################################################
16+
create-glyph 'grek/alpha.crossing' : glyph-proc
17+
include : MarkSet.e
18+
19+
local middle : mix SB RightSB 0.42
20+
local fine : AdviceStroke 3.25
21+
local k1 0.25
22+
local k2 0.5
23+
local k3 0.35
24+
include : dispiro
25+
widths.rhs fine
26+
g4 (RightSB - OX * 1.75) XH [heading Downward]
27+
bezControls k1 k2 k3 1 6
28+
arch.rhs.centerAt.rtl.b middle 0
29+
archv
30+
flat (SB + OX * 2) SmallArchDepthB
31+
curl (SB + OX * 2) (XH - SmallArchDepthA)
32+
arcvh
33+
arch.rhs.centerAt.ltr.t middle XH
34+
bezControls (1 - k3) 0 (1 - k1) (1 - k2) 6
35+
g4 (RightSB - OX * 2) 0 [widths.heading 0 fine Downward]
36+
37+
set-base-anchor 'overlay' (middle - OX) (XH * OverlayPos)
38+
39+
foreach { suffix { body bar } } [Object.entries SingleStoreyConfig] : do
40+
create-glyph "grek/alpha.\(suffix)" : glyph-proc
41+
include : MarkSet.e
42+
include : body [DivFrame 1] XH bar no-shape
43+
44+
select-variant 'grek/alpha' 0x3B1
45+
link-reduced-variant 'grek/alpha/sansSerif' 'grek/alpha' MathSansSerif

packages/font-glyphs/src/letter/latin/lower-a.ptl

+1-28
Original file line numberDiff line numberDiff line change
@@ -139,30 +139,6 @@ glyph-block Letter-Latin-Lower-A : begin
139139
Rect XH 0 (RightSB - BBD) Width
140140
include : HBar.b (RightSB - BBD) RightSB 0 BBS
141141

142-
# Greek Lower Alpha
143-
create-glyph 'a.crossing' : glyph-proc
144-
include : MarkSet.e
145-
146-
local middle : mix SB RightSB 0.42
147-
local fine : AdviceStroke 3.25
148-
local k1 0.25
149-
local k2 0.5
150-
local k3 0.35
151-
include : dispiro
152-
widths.rhs fine
153-
g4 (RightSB - OX * 1.75) XH [heading Downward]
154-
bezControls k1 k2 k3 1 6
155-
arch.rhs.centerAt.rtl.b middle 0
156-
archv
157-
flat (SB + OX * 2) SmallArchDepthB
158-
curl (SB + OX * 2) (XH - SmallArchDepthA)
159-
arcvh
160-
arch.rhs.centerAt.ltr.t middle XH
161-
bezControls (1 - k3) 0 (1 - k1) (1 - k2) 6
162-
g4 (RightSB - OX * 2) 0 [widths.heading 0 fine Downward]
163-
164-
set-base-anchor 'overlay' (middle - OX) (XH * OverlayPos)
165-
166142
glyph-block-export SingleStorey SingleStoreyConfig
167143
define SingleStorey : namespace
168144
export : define [FullBarBody df height bar mask _sw] : glyph-proc
@@ -296,12 +272,9 @@ glyph-block Letter-Latin-Lower-A : begin
296272

297273
CreateTurnedLetter 'turna' 0x250 'a/turnABase' HalfAdvance (XH / 2)
298274

299-
derive-composites 'artail' 0x1D8F 'a/rtailBase'
275+
derive-composites 'aRetroflexHook' 0x1D8F 'a/rtailBase'
300276
RetroflexHook.rSideJut RightSB 0 (yOverflow -- Stroke)
301277

302-
select-variant 'grek/alpha' 0x3B1 (shapeFrom -- 'a')
303-
link-reduced-variant 'grek/alpha/sansSerif' 'grek/alpha' MathSansSerif (shapeFrom -- 'a')
304-
305278
select-variant 'scripta' 0x0251
306279
select-variant 'largescripta' 0x2C6D (follow -- 'scripta')
307280
select-variant 'invscripta' 0xAB64 (follow -- 'scripta')

0 commit comments

Comments
 (0)