fonts: exit if not a single font was found

This commit is contained in:
Philipp Klaus 2018-01-15 13:16:48 +01:00
parent d1286f014e
commit 7227a72112

View File

@ -250,6 +250,9 @@ def main():
FONTS = get_fonts()
if args.font_folder:
FONTS.update(get_fonts(args.font_folder))
if not FONTS:
sys.stderr.write("Not a single font was found on your system. Please install some or use the \"--font-folder\" argument.\n")
sys.exit(2)
for font in DEFAULT_FONTS:
try: