1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2025-01-25 03:32:02 +02:00

Improved windows naming a bit

This commit is contained in:
Marcus Kellerman 2016-10-14 23:37:45 -07:00
parent bcfd8c1f5a
commit 7e043d633a

View File

@ -134,15 +134,14 @@ if subFamily == "Regular":
subFamily = fallbackStyle
if args.windows:
maxLength = 31 - len('-'+subFamily)
maxFamilyLength = 31
maxFontLength = maxFamilyLength-len('-' + subFamily)
familyname += " " + projectNameAbbreviation
fullname += " Windows Compatible"
# now make sure less than 32 characters name length
#if len(fullname) > maxLength:
# fullname = fullname[:maxLength]
if len(fontname) > maxLength:
if len(fontname) > maxFontLength:
fontname = fontname[:maxLength]
if len(fullname) > maxLength:
if len(familyname) > maxFamilyLength:
familyname = familyname[:maxLength]
else:
familyname += " " + projectNameSingular