1
1
mirror of https://github.com/rsms/inter.git synced 2024-08-15 13:50:55 +03:00

fix style linking of ital axis

This commit is contained in:
Rasmus Andersson 2023-11-19 09:49:56 -08:00
parent e718f73fde
commit a3b96751a4

View File

@ -80,9 +80,10 @@ def stat_axes_format_3(is_italic):
dict(name="ExtraBold", value=800 ),
dict(name="Black", value=900 ),
]),
# Note: OK to have two 'linkedValue's here since we make two separate VFs
dict(name="Italic", tag="ital", values=[
dict(value=1, name="Italic") if is_italic else \
dict(value=0, name="Roman", flags=FLAG_DEFAULT),
dict(value=1, name="Italic", linkedValue=0) if is_italic else \
dict(value=0, name="Roman", linkedValue=1, flags=FLAG_DEFAULT),
]),
]