From 83a3549611acd0b0a1defc20f4eef69c9f4f5acf Mon Sep 17 00:00:00 2001 From: Ryan L McIntyre Date: Sat, 8 Apr 2017 13:45:11 -0400 Subject: [PATCH] Fixes issue with from sfnt_names (fixes #126) * fixes order of indexes being transposed * fonts need to be re-built --- font-patcher | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/font-patcher b/font-patcher index c94b02941..5652fd595 100755 --- a/font-patcher +++ b/font-patcher @@ -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