use face_name
theoretically enables loading faces of the same font from different files. needs to be tested
This commit is contained in:
parent
5c4ee030d3
commit
327b4161bc
1 changed files with 3 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue