Skip to content

Commit

Permalink
Add horizontal-tailed and detach-tailed Q (#808).
Browse files Browse the repository at this point in the history
  • Loading branch information
be5invis committed Jan 23, 2021
1 parent f6b53f8 commit 92973ce
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 5 deletions.
3 changes: 2 additions & 1 deletion changes/5.0.0-beta.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
* **Breaking** Spilt out variant selector for `A`, `V`, `W`, `Z` (#806).
* Add diagonal-tailed variants of `f`, `i`, `j`, `k`, `l`, `q`, `t` (#795).
* Add motion-serifed variants of `A`, `B`, `D`, `E`, `F`, `P`, `R`, `T`, `V`, `W`, `Z`, `v`, `w`, `y`, `z` (#806, #815).
* Add open-contour variants of `P` and `R` (#810).
* Add symmetric-legged variants of `K` and `k` (#807).
* Add horizontal-tailed and detach-tailed `Q` (#808).
* Add open-contour variants of `P` and `R` (#810).
* Add standing variants of `R` (#810).
* Add toothed and motion-serifed `U` (#811).
* Add motion-serifed toothless `u` (#813).
Expand Down
42 changes: 41 additions & 1 deletion font-src/glyphs/letter/latin/upper-q.ptl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ glyph-block Letter-Latin-Upper-Q : begin
flat (Middle + Width * 0.075 - Stroke * HVContrast * shift) (-CAP * 0.2) [heading Upward]
curl (Middle - Stroke * HVContrast * shift) 0

create-glyph 'Q.taily' : glyph-proc
create-glyph 'Q.curlyTailed' : glyph-proc
include : MarkSet.if
include [refer-glyph 'O']
local shift : StrokeWidthBlend 0.5 0.6
Expand Down Expand Up @@ -51,6 +51,46 @@ glyph-block Letter-Latin-Upper-Q : begin
define p 0.75
include : VBar Middle [Math.max (Stroke * 1.5) : mix Descender 0 (1 + p)] [mix 0 Descender p] [AdviceStroke 3.5]

create-glyph 'Q.horizontalTailed' : glyph-proc
include : MarkSet.capital
define fine : mix ShoulderFine Stroke 0.125
include : dispiro
flat (Middle - Stroke * TanSlope + O) (Stroke - fine) [widths.lhs fine]
curl (Middle + CorrectionOMidX * fine) (Stroke - fine)
archv
flat RightSB SmoothA [widths.lhs Stroke]
curl RightSB (CAP - SmoothB)
arcvh
g4 (Middle - CorrectionOMidS) (CAP - O)
archv
flat SB (CAP - SmoothA)
curl SB SmoothB
arcvh
straight.right.end (Middle + CorrectionOMidS) 0
include : dispiro
flat (Middle + CorrectionOMidS) 0 [widths.lhs : AdviceStroke 3]
curl [mix RightSB Width 0.5] 0

define detachedTailGap : Math.max (-0.375 * Descender) [AdviceStroke 8]
define yObliqueTailStart : 0 - detachedTailGap - Stroke * 0.875
define xDetachedTailEnd : mix RightSB Width 0.1
create-glyph 'Q.detachedHorizontalTailed' : glyph-proc
include : MarkSet.if
include [refer-glyph 'O']
include : dispiro
widths.lhs Stroke
corner Middle (yObliqueTailStart) [heading Rightward]
corner xDetachedTailEnd (yObliqueTailStart) [heading Rightward]

create-glyph 'Q.detachedObliqueTailed' : glyph-proc
include : MarkSet.if
include [refer-glyph 'O']
include : dispiro
widths.lhs Stroke
corner Middle (yObliqueTailStart) [heading Rightward]
corner xDetachedTailEnd (yObliqueTailStart - 0.2 * (RightSB - Middle)) [heading Rightward]


select-variant 'Q' 'Q'
alias 'cyrl/Qa' 0x51A 'Q'

Expand Down
21 changes: 18 additions & 3 deletions params/variants.toml
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,10 @@ selector.P = "openMotionSerifed"
sampler = 'Q'
tag = 'cv13'

[prime.capital-q.variants.taily]
[prime.capital-q.variants.curly-tailed]
rank = 1
description = '`Q` with a curly tail'
selector.Q = 'taily'
selector.Q = 'curlyTailed'

[prime.capital-q.variants.straight]
rank = 2
Expand All @@ -312,6 +312,21 @@ rank = 4
description = '`Q` with a vertical tail crossing the ring'
selector.Q = 'verticalCrossing'

[prime.capital-q.variants.horizontal-tailed]
rank = 5
description = '`Q` with a horizontal tail, like Univers'
selector.Q = 'horizontalTailed'

[prime.capital-q.variants.detached-horizontal-tailed]
rank = 6
description = '`Q` with a horizontal tail detached'
selector.Q = 'detachedHorizontalTailed'

[prime.capital-q.variants.detached-oblique-tailed]
rank = 7
description = '`Q` with a oblique tail detached'
selector.Q = 'detachedObliqueTailed'



[prime.capital-r]
Expand Down Expand Up @@ -2628,7 +2643,7 @@ capital-k = 'straight'
capital-l = 'standard'
capital-m = 'hanging'
capital-p = 'closed'
capital-q = 'taily'
capital-q = 'curly-tailed'
capital-r = 'straight'
capital-t = 'standard'
capital-u = 'toothless-rounded'
Expand Down

0 comments on commit 92973ce

Please sign in to comment.