warn
This commit is contained in:
parent
460bbc8574
commit
65710b05ee
1 changed files with 12 additions and 0 deletions
12
__init__.py
12
__init__.py
|
@ -1426,6 +1426,18 @@ def load_used_glyphs():
|
||||||
a = Font.test_availability(t.font_name,
|
a = Font.test_availability(t.font_name,
|
||||||
t.face_name,
|
t.face_name,
|
||||||
t.text)
|
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:
|
if len(a["maybe"]) > 0:
|
||||||
for fp in a["filepaths"]:
|
for fp in a["filepaths"]:
|
||||||
butils.load_font_from_filepath(fp, a["maybe"])
|
butils.load_font_from_filepath(fp, a["maybe"])
|
||||||
|
|
Loading…
Reference in a new issue