Skip to content

Commit

Permalink
query_names: Unify field widths
Browse files Browse the repository at this point in the history
[why]
For some fonts with long names the fields are not long enough and for
example a 'Mono' can not be seen.

[how]
Use same field widths as `name_parser_test2`.

Signed-off-by: Fini Jastrow <[email protected]>
  • Loading branch information
Finii committed Sep 4, 2022
1 parent 110d198 commit cb6ff0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/scripts/name_parser/query_names
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def get_sfnt_dict(font):

def format_names(header, *stuff):
"""Unify outputs (with header)"""
f = '{:1.1}|{:50.50} |{:1.1}| {:50.50} |{:1.1}| {:30.30} |{:1.1}| {:30.30} |{:1.1}| {:30.30} |{:1.1}| {:.30}'
f = '{:1.1}|{:50.50} |{:1.1}| {:65.65} |{:1.1}| {:55.55} |{:1.1}| {:30.30} |{:1.1}| {:40.40} |{:1.1}| {:.40}'
if header:
d = '------------------------------------------------------------'
return f.format(*stuff) + '\n' + f.format('', d, d, d, d, d, d, d, d, d, d, d)
Expand Down

0 comments on commit cb6ff0f

Please sign in to comment.