summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@notion.se>2023-06-04 22:34:21 +0300
committerRasmus Andersson <rasmus@notion.se>2023-06-04 22:34:21 +0300
commit7c6ad9f1b9b77b52b4b8dd25c921dab4fca4f819 (patch)
tree0a6f2426c3ba531fb136a033739cf4155c82f0c0 /misc
parent48f11a2f15bac1db033ed1008827fa5905071c8d (diff)
downloadinter-7c6ad9f1b9b77b52b4b8dd25c921dab4fca4f819.tar.xz
use "Italic" suffix for variable styles in STAT table, re #577
Diffstat (limited to 'misc')
-rw-r--r--misc/tools/bake-vf.py24
1 files changed, 13 insertions, 11 deletions
diff --git a/misc/tools/bake-vf.py b/misc/tools/bake-vf.py
index dab74a5d8..580714b41 100644
--- a/misc/tools/bake-vf.py
+++ b/misc/tools/bake-vf.py
@@ -32,19 +32,21 @@ STAT_AXES = [
]
-def stat_locations(ital):
+def stat_locations(is_italic):
+ ital = 1 if is_italic else 0
+ suffix = " Italic" if is_italic else ""
return [
- { "name": "Thin", "location": { "wght": 100, "ital": ital } },
- { "name": "ExtraLight", "location": { "wght": 200, "ital": ital } },
- { "name": "Light", "location": { "wght": 300, "ital": ital } },
- { "name": "Regular", "location": { "wght": 400, "ital": ital }, "flags": 0x2 },
- { "name": "Medium", "location": { "wght": 500, "ital": ital } },
- { "name": "SemiBold", "location": { "wght": 600, "ital": ital } },
- { "name": "Bold", "location": { "wght": 700, "ital": ital } },
- { "name": "Heavy", "location": { "wght": 800, "ital": ital } },
- { "name": "Black", "location": { "wght": 900, "ital": ital } },
+ { "name": "Thin"+suffix, "location":{"wght":100, "ital":ital} },
+ { "name": "ExtraLight"+suffix, "location":{"wght":200, "ital":ital} },
+ { "name": "Light"+suffix, "location":{"wght":300, "ital":ital} },
+ { "name": "Regular"+suffix, "location":{"wght":400, "ital":ital}, "flags":0x2 },
+ { "name": "Medium"+suffix, "location":{"wght":500, "ital":ital} },
+ { "name": "SemiBold"+suffix, "location":{"wght":600, "ital":ital} },
+ { "name": "Bold"+suffix, "location":{"wght":700, "ital":ital} },
+ { "name": "Heavy"+suffix, "location":{"wght":800, "ital":ital} },
+ { "name": "Black"+suffix, "location":{"wght":900, "ital":ital} },
]
- # "flags": 0x2
+ # "flags":0x2
# Indicates that the axis value represents the “normal” value
# for the axis and may be omitted when composing name strings.