Break down currency/centSign to two parts using CvDecompose
This commit is contained in:
parent
628ea11571
commit
f916bb227a
3 changed files with 41 additions and 11 deletions
|
@ -232,18 +232,28 @@ glyph-block Letter-Latin-C : begin
|
||||||
include : HOverlayBar [mix SB 0 0.7] [mix SB RightSB 0.7] (CAP * 0.4)
|
include : HOverlayBar [mix SB 0 0.7] [mix SB RightSB 0.7] (CAP * 0.4)
|
||||||
include : HOverlayBar [mix SB 0 0.7] [mix SB RightSB 0.7] (CAP * 0.6)
|
include : HOverlayBar [mix SB 0 0.7] [mix SB RightSB 0.7] (CAP * 0.6)
|
||||||
|
|
||||||
with-related-glyphs 'currency/centSign' 0xA2 'c' : lambda [src sel] : glyph-proc
|
create-glyph 'currency/centSignBar.open' : glyph-proc
|
||||||
|
set-width 0
|
||||||
|
include : dispiro
|
||||||
|
widths.center
|
||||||
|
flat (Middle - Width) (XH - HalfStroke)
|
||||||
|
curl (Middle - Width) (XH - Descender / 2) [heading Upward]
|
||||||
|
include : dispiro
|
||||||
|
widths.center
|
||||||
|
flat (Middle - Width) (Descender / 2) [heading Upward]
|
||||||
|
curl (Middle - Width) HalfStroke
|
||||||
|
|
||||||
|
create-glyph 'currency/centSignBar.through' : glyph-proc
|
||||||
define fine : AdviceStroke 4
|
define fine : AdviceStroke 4
|
||||||
include [refer-glyph src] AS_BASE ALSO_METRICS
|
include [refer-glyph 'currency/centSignBar.open'] AS_BASE ALSO_METRICS
|
||||||
include : dispiro
|
include : VBar (Middle - Width) (XH - HalfStroke) (0 + HalfStroke) fine
|
||||||
widths.center
|
|
||||||
flat Middle (XH - HalfStroke)
|
select-variant 'currency/centSignBar' (follow -- 'cent')
|
||||||
curl Middle (XH - Descender / 2) [heading Upward]
|
|
||||||
include : dispiro
|
create-glyph 'currency/centSign' 0xA2 : glyph-proc
|
||||||
widths.center
|
include [refer-glyph 'c'] AS_BASE ALSO_METRICS
|
||||||
flat Middle (Descender / 2) [heading Upward]
|
include : WithTransform [Translate Width 0] [refer-glyph 'currency/centSignBar']
|
||||||
curl Middle HalfStroke
|
CvDecompose.set currentGlyph { 'c' 'currency/centSignBar' }
|
||||||
include : VBar Middle (XH - HalfStroke) (0 + HalfStroke) fine
|
|
||||||
|
|
||||||
turned 'turnC' 0x186 'C' Middle (CAP / 2)
|
turned 'turnC' 0x186 'C' Middle (CAP / 2)
|
||||||
turned 'turnc' 0x254 'c' Middle (XH / 2)
|
turned 'turnc' 0x254 'c' Middle (XH / 2)
|
||||||
|
|
|
@ -122,6 +122,9 @@ module.exports = class Glyph {
|
||||||
includeGlyphImpl(g, shiftX, shiftY) {
|
includeGlyphImpl(g, shiftX, shiftY) {
|
||||||
if (g._m_identifier) {
|
if (g._m_identifier) {
|
||||||
this.includeGlyphComponentImpl(g, shiftX, shiftY);
|
this.includeGlyphComponentImpl(g, shiftX, shiftY);
|
||||||
|
} else if (!g._m_identifier && g.isPureComposite()) {
|
||||||
|
for (const sr of g.semanticInclusions)
|
||||||
|
this.includeGlyphComponentImpl(sr.glyph, sr.x + shiftX, sr.y + shiftY);
|
||||||
} else {
|
} else {
|
||||||
this.includeGeometry(g, shiftX, shiftY);
|
this.includeGeometry(g, shiftX, shiftY);
|
||||||
}
|
}
|
||||||
|
|
|
@ -3200,6 +3200,22 @@ selector.dollar = "throughcap"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[prime.cent]
|
||||||
|
sampler = "¢"
|
||||||
|
tag = "cv85"
|
||||||
|
|
||||||
|
[prime.cent.variants.open]
|
||||||
|
rank = 1
|
||||||
|
description = "Cent sign with open contour"
|
||||||
|
selector.cent = "open"
|
||||||
|
|
||||||
|
[prime.cent.variants.through]
|
||||||
|
rank = 2
|
||||||
|
description = "Cent sign with open contour"
|
||||||
|
selector.cent = "through"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[prime.percent]
|
[prime.percent]
|
||||||
sampler = "%"
|
sampler = "%"
|
||||||
tag = "cv79"
|
tag = "cv79"
|
||||||
|
@ -3403,6 +3419,7 @@ at = "threefold"
|
||||||
paren = "normal"
|
paren = "normal"
|
||||||
brace = "curly"
|
brace = "curly"
|
||||||
dollar = "through"
|
dollar = "through"
|
||||||
|
cent = "through"
|
||||||
number-sign = "upright"
|
number-sign = "upright"
|
||||||
percent = "rings-continuous-slash"
|
percent = "rings-continuous-slash"
|
||||||
lig-ltgteq = "flat"
|
lig-ltgteq = "flat"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue