elenapan / dotfiles

There is no place like ~/
GNU General Public License v2.0
3.48k stars 178 forks source link

Build configuration for Iosevka Font #159

Closed bar0meter closed 2 years ago

bar0meter commented 2 years ago

I like the Custom Iosevka font. But wanted to make couple of changes to it. If possible can I get the private-build-plans.toml config, which was used for building the fonts ?

elenapan commented 2 years ago

Hi there,

I built the font a long time ago and the format used for building it has probably changed. Hopefully you can convert it to the new format using my old configuration file:

# Custom Iosevka build
[buildPlans.myosevka]     # <myosevka> is your plan name
family = "Iosevka Custom" # Font menu family name
design = [
    "sans",
    "expanded",
    "leading-1250",
    "term",
    "v-l-hooky",
    "v-a-singlestorey",
    "v-i-italic",
    "v-j-serifed",
    "v-f-straight",
    "v-g-singlestorey",
    "v-m-longleg",
    "v-t-standard",
    "v-q-straight",
    "v-y-straight",
    "v-zero-slashed",
    "v-one-serifed",
    "v-three-flattop",
    "v-tilde-low",
    "v-asterisk-low",
    "v-percent-dots",
    "v-at-long",
    "v-brace-curly",
    "v-dollar-open",
    "v-numbersign-slanted"
] # Customize styles
italic = [
    "sans",
    "leading-1250",
    "term",
    "v-l-hooky",
    "v-a-singlestorey",
    "v-i-italic",
    "v-j-serifed",
    "v-f-straight",
    "v-g-singlestorey",
    "v-m-longleg",
    "v-t-standard",
    "v-q-straight",
    "v-y-straight",
    "v-zero-slashed",
    "v-one-serifed",
    "v-three-flattop",
    "v-tilde-low",
    "v-asterisk-low",
    "v-percent-dots",
    "v-at-long",
    "v-brace-curly",
    "v-dollar-open"
] # Customize styles

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

[buildPlans.myosevka.weights.bold]
shape = 700
menu  = 700
css   = 700
# end weight section

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