be5invis / Iosevka

Versatile typeface for code, from code.
http://be5invis.github.io/Iosevka
SIL Open Font License 1.1
19.35k stars 578 forks source link

Can't seem to build Iosevka #380

Closed arudp closed 5 years ago

arudp commented 5 years ago

If you have problem when building Iosevka, please provide these informations:

leading = 1250 # Default line height times 1000. descenderPad = 0 # Additional line height, added to descender. width = 500 # Character width. Increase this if you think that Iosevka is too narrow. cap = 735 # Cap height (as well as ascender). xheight = 530 # X-height.

descender = -205 # Depth of descender. Currently unused.

winMetricPad = 0 # Padding of Win metrics to avoid clipping. See #343

ideoMid = 365 symbolMid = 365 # Center of parens, maths, geometrics... parenSize = 1066 # Size of parens, brackets, braces, slashes, etc. operSize = 852 # Size of "taller" mathematical operators (cups, etc.) tackSize = 800 # Size of logical operators (tacks, etc.)

contrast = 1.11111 # Stroke width contrast. essx = 1.12 # Contrast of the middle of 'S'.

slantAngle = 0 # Slant angle, in degrees.

accent = 155 # Height of accent marks. accentx = 200 # Width of accent marks. overshoot = -8 # Vertical overshoot for arcs. overshootx = -8 # Horizontal overshoot for arcs. oxhook = -5 # Horizontal overshoot for hook tips. fovershoot = -40 # Overshoot of the top end of italic f.

longjut = 175 # Length of long serifs, like that in i. jut = 85 # Length of short serifs, used in Slab only. vjut = 145 # Length of vertical serifs, used in Slab only.

smooth = 195 # Vertical arc size in capital letters. smallsmooth = 220 # Vertical arc size in lowercase letters. smoothadjust = 120 # Parameter to balance arcs in slanted shapes. superness = 2.2 # Superness of arcs.

barpos = 0.525 # Position of the middle bar in most letters, like E. overlaypos = 0.52 # Position of the overlay mark. ebarpos = 0.50 # Position of the middle bar in e. gbarpos = 0.42 pbarpos = 0.53 fivebarpos = 0.64 fbarpos = 0.91 # Position of the middle bar in f fbarStrokeAdj = 0.25 # Portion of the fill above the f-bar position

hook = 155 # Hook depth in most letters. ahook = 130 shook = 110 jhook = 135 fhook = 120 rhook = 90 hookx = 170

tbalance = 50 tbalance2 = 30 rbalance = 60 rbalance2 = 15 jbalance = 63 fbalance = 6 onebalance = 30

isItalic = false # Use italic shapes? isOblique = false # Use oblique shapes?

lllcrowdedness = 3.33333333

spacing = 1 # Spacing indicator

menuWidth = 5 # Menu width

Powerline-specific parameters

powerlineScaleY = 1 # Vertical scale powerlineScaleX = 1 # Horizontal scale powerlineShiftY = 0 # Vertical shift powerlineShiftX = 0 # Horizontal shift

Full-width codes

fullwidth_codes = []

Diversity widths

diversityM = 1 diversityF = 1 diversityI = 1 diversityII = 1

Whether to generate CV-SS features

enableCvSs = true

Whether to generate ligation

enableLigation = true

Excluded code points

excludedCodePointRanges = []

[verbose] verbose = true

Weights

[w-100] stroke = 18 sb = 72 dotsize = 53 periodsize = 55

cthin = 0.9 cthinb = 0.9 vtipfine = 1 shoulderfine = 0.8 pbarpos = 0.5

[w-200] stroke = 36 sb = 68 dotsize = 70 periodsize = 77

cthin = 0.75 cthinb = 0.75 vtipfine = 1 pbarpos = 0.5

[w-300] stroke = 56 sb = 64 dotsize = 100 periodsize = 115

vtipfine = 0.9 pbarpos = 0.51

[w-400] sb = 60 # Side bearing. stroke = 72 # Stroke width of horizontal strokes. dotsize = 125 # "Visual" size of dots in /i. periodsize = 140 # "Visual" size of period.

[w-500] sb = 57 stroke = 84 dotsize = 135 periodsize = 160 smooth = 200

