Skip to content

Commit

Permalink
Start overriding for italic, with seven
Browse files Browse the repository at this point in the history
  • Loading branch information
AndydeCleyre committed Dec 25, 2023
1 parent 8f1c057 commit 9d9edf9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 5 additions & 4 deletions templates/private-build-plans.toml.wz
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
@require(charvars, spacings, custom_weights, use_custom_weights, contextual_widths)
@#
@require(charvars, italic_overrides, spacings, custom_weights, use_custom_weights, contextual_widths)
@(
contextual_widths = str(contextual_widths).lower()
)\
Expand All @@ -21,7 +20,6 @@
plan = f"Iosevka{spacing.title()}Custom"
family = f"Iosevka {spacing.title()} Custom"
)\
@#
[buildPlans.@{plan}]
family = "@family"
exportGlyphNames = false
Expand All @@ -43,7 +41,10 @@ inherits = "dlig"

# Override above variants for each slope:
# [buildPlans.@{plan}.variants.upright]
# [buildPlans.@{plan}.variants.italic]
[buildPlans.@{plan}.variants.italic]
@for char, style in italic_overrides.items():
@char = "@style"
@end

@if use_custom_weights:
@for name, weight in custom_weights.items():
Expand Down
2 changes: 2 additions & 0 deletions vars.nt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ custom_weights:
Bold:
default: 700
override: 800
italic_overrides:
seven: curly-serifless-crossbar
charvars:
digit-form: old-style
apl-form: enable
Expand Down

0 comments on commit 9d9edf9

Please sign in to comment.