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:
parent
bcfd8c1f5a
commit
7e043d633a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user