[w-600] sb = 54 stroke = 97 dotsize = 145 periodsize = 168 essx = 1.07

rbalance = 55 rbalance2 = 20 smooth = 203

[w-700] sb = 50 stroke = 106 dotsize = 157 periodsize = 180 essx = 1.06 essxq = 1.10 jut = 89 vjut = 158

barpos = 0.51 fivebarpos = 0.64 rbalance = 52 rbalance2 = 23 rhook = 95 smooth = 206

[w-800] sb = 45 stroke = 116 dotsize = 167 periodsize = 188 essx = 1.05 essxq = 1.15 jut = 96 vjut = 172

barpos = 0.51 fivebarpos = 0.64 rbalance = 50 rbalance2 = 25 rhook = 97 smooth = 210

[w-900] sb = 42 stroke = 126 dotsize = 180 periodsize = 200 essx = 1.03 essxq = 1.15 jut = 100 vjut = 175

barpos = 0.51 fivebarpos = 0.64 rbalance = 50 rbalance2 = 25 rhook = 105 smooth = 215

Slantness

[s-italic] isItalic = true slantAngle = 10 jhook = 120

[s-oblique] isOblique = true slantAngle = 10 jhook = 120

Slab variant

[slab] slab = true onebalance = 10 overshootx = -16 [slab.multiplies] sb = 1.1

Spacings

[term] spacing = 0 enableLigation = false

Term variant with ligations

[termlig] spacing = 0

[type] inherits = ["xx-type"] spacing = 2

[cc] inherits = ["xx-cc"] spacing = 3

Widths

NOTE: this section is highly experimental

HANDLE WITH EXTREME CARE

Expanded : I heard someone want it being wider...

[wd-extended.multiplies] width = 1.152 # 576mem for normal char sb = 1.375 [extended] inherits = ['wd-extended']

[menu-subfamily-extended] menuWidth = 7

Compressed : And someone else want it being narrower

[wd-condensed.multiplies] width = 0.9 sb = 0.9 [condensed] inherits = ['wd-condensed']

[menu-subfamily-condensed] menuWidth = 3

EXPERIMENTAL EXPERIMENTAL EXPERIMENTAL

Diversity: Having more width variations

[shape-straight-bar] straightBar = 1

[diversity-1] diversityM = 1.25 diversityF = 1.00 diversityI = 0.75 diversityII = 0.75

[diversity-2] diversityM = 1.25 diversityF = 0.75 diversityI = 0.75 diversityII = 0.5

[no-ligation] enableLigation = false [nolig] # For compatibility enableLigation = false

[no-cv-ss] enableCvSs = false

Full-width codes

[xx-type] spacing = 2 [xx-type.appends] fullwidth_codes = [ 8212, #— 8251, #※

8451, #℃

8719, #∏
8720,
8721, #∑
8733, #∝
8734, #∞
8736, #∠
8748, #∫∫
8749, #∫∫∫
8978, #⌒
8896,8897,8898,8899

]

