font path adventures with Mac OS

This commit is contained in:
jrkb 2024-08-23 16:32:40 +02:00
parent edb2c8cb8b
commit 3631ac8e49
2 changed files with 71 additions and 89 deletions

View file

@ -416,7 +416,7 @@ def register_font_from_filepath(filepath):
def load_font_from_filepath(filepath, glyphs="", font_name="", face_name=""):
if not filepath.endswith(".glb") and not filepath.endswith(".gltf"):
ShowMessageBox(f"{bl_info['name']} Font loading error", 'ERROR', f"Filepath({filepath}) is not a *.glb or *.gltf file")
ShowMessageBox(f"Font loading error", 'ERROR', f"Filepath({filepath}) is not a *.glb or *.gltf file")
return False
marker_property = "font_import"