mirror of
https://github.com/pklaus/brother_ql_web.git
synced 2024-05-25 11:56:53 +03:00
fix: get_fonts() returns incorrect paths (if folder= supplied)
This commit is contained in:
parent
5f1447dee0
commit
b1af3e8810
|
@ -11,7 +11,7 @@ def get_fonts(folder=None):
|
|||
"""
|
||||
fonts = {}
|
||||
if folder:
|
||||
cmd = ['fc-scan', '--format', '"%{file}:%{family}:style=%{style}\n"', folder]
|
||||
cmd = ['fc-scan', '--format', '%{file}:%{family}:style=%{style}\n', folder]
|
||||
else:
|
||||
cmd = ['fc-list', ':', 'file', 'family', 'style']
|
||||
for line in subprocess.check_output(cmd).decode('utf-8').split("\n"):
|
||||
|
|
Loading…
Reference in New Issue
Block a user