[xx-cc] inherits = ["xx-type"] spacing = 3 [xx-cc.appends] fullwidth_codes = [ 164, #¤ 177, #± 215, #× 247, #÷ 711, #ˇ 713, #ˉ 167, #§ 8741, #∥ 8743, #∧ 8744, #∨ 8745, #∩ 8746, #∪ 8214, #‖ 8242, #′ 8243, #″ 8747, #∫ 8750, #∮ 8764, #∽ 8765, #∽ 8776, #≈ 8780, #≌ 8800, #≠ 8801, #≡ 8804, #≤ 8805, #≥ 8814, #≮ 8815, #≯ 8866, 8867, 8868, 8869, #⊥ 8816,8817,8834,8835,8836,8837, 8853, #⊕ 8854, 8857, #⊙ 8712, #∈ ]

Default ligation set configuration

[ligset-haskell] defLigSet = "XHS0"

[ligset-idris] defLigSet = "XIDR"

[ligset-elm] defLigSet = "XELM"

[ligset-ml] defLigSet = "XML0"

[ligset-fs] defLigSet = "XFS0"

[ligset-fstar] defLigSet = "XFST"

[ligset-swift] defLigSet = "SWFT"

[ligset-purescript] defLigSet = "PURS"

[ligset-coq] defLigSet = "XV00"

[calt-clear] customLigSet = [] [calt-center-ops.appends] customLigSet = ['center-ops'] [calt-arrow.appends] customLigSet = ["arrow"] [calt-trig.appends] customLigSet = ["trig"] [calt-eqeq.appends] customLigSet = ["eqeq"] [calt-ineq.appends] customLigSet = ["ineq"] [calt-exeq.appends] customLigSet = ["exeq"] [calt-slasheq.appends] customLigSet = ["slasheq"] [calt-brst.appends] customLigSet = ["brst"] [calt-plusplus.appends] customLigSet = ["plusplus"] [calt-colons.appends] customLigSet = ["colons"] [calt-logic.appends] customLigSet = ["logic"] [calt-arrow2.appends] customLigSet = ["arrow2"] [calt-llgg.appends] customLigSet = ["llgg"] [calt-dotoper.appends] customLigSet = ["dotoper"] [calt-arrowZALE.appends] customLigSet = ["arrowZALE"] [calt-arrowZAGE.appends] customLigSet = ["arrowZAGE"] [calt-html-comment.appends] customLigSet = ["html-comment"]

Leading

[leading-750] leading = 750 [leading-1000] leading = 1000 [leading-1250] leading = 1250 [leading-1500] leading = 1500 [leading-1750] leading = 1750 [leading-2000] leading = 2000

Win metric pad

[win-metric-pad-0] winMetricPad = 0 [win-metric-pad-50] winMetricPad = 50 [win-metric-pad-100] winMetricPad = 100 [win-metric-pad-150] winMetricPad = 150 [win-metric-pad-200] winMetricPad = 200 [win-metric-pad-250] winMetricPad = 250 [win-metric-pad-300] winMetricPad = 300

Powerline

[powerline-scale-y-750] powerlineScaleY = 0.75 [powerline-scale-y-875] powerlineScaleY = 0.875 [powerline-scale-y-1000] powerlineScaleY = 1 [powerline-scale-y-1125] powerlineScaleY = 1.125 [powerline-scale-y-1250] powerlineScaleY = 1.25 [powerline-scale-y-1375] powerlineScaleY = 1.375 [powerline-scale-y-1500] powerlineScaleY = 1.5 [powerline-scale-x-750] powerlineScaleX = 0.75 [powerline-scale-x-875] powerlineScaleX = 0.875 [powerline-scale-x-1000] powerlineScaleX = 1 [powerline-scale-x-1125] powerlineScaleX = 1.125 [powerline-scale-x-1250] powerlineScaleX = 1.25 [powerline-scale-x-1375] powerlineScaleX = 1.375 [powerline-scale-x-1500] powerlineScaleX = 1.5 [powerline-shift-y-n500] powerlineShiftY = -500 [powerline-shift-y-n450] powerlineShiftY = -450 [powerline-shift-y-n400] powerlineShiftY = -400 [powerline-shift-y-n350] powerlineShiftY = -350 [powerline-shift-y-n300] powerlineShiftY = -300 [powerline-shift-y-n250] powerlineShiftY = -250 [powerline-shift-y-n200] powerlineShiftY = -200 [powerline-shift-y-n150] powerlineShiftY = -150 [powerline-shift-y-n100] powerlineShiftY = -100 [powerline-shift-y-n50] powerlineShiftY = -50 [powerline-shift-y-0] powerlineShiftY = 0 [powerline-shift-y-p50] powerlineShiftY = 50 [powerline-shift-y-p100] powerlineShiftY = 100 [powerline-shift-y-p150] powerlineShiftY = 150 [powerline-shift-y-p200] powerlineShiftY = 200 [powerline-shift-y-p250] powerlineShiftY = 250 [powerline-shift-y-p300] powerlineShiftY = 300 [powerline-shift-y-p350] powerlineShiftY = 350 [powerline-shift-y-p400] powerlineShiftY = 400 [powerline-shift-y-p450] powerlineShiftY = 450 [powerline-shift-y-p500] powerlineShiftY = 500 [powerline-shift-x-n500] powerlineShiftX = -500 [powerline-shift-x-n450] powerlineShiftX = -450 [powerline-shift-x-n400] powerlineShiftX = -400 [powerline-shift-x-n350] powerlineShiftX = -350 [powerline-shift-x-n300] powerlineShiftX = -300 [powerline-shift-x-n250] powerlineShiftX = -250 [powerline-shift-x-n200] powerlineShiftX = -200 [powerline-shift-x-n150] powerlineShiftX = -150 [powerline-shift-x-n100] powerlineShiftX = -100 [powerline-shift-x-n50] powerlineShiftX = -50 [powerline-shift-x-0] powerlineShiftX = 0 [powerline-shift-x-p50] powerlineShiftX = 50 [powerline-shift-x-p100] powerlineShiftX = 100 [powerline-shift-x-p150] powerlineShiftX = 150 [powerline-shift-x-p200] powerlineShiftX = 200 [powerline-shift-x-p250] powerlineShiftX = 250 [powerline-shift-x-p300] powerlineShiftX = 300 [powerline-shift-x-p350] powerlineShiftX = 350 [powerline-shift-x-p400] powerlineShiftX = 400 [powerline-shift-x-p450] powerlineShiftX = 450 [powerline-shift-x-p500] powerlineShiftX = 500

Compatibility PUA ligature sample

[[iosevka.compLig]]

unicode = 57600 # 0xE100

featureTag = 'XV00'

sequence = '<*>'

Exclude code points

[exclude-check-and-cross-symbol.appends] excludedCodePointRanges = [[10003, 10008]]

* The detailed error log:

_When running..._

➜ Iosevka-2.3.3 npm run build -- ttf::iosevka

iosevka@2.3.3 build /Users/aru/Downloads/iosevka/Iosevka-2.3.3 verda -f verdafile.js "ttf::iosevka"

× Error Unhandled exception when building "Builtin::Oracle::raw-plans": [SyntaxError: Expected "#", ",", "\n", "\r", "]" or [ \t] but "c" found.] { message: 'Expected "#", ",", "\n", "\r", "]" or [ \t] but "c" found.', expected: [ { type: 'literal', value: '#', description: '"#"' }, { type: 'literal', value: ',', description: '","' }, { type: 'literal', value: '\n', description: '"\n"' }, { type: 'literal', value: '\r', description: '"\r"' }, { type: 'literal', value: ']', description: '"]"' }, { type: 'class', value: '[ \t]', description: '[ \t]' } ], found: 'c', offset: 496, line: 7, column: 75, name: 'SyntaxError' } Building process terminated. [SyntaxError: Expected "#", ",", "\n", "\r", "]" or [ \t] but "c" found.] { message: 'Expected "#", ",", "\n", "\r", "]" or [ \t] but "c" found.', expected: [ { type: 'literal', value: '#', description: '"#"' }, { type: 'literal', value: ',', description: '","' }, { type: 'literal', value: '\n', description: '"\n"' }, { type: 'literal', value: '\r', description: '"\r"' }, { type: 'literal', value: ']', description: '"]"' }, { type: 'class', value: '[ \t]', description: '[ \t]' } ], found: 'c', offset: 496, line: 7, column: 75, name: 'SyntaxError' } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! iosevka@2.3.3 build: verda -f verdafile.js "ttf::iosevka" npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the iosevka@2.3.3 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/aru/.npm/_logs/2019-11-23T10_59_43_372Z-debug.log


_Actual log..._

0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli '/Users/aru/.nvm/versions/node/v12.13.1/bin/node', 1 verbose cli '/Users/aru/.nvm/versions/node/v12.13.1/bin/npm', 1 verbose cli 'run', 1 verbose cli 'build', 1 verbose cli '--', 1 verbose cli 'ttf::iosevka' 1 verbose cli ] 2 info using npm@6.12.1 3 info using node@v12.13.1 4 verbose run-script [ 'prebuild', 'build', 'postbuild' ] 5 info lifecycle iosevka@2.3.3~prebuild: iosevka@2.3.3 6 info lifecycle iosevka@2.3.3~build: iosevka@2.3.3 7 verbose lifecycle iosevka@2.3.3~build: unsafe-perm in lifecycle true 8 verbose lifecycle iosevka@2.3.3~build: PATH: /Users/aru/.nvm/versions/node/v12.13.1/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/aru/Downloads/iosevka/Iosevka-2.3.3/node_modules/.bin:/Users/aru/.nvm/versions/node/v12.13.1/bin:/Users/aru/opt/google-cloud-sdk/bin:/usr/local/share/npm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public:/Library/TeX/texbin:/usr/local/go/bin:/Users/aru/workspace/go:/Users/aru/workspace/go/bin:/Users/aru/Library/Android/sdk/sources/android-27:/Users/aru/Library/Android/sdk/tools:/Users/aru/Library/Android/sdk/bin:/Users/aru/Library/Android/sdk/platform-tools:/Library/Java/JavaVirtualMachines/jdk1.8.0_171.jdk/Contents/Home:/Users/aru/opt/apache-maven-3.6.0/bin/:/Users/aru/opt/flutter/bin 9 verbose lifecycle iosevka@2.3.3~build: CWD: /Users/aru/Downloads/iosevka/Iosevka-2.3.3 10 silly lifecycle iosevka@2.3.3~build: Args: [ '-c', 'verda -f verdafile.js "ttf::iosevka"' ] 11 silly lifecycle iosevka@2.3.3~build: Returned: code: 1 signal: null 12 info lifecycle iosevka@2.3.3~build: Failed to exec build script 13 verbose stack Error: iosevka@2.3.3 build: verda -f verdafile.js "ttf::iosevka" 13 verbose stack Exit status 1 13 verbose stack at EventEmitter. (/Users/aru/.nvm/versions/node/v12.13.1/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16) 13 verbose stack at EventEmitter.emit (events.js:210:5) 13 verbose stack at ChildProcess. (/Users/aru/.nvm/versions/node/v12.13.1/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:210:5) 13 verbose stack at maybeClose (internal/child_process.js:1021:16) 13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) 14 verbose pkgid iosevka@2.3.3 15 verbose cwd /Users/aru/Downloads/iosevka/Iosevka-2.3.3 16 verbose Darwin 19.0.0 17 verbose argv "/Users/aru/.nvm/versions/node/v12.13.1/bin/node" "/Users/aru/.nvm/versions/node/v12.13.1/bin/npm" "run" "build" "--" "ttf::iosevka" 18 verbose node v12.13.1 19 verbose npm v6.12.1 20 error code ELIFECYCLE 21 error errno 1 22 error iosevka@2.3.3 build: verda -f verdafile.js "ttf::iosevka" 22 error Exit status 1 23 error Failed at the iosevka@2.3.3 build script. 23 error This is probably not a problem with npm. There is likely additional logging output above. 24 verbose exit [ 1, true ]


