Rearrange variants of Q

This commit is contained in:
be5invis 2021-02-04 22:56:34 -08:00
parent 245b2a3948
commit d3beb9f500
3 changed files with 22 additions and 18 deletions

View file

@ -71,25 +71,29 @@ glyph-block Letter-Latin-Upper-Q : begin
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 detachedTailGap : Math.max (-0.25 * Descender) [AdviceStroke 12]
define yObliqueTailStart : 0 - detachedTailGap - Stroke * 0.875
define xDetachedTailEnd : mix RightSB Width 0.1
create-glyph 'Q.detachedHorizontalTailed' : glyph-proc
define yObliqueTailEnd : [mix 0 Descender 0.75] - Stroke * 0.5
define xDetachedTailEnd : mix RightSB Width 0.75
define kBendStartPartLeftLength 0.5
define xBendTailStart : mix Middle SB kBendStartPartLeftLength
define yBendTailStart : mix yObliqueTailStart yObliqueTailEnd kBendStartPartLeftLength
create-glyph 'Q.detachedTailed' : glyph-proc
include : MarkSet.if
include [refer-glyph 'O']
include : dispiro
widths.lhs Stroke
corner Middle (yObliqueTailStart) [heading Rightward]
corner xDetachedTailEnd (yObliqueTailStart) [heading Rightward]
corner Middle yObliqueTailStart [heading Rightward]
corner xDetachedTailEnd yObliqueTailEnd [heading Rightward]
create-glyph 'Q.detachedObliqueTailed' : glyph-proc
create-glyph 'Q.detachedBendTailed' : glyph-proc
include : MarkSet.if
include [refer-glyph 'O']
include [refer-glyph 'Q.detachedTailed']
include : dispiro
widths.lhs Stroke
corner Middle (yObliqueTailStart) [heading Rightward]
corner xDetachedTailEnd (yObliqueTailStart - 0.2 * (RightSB - Middle)) [heading Rightward]
corner xBendTailStart yBendTailStart [heading Rightward]
corner Middle yObliqueTailStart [heading Rightward]
select-variant 'Q' 'Q'
alias 'cyrl/Qa' 0x51A 'Q'

View file

@ -337,7 +337,7 @@ function queryCvFeatureTagsOf(sink, gid, glyph, variantAssignmentSet) {
variantAssignmentSet.add(assignCss);
}
}
for (const g of m.values()) sink.push(g.sort());
for (const g of m.values()) if (g.length) sink.push(g.sort());
}
exports.Dotless = Dotless;

View file

@ -611,15 +611,15 @@ rank = 5
description = "`Q` with a horizontal tail, like Univers"
selector.Q = "horizontalTailed"
[prime.capital-q.variants.detached-horizontal-tailed]
[prime.capital-q.variants.detached-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"
selector.Q = "detachedTailed"
[prime.capital-q.variants.detached-bend-tailed]
rank = 7
description = "`Q` with a bend tail detached"
selector.Q = "detachedBendTailed"