Use NameID enum

This commit is contained in:
Nikolaus Waxweiler 2022-07-06 10:40:27 +01:00
parent 87bf2a866d
commit 2cd4f7e688

View File

@ -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