Use NameID enum
This commit is contained in:
parent
87bf2a866d
commit
2cd4f7e688
@ -1283,7 +1283,7 @@ def setRibbiBits(font):
|
||||
"""Set the `head.macStyle` and `OS/2.fsSelection` style bits
|
||||
appropriately."""
|
||||
|
||||
english_ribbi_style = font["name"].getName(2, 3, 1, 0x409)
|
||||
english_ribbi_style = font["name"].getName(names.NameID.SUBFAMILY_NAME, 3, 1, 0x409)
|
||||
if english_ribbi_style is None:
|
||||
return
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user