summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaya Rashish <maya@NetBSD.org>2019-10-27 20:07:16 +0200
committerMaya Rashish <maya@NetBSD.org>2019-10-27 20:10:54 +0200
commitf9c76b4dee38619ccf4004f05f609a5e00806771 (patch)
treeb3eb29e79ecdd770e53f2820660ffc8970911d13
parent73a6d0e02eece1e51bfaed9638f1929404d2c66a (diff)
Add "ExtraBold" as a valid T1 font weight.
Used by freefonts. Signed-off-by: Maya Rashish <maya@NetBSD.org>
-rw-r--r--mkfontscale.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mkfontscale.c b/mkfontscale.c
index 14435b4..356417f 100644
--- a/mkfontscale.c
+++ b/mkfontscale.c
@@ -446,6 +446,8 @@ t1Weight(const char *weight)
return "medium";
if(strcasecmp(weight, "Normal") == 0)
return "medium";
+ if(strcasecmp(weight, "Plain") == 0)
+ return "medium";
if(strcasecmp(weight, "Medium") == 0)
return "medium";
if(strcasecmp(weight, "Book") == 0)
@@ -460,6 +462,8 @@ t1Weight(const char *weight)
return "semibold";
else if(strcasecmp(weight, "Bold") == 0)
return "bold";
+ else if(strcasecmp(weight, "ExtraBold") == 0) /* freefonts uses this */
+ return "extrabold";
else if(strcasecmp(weight, "Heavy") == 0) /* FontForge uses this for 800*/
return "extrabold";
else if(strcasecmp(weight, "Black") == 0)