mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-09-19 09:51:48 +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:
parent
8d488805dd
commit
83a3549611
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue