Skip to content

Commit

Permalink
Enable semi-extended, and make it easier to build custom widths
Browse files Browse the repository at this point in the history
  • Loading branch information
AndydeCleyre committed May 14, 2024
1 parent 56b2f37 commit 5440285
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 2 deletions.
49 changes: 48 additions & 1 deletion templates/private-build-plans.toml.wz
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@require(charvars, italic_overrides, spacings, custom_weights, use_custom_weights, contextual_widths)
@require(charvars, italic_overrides, spacings, custom_weights, use_custom_weights, contextual_widths, extra_widths)
@(
contextual_widths = str(contextual_widths).lower()
)\
Expand Down Expand Up @@ -31,6 +31,53 @@ inherits = "dlig"
# disables = []
# enables = []

[buildPlans.@{plan}.widths.Normal]
shape = 500
menu = 5
css = "normal"

@if 'condensed' in extra_widths:
[buildPlans.@{plan}.widths.Condensed]
shape = 416
menu = 3
css = "condensed"

@end
@if 'semi-condensed' in extra_widths:
[buildPlans.@{plan}.widths.SemiCondensed]
shape = 456
menu = 4
css = "semi-condensed"

@end
@if 'semi-extended' in extra_widths:
[buildPlans.@{plan}.widths.SemiExtended]
shape = 548
menu = 6
css = "semi-expanded"

@end
@if 'extended' in extra_widths:
[buildPlans.@{plan}.widths.Extended]
shape = 600
menu = 7
css = "expanded"

@end
@if 'extra-extended' in extra_widths:
[buildPlans.@{plan}.widths.ExtraExtended]
shape = 658
menu = 8
css = "extra-expanded"

@end
@if 'ultra-extended' in extra_widths:
[buildPlans.@{plan}.widths.UltraExtended]
shape = 720
menu = 9
css = "ultra-expanded"

@end
# [buildPlans.@{plan}.variants]
# inherits = "ss16"

Expand Down
10 changes: 9 additions & 1 deletion vars.nt
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
build:
# Uncomment the ones you wish to build
# Uncomment the ones you wish to build:
- ttf-iosevka-custom-git
- ttf-iosevka-term-custom-git
- ttf-iosevka-quasi-proportional-custom-git
# - ttf-iosevka-git
# - ttf-iosevka-fixed-custom-git
# - ttf-iosevka-fontconfig-mono-custom-git
# - ttf-iosevka-quasi-proportional-extension-only-custom-git
extra_widths:
# Uncomment the ones you wish to build:
# - condensed
# - semi-condensed
- semi-extended
- extended
# - extra-extended
# - ultra-extended
spacings:
# No need to change this list
- normal
Expand Down

0 comments on commit 5440285

Please sign in to comment.