---

I'm just trying to build a custom Iosevka using the examples provided in the repository, yet I'm unable to build even the default Iosevka. It may be that I've set something wrong, but I can't find anything I missed while reading the instructions again.

Thank you for your hard work!
be5invis commented 5 years ago

Looks like a syntax error in your build-plans.toml or private-build-plans.toml. Paste them please.

arudp commented 5 years ago

Alright, my private-build-plans.toml look like this which, like you said, have a syntax error. I added the closing and opening " to the design section and it fails with the same description.

Private build plans

# Custom Iosevka 

[buildPlans.iosevka-code]            # <iosevka-code> is your plan name
family = "Iosevka Code"              # Font menu family name
design = ["extended, termlig", "cv22", "cv14", "cv25", "cv31", "cv29", "cv17", "cv61", "cv54", "cv49", "cv35", "cv58", "cv45", "cv42", "cv37", "cv21", "cv40"]       # Common styles
upright = ["cv01", "cv03", "cv08", "cv12", "cv52", "cv46", "cv65", "cv51", "cv62"]
italic = ["cv02", "cv04", "cv27", "cv24", "cv53", "cv47", "cv64", "cv50, "cv63""]
oblique = ["cv01", "cv03", "cv08", "cv12", "cv52", "cv46", "cv65", "cv51", "cv62"]

