1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2025-03-03 14:36:18 +02:00

Merge branch 'jrolfs-consolidate-styles' into 0.7.0

This commit is contained in:
ryanoasis 2016-03-19 13:54:51 -04:00
commit 73dc2aaf98

View File

@ -100,7 +100,7 @@ fontname, fallbackStyle = re.match("^([^-]*).*?([^-]*(?!.*-))$", sourceFont.font
familyname = fontname
# fullname (filename) can always use long/verbose font name, even in windows
fullname = sourceFont.fullname + verboseAdditionalFontNameSuffix
fontname = fontname + additionalFontNameSuffix.replace(" ", "")
fontname = fontname + additionalFontNameSuffix.replace(" ", "") + "-" + style
# let us try to get the 'style' from the font info in sfnt_names and fallback to the
# parse fontname if it fails: