mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-19 03:12:07 +02:00
Fix CodeClimate Fix
[why] When we add a dummy we need to remove that later on. Originally that has been introduces to avoid a wrong code duplication warning. See how the blank leaks into the name: ERROR: ====-< Family (ID 1) too long (38 > 31): ZedMono Nerd Font Extended ExtraBold DEBUG: =====> SubFamily (ID 2) ok ( 6 <=31): Italic DEBUG: =====> Fullname (ID 4) ok (45 <=63): ZedMono Nerd Font Extended ExtraBold Italic DEBUG: =====> PSN (ID 6) ok (33 <=63): ZedMonoNF-ExtendedExtraBoldItalic DEBUG: =====> PrefFamily (ID 16) ok (17 <=31): ZedMono Nerd Font DEBUG: =====> PrefStyles (ID 17) ok (27 <=31): Extended ExtraBold Italic DEBUG: =====> PrefStyles (ID 17) ok (27 <=31): Extended ExtraBold Italic DEBUG: =====> Filename 'ZedMonoNerdFont-ExtendedExtraBoldItalic.ttf' (Note trailing blanks even in ID 1.) Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
cb6c1c6c64
commit
f2862d4475
@ -251,7 +251,7 @@ class FontnameTools:
|
||||
'Heavy': ('Hv', 'Heavy'),
|
||||
'Thin': ('Th', 'Thin'),
|
||||
'Light': ('Lt', 'Light'),
|
||||
' ': (), # Just for CodeClimate :-/
|
||||
'': (), # Just for CodeClimate :-/
|
||||
}
|
||||
known_styles = [ # Keywords that end up as style (i.e. a RIBBI set)
|
||||
'Bold', 'Italic', 'Regular', 'Normal'
|
||||
|
Loading…
x
Reference in New Issue
Block a user