# Override default building weights
# When buildPlans.<plan name>.weights is absent
# All weights would built and mapped to default shape/CSS
[buildPlans.iosevka-code.weights.regular]
shape = 500                            # Weight for glyph shapes
menu  = 500                            # Weight for menu name
css   = 500                            # Weight for WebFont CSS

[buildPlans.iosevka-code.weights.bold]
shape = 800
menu  = 800
css   = 800

# Override default building slant sets
# Format: <upright|italic|oblique> = <"normal"|"italic"|"oblique">
# When this section is absent, all slants would be built.
[buildPlans.iosevka-code.slants]
upright = "normal"
italic = "italic"
oblique = "oblique"

Build plans

# Building plans
# Sans
[buildPlans.iosevka]
family = "Iosevka"

[buildPlans.iosevka-term]
family = "Iosevka Term"
design = ["term"]

[buildPlans.iosevka-type]
family = "Iosevka Type"
design = ["type"]

[buildPlans.iosevka-term-lig]
family = "Iosevka TermLig"
design = ["termlig"]

[buildPlans.iosevka-cc]
family = "IosevkaCC"
design = ["cc"]

# Slab
[buildPlans.iosevka-slab]
family = "Iosevka Slab"
design = ["slab"]

[buildPlans.iosevka-term-slab]
family = "Iosevka Term Slab"
design = ["term", "slab"]

[buildPlans.iosevka-type-slab]
family = "Iosevka Type Slab"
design = ["type", "slab"]

[buildPlans.iosevka-term-lig-slab]
family = "Iosevka TermLig Slab"
design = ["termlig", "slab"]

[buildPlans.iosevka-cc-slab]
family = "IosevkaCC Slab"
design = ["cc", "slab"]

# SSxx
[buildPlans.iosevka-ss01]
family = "Iosevka SS01"
design = ["ss01"]

[buildPlans.iosevka-term-ss01]
family = "Iosevka Term SS01"
design = ["term", "ss01"]

[buildPlans.iosevka-ss02]
family = "Iosevka SS02"
design = ["ss02"]

[buildPlans.iosevka-term-ss02]
family = "Iosevka Term SS02"
design = ["term", "ss02"]

[buildPlans.iosevka-ss03]
family = "Iosevka SS03"
design = ["ss03"]

[buildPlans.iosevka-term-ss03]
family = "Iosevka Term SS03"
design = ["term", "ss03"]

[buildPlans.iosevka-ss04]
family = "Iosevka SS04"
design = ["ss04"]

[buildPlans.iosevka-term-ss04]
family = "Iosevka Term SS04"
design = ["term", "ss04"]

[buildPlans.iosevka-ss05]
family = "Iosevka SS05"
design = ["ss05"]

[buildPlans.iosevka-term-ss05]
family = "Iosevka Term SS05"
design = ["term", "ss05"]

[buildPlans.iosevka-ss06]
family = "Iosevka SS06"
design = ["ss06"]

[buildPlans.iosevka-term-ss06]
family = "Iosevka Term SS06"
design = ["term", "ss06"]

[buildPlans.iosevka-ss07]
family = "Iosevka SS07"
design = ["ss07"]

[buildPlans.iosevka-term-ss07]
family = "Iosevka Term SS07"
design = ["term", "ss07"]

[buildPlans.iosevka-ss08]
family = "Iosevka SS08"
design = ["ss08"]

[buildPlans.iosevka-term-ss08]
family = "Iosevka Term SS08"
design = ["term", "ss08"]

[buildPlans.iosevka-ss09]
family = "Iosevka SS09"
design = ["ss09"]

[buildPlans.iosevka-term-ss09]
family = "Iosevka Term SS09"
design = ["term", "ss09"]

[buildPlans.iosevka-ss10]
family = "Iosevka SS10"
design = ["ss10"]

[buildPlans.iosevka-term-ss10]
family = "Iosevka Term SS10"
design = ["term", "ss10"]

[buildPlans.iosevka-ss11]
family = "Iosevka SS11"
design = ["ss11"]

[buildPlans.iosevka-term-ss11]
family = "Iosevka Term SS11"
design = ["term", "ss11"]

