use face_name

theoretically enables loading faces of the same font from different
files.
needs to be tested
This commit is contained in:
themancalledjakob 2024-08-08 11:24:15 +02:00
parent 5c4ee030d3
commit 327b4161bc

View file

@ -424,13 +424,14 @@ def load_font_from_filepath(filepath):
found = False
for f in font3d_data.available_fonts.values():
if f.font_name == font_name:
if f.font_name == font_name and f.face_name == face_name:
found = True
break
if not found:
f = font3d_data.available_fonts.add()
f.font_name = font_name
print(f"{__name__} added {font_name}")
f.face_name = face_name
print(f"{__name__} added {font_name} {face_name}")
else:
remove_list.append(o)
for o in remove_list: