ref: d695b4788fac2810f69a92aacdf08d6e4af21d3f
parent: 0d691c38d6f30f1acaf8c2d2c710ad0648208c4b
author: Ali Gholami Rudi <[email protected]>
date: Tue Jul 26 18:45:05 EDT 2022
dev: fail if fonts listed in DESC are missing
--- a/dev.c
+++ b/dev.c
@@ -126,9 +126,12 @@
}
fclose(desc);
dev_prologue();
- for (i = 0; i < fn_n; i++)
- if (*fn_name[i])
- dev_mnt(i, fn_name[i], fn_name[i]);
+ for (i = 0; i < fn_n; i++) {
+ if (*fn_name[i] && dev_mnt(i, fn_name[i], fn_name[i]) < 0) {
+ errmsg("neatroff: font %s is missing\n", fn_name[i]);
+ return 1;
+ }
+ }
return 0;
}