[buildPlans.iosevka-aile]
family  = "Iosevka Aile"
design  = ["type", "shape-straight-bar", "v-at-fourfold", "v-j-narrow", 'v-capital-i-straight', 'v-capital-j-straight', 'v-g-singlestorey', 'v-r-narrow', "no-cv-ss", "no-ligation"]
upright = ["v-i-line", "v-l-line", 'v-f-narrow', 'v-t-narrow']
italic  = ["v-i-line", "v-l-line", 'v-f-narrow', 'v-t-narrow']
oblique = ["v-i-line", "v-l-line", 'v-f-narrow', 'v-t-narrow']

[buildPlans.iosevka-aile.post]
design = ['wd-extended', "diversity-2"]

[buildPlans.iosevka-etoile]
family  = "Iosevka Etoile"
design  = ["type", "slab", "shape-straight-bar", "diversity-1", "v-at-fourfold", 'v-j-serifed', 'no-cv-ss', "no-cv-ss", "no-ligation"]
upright = ['v-i-serifed', 'v-l-serifed']
italic  = ['v-i-italic', 'v-l-italic']
oblique = ['v-i-serifed', 'v-l-serifed']

[buildPlans.iosevka-extended]
family  = "Iosevka"
design  = ["shape-straight-bar"]

[buildPlans.iosevka-extended.post]
design = ['wd-extended', 'menu-subfamily-extended']

[buildPlans.iosevka-slab-extended]
family  = "Iosevka Slab"
design  = ["slab", "shape-straight-bar"]

[buildPlans.iosevka-slab-extended.post]
design = ['wd-extended', 'menu-subfamily-extended']

# Export plans
# This mapping affects the process of creating ZIP archives only
[exportPlans]
01-iosevka = "iosevka"
02-iosevka-term = "iosevka-term"
03-iosevka-type = "iosevka-type"
04-iosevka-cc = "iosevka-cc"
05-iosevka-slab = "iosevka-slab"
06-iosevka-term-slab = "iosevka-term-slab"
07-iosevka-type-slab = "iosevka-type-slab"
08-iosevka-cc-slab = "iosevka-cc-slab"
iosevka-ss01 = "iosevka-ss01"
iosevka-term-ss01 = "iosevka-term-ss01"
iosevka-ss02 = "iosevka-ss02"
iosevka-term-ss02 = "iosevka-term-ss02"
iosevka-ss03 = "iosevka-ss03"
iosevka-term-ss03 = "iosevka-term-ss03"
iosevka-ss04 = "iosevka-ss04"
iosevka-term-ss04 = "iosevka-term-ss04"
iosevka-ss05 = "iosevka-ss05"
iosevka-term-ss05 = "iosevka-term-ss05"
iosevka-ss06 = "iosevka-ss06"
iosevka-term-ss06 = "iosevka-term-ss06"
iosevka-ss07 = "iosevka-ss07"
iosevka-term-ss07 = "iosevka-term-ss07"
iosevka-ss08 = "iosevka-ss08"
iosevka-term-ss08 = "iosevka-term-ss08"
iosevka-ss09 = "iosevka-ss09"
iosevka-term-ss09 = "iosevka-term-ss09"
iosevka-ss10 = "iosevka-ss10"
iosevka-term-ss10 = "iosevka-term-ss10"
iosevka-ss11 = "iosevka-ss11"
iosevka-term-ss11 = "iosevka-term-ss11"
experimental-iosevka-aile = "iosevka-aile"
experimental-iosevka-etoile = "iosevka-etoile"
experimental-iosevka-extended = "iosevka-extended"
experimental-iosevka-slab-extended = "iosevka-slab-extended"

# TTC collection plans
[collectPlans.iosevka]
from = [
    "iosevka",
    "iosevka-term",
    "iosevka-type",
    "iosevka-cc"
]

[collectPlans.iosevka-slab]
from = [
    "iosevka-slab",
    "iosevka-term-slab",
    "iosevka-type-slab",
    "iosevka-cc-slab"
]

# Weight mappings (style => shape weight, CSS weight)
#   Shape weight : affects the shape of the glyphs
#   CSS weight   : affects the font menu name and webfont CSS
[weights.thin]
shape = 100
menu  = 100
css   = 100

