diff --git a/font-patcher b/font-patcher index aa25fcd0b..f4504e851 100755 --- a/font-patcher +++ b/font-patcher @@ -293,6 +293,11 @@ class font_patcher: # some fonts have inaccurate 'SubFamily', if it is Regular let us trust the filename more: if subFamily == "Regular": subFamily = fallbackStyle + + # This is meant to cover the case where the SubFmaily is "Italic" and the filename is *-BoldItalic. + if len(subFamily) < len(fallbackStyle): + subFamily = fallbackStyle + if self.args.windows: maxFamilyLength = 31 maxFontLength = maxFamilyLength - len('-' + subFamily)