diff options
author | Rasmus Andersson <rasmus@notion.se> | 2023-06-04 22:34:21 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@notion.se> | 2023-06-04 22:34:21 +0300 |
commit | 7c6ad9f1b9b77b52b4b8dd25c921dab4fca4f819 (patch) | |
tree | 0a6f2426c3ba531fb136a033739cf4155c82f0c0 | |
parent | 48f11a2f15bac1db033ed1008827fa5905071c8d (diff) | |
download | inter-7c6ad9f1b9b77b52b4b8dd25c921dab4fca4f819.tar.xz |
use "Italic" suffix for variable styles in STAT table, re #577
-rw-r--r-- | misc/tools/bake-vf.py | 24 |
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. |