From f9c76b4dee38619ccf4004f05f609a5e00806771 Mon Sep 17 00:00:00 2001 From: Maya Rashish Date: Sun, 27 Oct 2019 20:07:16 +0200 Subject: Add "ExtraBold" as a valid T1 font weight. Used by freefonts. Signed-off-by: Maya Rashish --- mkfontscale.c | 4 ++++ 1 file changed, 4 insertions(+) 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) -- cgit v1.2.3