revamp installing fonts

This commit is contained in:
jrkb 2024-08-21 16:06:00 +02:00
parent 5e881ad864
commit 28e664cd6c
3 changed files with 53 additions and 10 deletions

View file

@ -25,7 +25,7 @@ def get_font_faces_in_file(filepath):
for node in gltf_importer.data.nodes:
if type(node.extras) != type(None) \
and "glyph" in node.extras \
and not ("type" in node.extras and node.extras["type"] is "metrics"):
and not ("type" in node.extras and node.extras["type"] == "metrics"):
out.append(node.extras)
return out