summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/util.c b/util.c
index 12d92ea..fc6eb38 100644
--- a/util.c
+++ b/util.c
@@ -280,8 +280,11 @@ faceFoundry(FT_Face face)
return makeName("URW ");
else if(strcasecmp(prop.u.atom, "y&y") == 0)
return makeName("Y&Y ");
- else
- return makeName("UNKN");
+ else {
+ char buf[5];
+ snprintf(buf, sizeof(buf), "%-4s", prop.u.atom);
+ return makeName(buf);
+ }
}
/* For now */
return makeName("UNKN");