Skip to content

Commit b46896e

Browse files
committed
Merge commit '3db2ff673bb85c8ecee55f9e38ce601e8bc2e2f4' into YEXT-pull
2 parents a3a262a + 3db2ff6 commit b46896e

File tree

4 files changed

+24
-149
lines changed

4 files changed

+24
-149
lines changed

axisregistry/CHANGELOG.md

Lines changed: 0 additions & 146 deletions
This file was deleted.

axisregistry/Lib/axisregistry/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ def build_fvar_instances(ttFont, axis_dflts={}):
411411

412412
def gen_instances(is_italic):
413413
results = []
414+
family_name = name_table.getBestFamilyName()
414415
for fallback in wght_fallbacks:
415416
name = fallback.name if not is_italic else f"{fallback.name} Italic".strip()
416417
name = name.replace("Regular Italic", "Italic")
@@ -426,6 +427,9 @@ def gen_instances(is_italic):
426427

427428
inst = NamedInstance()
428429
inst.subfamilyNameID = name_table.addName(name)
430+
inst.postscriptNameID = name_table.addName(
431+
f"{family_name}-{name}".replace(" ", "")
432+
)
429433
inst.coordinates = coordinates
430434
log.debug(f"Adding fvar instance: {name}: {coordinates}")
431435
results.append(inst)

axisregistry/Lib/axisregistry/data/slant.textproto

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ fallback {
1212
fallback_only: false
1313
illustration_url: "slant.svg"
1414
description:
15-
"Adjust the style from upright to slanted, also known to typographers"
16-
" as an 'oblique' style. Rarely, slant can work in the other direction,"
17-
" called a 'backslanted' or 'reverse oblique' style."
15+
"Adjust the style from upright to slanted. Negative values produce"
16+
" right-leaning forms, also known to typographers as an 'oblique' style."
17+
" Positive values produce left-leaning forms, also called a 'backslanted'"
18+
" or 'reverse oblique' style."
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# YEXT based on https://github.com/TypeTogether/Playwrite
2+
tag: "YEXT"
3+
display_name: "Vertical Extension"
4+
min_value: 0
5+
default_value: 0
6+
max_value: 100
7+
precision: 0
8+
fallback {
9+
name: "Default"
10+
value: 0
11+
}
12+
fallback_only: false
13+
description: "The axis extends glyphs in the Y dimension, such as the "
14+
"Cap Height, Ascender and Descender lengths. This is a relative axis, "
15+
"starting at 0% and going to the typeface's individual maximum "
16+
"extent at 100%."

0 commit comments

Comments
 (0)