summaryrefslogtreecommitdiff
path: root/app/mkfontscale/mkfontscale.c
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2018-05-21 15:42:54 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2018-05-21 15:42:54 +0000
commitf309cbcf845dddbbc19e4014fec75cddf1b79cbf (patch)
treebcd9f17edf74a322b6475569408822382dc233b1 /app/mkfontscale/mkfontscale.c
parentee12daf445314da9a43c050dc396630f4636be53 (diff)
Update to mkfontscale 1.1.3
Diffstat (limited to 'app/mkfontscale/mkfontscale.c')
-rw-r--r--app/mkfontscale/mkfontscale.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/app/mkfontscale/mkfontscale.c b/app/mkfontscale/mkfontscale.c
index da93e0c0d..e9b9488b1 100644
--- a/app/mkfontscale/mkfontscale.c
+++ b/app/mkfontscale/mkfontscale.c
@@ -579,11 +579,14 @@ makeXLFD(char *filename, FT_Face face, int isBitmap)
}
if(t1info) {
- if(!family)
+ if(!family && t1info->family_name)
family = strdup(t1info->family_name);
- if(!family)
+ if(!family && t1info->full_name)
family = strdup(t1info->full_name);
- if(!full_name)
+ /* Hershey fonts miss /FamilyName */
+ if(!family && face->family_name)
+ family = strdup(face->family_name);
+ if(!full_name && t1info->full_name)
full_name = strdup(t1info->full_name);
if(!foundry)
foundry = notice_foundry(t1info->notice);