ref: 5c912d084931b4aa91103718bc8d59c2c982d9ad
parent: 08f6359a2348f2413fbef498e9dd5e975683c0a4
author: Ali Gholami Rudi <ali@rudi.ir>
date: Fri Jun 25 12:57:42 EDT 2021
font: use font's file name if its postscript name is missing
--- a/font.c
+++ b/font.c
@@ -170,7 +170,7 @@
char *font_name(struct font *fn)
{
- return fn->fontname;
+ return fn->fontname[0] ? fn->fontname : fn->name;
}
char *font_path(struct font *fn)