Skip to content

Commit

Permalink
keep or drop nameID=16 and 17 only when *both* == 1 and 2
Browse files Browse the repository at this point in the history
Fixes #744
  • Loading branch information
anthrotype committed Aug 4, 2023
1 parent d1c5ad4 commit e931d18
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Lib/ufo2ft/outlineCompiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,9 @@ def setupTable_name(self):
22: getAttrWithFallback(font.info, "openTypeNameWWSSubfamilyName"),
}

# don't add typographic names if they are the same as the legacy ones
if nameVals[1] == nameVals[16]:
# don't add typographic names if *both* are the same as the legacy ones
if nameVals[1] == nameVals[16] and nameVals[2] == nameVals[17]:
del nameVals[16]
if nameVals[2] == nameVals[17]:
del nameVals[17]
# postscript font name
if nameVals[6]:
Expand Down

0 comments on commit e931d18

Please sign in to comment.