summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Iorsh <iorsh@users.sourceforge.net>2011-10-03 21:52:15 +0200
committerJeremy Huddleston <jeremyhu@apple.com>2011-10-04 20:22:37 -0700
commit8ee3b3f73a6c14c4326435fea7136c09fe2822d1 (patch)
tree059eacc09c79aa68f9c5f8c6eb92b53b88504aaa
parentd429321888c335042332d991480095f67c85bb64 (diff)
mkfontscale: Support FontForge weight designations.
Fontforge uses 'ExtraLight' and 'Heavy' weights in Type 1 fonts, which should be understood by mkfontscale. Other FontForge designations are already addressed. Signed-off-by: Maxim Iorsh <iorsh@users.sourceforge.net> Reviewed-by: Jeremy Huddleston <jeremyhu@apple.com>
-rw-r--r--mkfontscale.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/mkfontscale.c b/mkfontscale.c
index 31553cb..49bbe77 100644
--- a/mkfontscale.c
+++ b/mkfontscale.c
@@ -426,6 +426,8 @@ t1Weight(char *weight)
return NULL;
if(strcmp(weight, "Thin") == 0)
return "thin";
+ if(strcmp(weight, "ExtraLight") == 0) /* FontForge uses this for 200*/
+ return "extralight";
if(strcmp(weight, "Light") == 0)
return "light";
if(strcmp(weight, "Regular") == 0)
@@ -446,6 +448,8 @@ t1Weight(char *weight)
return "semibold";
else if(strcmp(weight, "Bold") == 0)
return "bold";
+ else if(strcmp(weight, "Heavy") == 0) /* FontForge uses this for 800*/
+ return "extrabold";
else if(strcmp(weight, "Black") == 0)
return "black";
else {