mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-19 03:12:07 +02:00
name-parser: Shorten 'Oblique' to 'Obl'
[why] In a lot fonts when Oblique is moved to the base part of the name the family gets too long. Since the base part is never shortened it will stay there and make some fonts will end up with too ong bas families: DejaVuSansMonoOblique IosevkaTermOblique OpenDyslexicOblique ProggyCleanOblique [how] If the name is shortened, take the short form of oblique and add that to the base name. Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
22e7056a35
commit
909a54ab5a
@ -47,7 +47,8 @@ class FontnameParser:
|
||||
if not self.use_short_families[0]:
|
||||
return (self.basename, self.rest)
|
||||
else:
|
||||
return (FontnameTools.concat(self.basename, self.rest).replace(' ', ''), '')
|
||||
rest = self.rest.replace('Oblique', 'Obl')
|
||||
return (FontnameTools.concat(self.basename, rest).replace(' ', ''), '')
|
||||
|
||||
def set_keep_regular_in_family(self, keep):
|
||||
"""Familyname may contain 'Regular' where it should normally be suppressed"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user