Skip to content

Commit

Permalink
Merge pull request #774 from googlefonts/fix-pref-names
Browse files Browse the repository at this point in the history
keep or drop nameID=16 and 17 only when *both* == 1 and 2
  • Loading branch information
anthrotype authored Aug 4, 2023
2 parents d1c5ad4 + e931d18 commit b3895a9
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 b3895a9

Please sign in to comment.