Skip test o older freetype

This commit is contained in:
Kovid Goyal 2024-05-16 11:22:18 +05:30
parent 67d535a5db
commit 5d725c4883
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C

View file

@ -32,6 +32,9 @@ def s(family: str, *expected: str) -> None:
ff = get_font_files(opts)
actual = tuple(face_from_descriptor(ff[x]).postscript_name() for x in ('medium', 'bold', 'italic', 'bi')) # type: ignore
del ff
for x in actual:
if '/' in x: # Old FreeType failed to generate postscript name for a variable font probably
return
with self.subTest(spec=family):
self.ae(expected, actual)