This commit is contained in:
themancalledjakob 2024-08-28 18:07:17 +02:00
parent 460bbc8574
commit 65710b05ee

View file

@ -1426,6 +1426,18 @@ def load_used_glyphs():
a = Font.test_availability(t.font_name,
t.face_name,
t.text)
if type(a) == type(int()):
if a == Font.MISSING_FONT:
butils.ShowMessageBox("Missing Font",
"ERROR",
[f"Font {t.font_name} is missing.",
"Do you have it installed?"])
if a is Font.MISSING_FACE:
butils.ShowMessageBox("Missing FontFace",
"ERROR",
[f"Font {t.font_name} is there,",
f"but the FontFace {t.face_name} is missing,",
"Do you have it installed?"])
if len(a["maybe"]) > 0:
for fp in a["filepaths"]:
butils.load_font_from_filepath(fp, a["maybe"])