Add flat-serifed variants for 1 (#819).

This commit is contained in:
be5invis 2021-01-24 09:19:29 -08:00
parent a5b13eb165
commit d82dd0d36d
3 changed files with 35 additions and 1 deletions

View file

@ -10,8 +10,9 @@
* Add open-contour variants of `P` and `R` (#810).
* Add standing variants of `R` (#810).
* Add toothed and motion-serifed variants of `U` (#811).
* Add motion-serifed toothless variants of `u` (#813).
* Add double-v and asymmetric variants of `W` and `w` (#812).
* Add motion-serifed toothless variants of `u` (#813).
* Add flat-serifed variants for `1` (#819).
* Add IBM Plex Mono style set (#796).
* Fix broken geometry of `K` and `%` under ultra-wide (#800).
* Add straight-bar AE (`Æ`), follows variant selector for `A` (#800).

View file

@ -148,6 +148,11 @@ glyph-block Digits-One : begin
flat (Middle - HalfStroke * HVContrast + balance) top [widths topSW 0]
curl (Middle - Stroke / 8 * HVContrast - HookX * 1.25 + balance) (top - Stroke / 8 - Hook * pTopSerif * (top / CAP))
define [OneShapeFlat top balance pTopSerif] : glyph-proc
define topSW : AdviceStroke 3.5
include : VBar (Middle + balance) 0 top
include : LeftwardTopSerif (Middle + balance - HalfStroke * HVContrast) (top - Stroke / 8 - Hook * pTopSerif * (top / CAP)) (LongJut - HalfStroke * HVContrast)
create-glyph 'one.lnum.nobase' : glyph-proc
include : MarkSet.capital
include : OneShape CAP OneBalance 0.75
@ -166,6 +171,15 @@ glyph-block Digits-One : begin
include : OneShape CAP (OneBalance / 4) 1.875
include : CenterBottomSerif Middle 0 LongJut
create-glyph 'one.lnum.nobaseFlatTopSerif' : glyph-proc
include : MarkSet.capital
include : OneShapeFlat CAP OneBalance 0.625
create-glyph 'one.lnum.baseFlatTopSerif' : glyph-proc
include : MarkSet.capital
include : OneShapeFlat CAP (OneBalance / 4) 0.625
include : CenterBottomSerif Middle 0 LongJut
create-glyph 'one.lnum.line' : glyph-proc
include : MarkSet.capital
include : VBar Middle 0 CAP
@ -189,6 +203,15 @@ glyph-block Digits-One : begin
include : OneShape OnumHeight (OneBalance / 4) 1.875
include : CenterBottomSerif Middle 0 LongJut
create-glyph 'one.onum.nobaseFlatTopSerif' : glyph-proc
include : OnumMarks.e
include : OneShapeFlat OnumHeight OneBalance 0.625
create-glyph 'one.onum.baseFlatTopSerif' : glyph-proc
include : OnumMarks.e
include : OneShapeFlat OnumHeight (OneBalance / 4) 0.625
include : CenterBottomSerif Middle 0 LongJut
create-glyph 'one.onum.line' : glyph-proc
include : OnumMarks.e
include : VBar Middle 0 OnumHeight

View file

@ -2328,6 +2328,16 @@ rank = 5
description = '`1` with bottom serif and a long top serif'
selector.one = "baseLongTopSerif"
[prime.one.variants.nobase-flat-top-serif]
rank = 6
description = '`1` without bottom serif and with a flat top serif'
selector.one = "nobaseFlatTopSerif"
[prime.one.variants.base-flat-top-serif]
rank = 7
description = '`1` with bottom serif and a flat top serif'
selector.one = "baseFlatTopSerif"
[prime.two]