[weights.extralight]
shape = 200
menu  = 200
css   = 200

[weights.light]
shape = 300
menu  = 300
css   = 300

[weights.regular]
shape = 400
menu  = 400
css   = 400

[weights.medium]
shape = 500
menu  = 500
css   = 500

[weights.semibold]
shape = 600
menu  = 600
css   = 600

[weights.bold]
shape = 700
menu  = 700
css   = 700

[weights.extrabold]
shape = 800
menu  = 800
css   = 800

[weights.heavy]
shape = 900
menu  = 900
css   = 900

# Slant mappings (style => CSS)
# NOTE: This mapping does NOT affect the font's metadata, only affects
#       the webfont CSS. Change `parameters.toml` instead.
[slants]
upright = "normal"
oblique = "oblique"
italic = "italic"
be5invis commented 5 years ago

When I use toml syntax in GitHub it shows many errors.

# Custom Iosevka 

[buildPlans.iosevka-code]            # <iosevka-code> is your plan name
family = "Iosevka Code"              # Font menu family name
design = ["extended, termlig", "cv22", "cv14", "cv25", "cv31", "cv29", "cv17", "cv61", "cv54", "cv49", "cv35", "cv58", "cv45", "cv42", "cv37", "cv21", "cv40"]       # Common styles
upright = ["cv01", "cv03", "cv08", "cv12", "cv52", "cv46", "cv65", "cv51", "cv62"]
italic = ["cv02", "cv04", "cv27", "cv24", "cv53", "cv47", "cv64", "cv50, "cv63""]
oblique = ["cv01", "cv03", "cv08", "cv12", "cv52", "cv46", "cv65", "cv51", "cv62"]

# Override default building weights
# When buildPlans.<plan name>.weights is absent
# All weights would built and mapped to default shape/CSS
[buildPlans.iosevka-code.weights.regular]
shape = 500                            # Weight for glyph shapes
menu  = 500                            # Weight for menu name
css   = 500                            # Weight for WebFont CSS

[buildPlans.iosevka-code.weights.bold]
shape = 800
menu  = 800
css   = 800

# Override default building slant sets
# Format: <upright|italic|oblique> = <"normal"|"italic"|"oblique">
# When this section is absent, all slants would be built.
[buildPlans.iosevka-code.slants]
upright = "normal"
italic = "italic"
oblique = "oblique"

Correct one should be this:

# Custom Iosevka 

[buildPlans.iosevka-code]            # <iosevka-code> is your plan name
family = "Iosevka Code"              # Font menu family name
design = ["extended", "termlig", "cv22", "cv14", "cv25", "cv31", "cv29", "cv17", "cv61", "cv54", "cv49", "cv35", "cv58", "cv45", "cv42", "cv37", "cv21", "cv40"]       # Common styles
upright = ["cv01", "cv03", "cv08", "cv12", "cv52", "cv46", "cv65", "cv51", "cv62"]
italic = ["cv02", "cv04", "cv27", "cv24", "cv53", "cv47", "cv64", "cv50", "cv63"]
oblique = ["cv01", "cv03", "cv08", "cv12", "cv52", "cv46", "cv65", "cv51", "cv62"]

# Override default building weights
# When buildPlans.<plan name>.weights is absent
# All weights would built and mapped to default shape/CSS
[buildPlans.iosevka-code.weights.regular]
shape = 500                            # Weight for glyph shapes
menu  = 400                            # Weight for menu name
css   = 400                            # Weight for WebFont CSS

[buildPlans.iosevka-code.weights.bold]
shape = 800
menu  = 700
css   = 700

# Override default building slant sets
# Format: <upright|italic|oblique> = <"normal"|"italic"|"oblique">
# When this section is absent, all slants would be built.
[buildPlans.iosevka-code.slants]
upright = "normal"
italic = "italic"
oblique = "oblique"

I suspect that you want to change the shape of glyphs while keeping the font's menu name, so in the buildPlans.<family>.weights.<weight> section, change the numbers for shape item only.

arudp commented 5 years ago

Thank you very much! I opened it in VSCode and while it said it was on toml format it didn't highlight anything. It worked perfectly, thanks!!