1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2024-12-25 20:18:01 +02:00

Fixes issue with from sfnt_names (fixes #126)

* fixes order of indexes being transposed
* fonts need to be re-built
This commit is contained in:
Ryan L McIntyre 2017-04-08 13:45:11 -04:00
parent 8d488805dd
commit 83a3549611

View File

@ -148,7 +148,7 @@ try:
# String ID is at the second index in the Tuple lists
sfntNamesStringIDIndex = 2
# now we have the correct item:
subFamily = sourceFont.sfnt_names[sfntNamesStringIDIndex][subFamilyTupleIndex]
subFamily = sourceFont.sfnt_names[subFamilyTupleIndex][sfntNamesStringIDIndex]
except IndexError:
print projectName + ": Could not find 'SubFamily' for given font, falling back to parsed fontname"
subFamily = fallbackStyle