This commit is contained in:
Kovid Goyal 2026-03-13 08:23:39 +05:30
commit 5585b773bf
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -949,7 +949,7 @@ def add_builtin_fonts(args: Options) -> None:
break
else:
lines = subprocess.check_output([
'fc-match', '--format', '%{file}\n%{postscriptname}', f'term:postscriptname={psname}', 'file', 'postscriptname']).decode().splitlines()
'fc-list', '--format', '%{file}\n%{postscriptname}', f':postscriptname={psname}']).decode().splitlines()
if len(lines) != 2:
raise SystemExit(f'fc-match returned unexpected output: {lines}')
if lines[1] != psname: