Skip to content

Commit

Permalink
fix gasp and sub family name
Browse files Browse the repository at this point in the history
  • Loading branch information
ryota2357 committed Jun 17, 2023
1 parent 11fa105 commit 98ec492
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ def new_font():
font.fontname = P.FAMILY + "-" + FONT_STYLE
font.fullname = P.FAMILY + " " + FONT_STYLE
font.version = P.VERSION
font.appendSFNTName('English (US)', 'SubFamily', FONT_STYLE)
font.appendSFNTName(
"English (US)",
"SubFamily",
"".join([" " + c if c.isupper() else c for c in FONT_STYLE]).lstrip()
)
font.appendSFNTName(
"English (US)",
"UniqueID",
Expand All @@ -114,6 +118,12 @@ def new_font():
),
)

font.gasp_version = 1
font.gasp = (
(65535,
('gridfit', 'antialias', 'symmetric-smoothing', 'gridfit+smoothing')),
)

font.weight = style_prop["weight"]
font.os2_weight = style_prop["os2_weight"]
font.os2_width = 5 # Medium (100%)
Expand Down

0 comments on commit 98ec492

Please # to comment.