mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2025-01-25 03:32:02 +02:00
query_names: Only consider basic language
[why] We have now fonts where names for multiple languages are set (differently) but we need to compare only the base language which is English US. Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
51c917212c
commit
c1161d4762
@ -12,7 +12,7 @@ import fontforge
|
||||
|
||||
def get_sfnt_dict(font):
|
||||
"""Extract SFNT table as nice dict"""
|
||||
return { k: v for l, k, v in font.sfnt_names }
|
||||
return { k: v for l, k, v in font.sfnt_names if l == 'English (US)' }
|
||||
|
||||
def format_names(header, *stuff):
|
||||
"""Unify outputs (with header)"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user