mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-31 12:27:22 +02:00
name_parser: Do remove non-US SFNT entries
[why] Albeight documented in the comment not all non English-US entries are removed but just al TO_DEL ones. [how] Put the conditional in the right position. Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
926d741137
commit
a5abd847e5
@ -339,9 +339,9 @@ class FontnameParser:
|
||||
# back, but only as 'English (US)'. This makes sure we do not leave contradicting
|
||||
# names over different languages.
|
||||
for l, k, v in list(font.sfnt_names):
|
||||
if not k in TO_DEL:
|
||||
if not k in TO_DEL and l == 'English (US)':
|
||||
sfnt_list += [( l, k, v )]
|
||||
if k == 'Version' and l == 'English (US)':
|
||||
if k == 'Version':
|
||||
version_tag = ' ' + v.split()[-1]
|
||||
|
||||
sfnt_list += [( 'English (US)', 'Family', self.checklen(31, 'Family (ID 1)', self.family()) )] # 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user