mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-25 03:32:02 +02:00
name-parser: Prevent wrong modifier detection
[why] Modifier on their own are not allowed (except "Demi"). The previous commit where we changed the CodeClimate fix from ' ' to '' allowed any modifier to be a stand alone detected word. This resulted in this font name: RecMonoCasual Nerd Font Propo Semi [how] Remove the cumbesome CodeClimate kludge completely, it just makes the code more complex without any real benefit. Codeclimate just complains because our tables look so "similar" :rolleyes: That's data dude! Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
9bf159f414
commit
e1f7f4b59c
@ -252,7 +252,6 @@ class FontnameTools:
|
||||
'Thin': ('Th', 'Thin'),
|
||||
'Thick': ('Tk', 'Thck'),
|
||||
'Light': ('Lt', 'Light'),
|
||||
'': (), # 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