summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Wu <pwu@redhat.com>2020-06-11 14:09:35 +0800
committerPeng Wu <pwu@redhat.com>2020-06-11 14:09:35 +0800
commit7096c58f3fe3b6c79508cb16daac5c5bb2f042e7 (patch)
treeadaf0a81de4bd05dfcd8676fec196143584d0b7e
parent81a61c049e6de80120531f0770b22e7637c9acb9 (diff)
Guess Regular style for Medium Weight
X Logical Font Description recognize "Medium" as "Regular". Update the faceWeight function to change style from "Medium" to "Regular".
-rw-r--r--util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util.c b/util.c
index 4482c9a..12d92ea 100644
--- a/util.c
+++ b/util.c
@@ -302,7 +302,7 @@ faceWeight(FT_Face face)
else if(strcasecmp(prop.u.atom, "light") == 0)
return 300;
else if(strcasecmp(prop.u.atom, "medium") == 0)
- return 500;
+ return 400;
else if(strcasecmp(prop.u.atom, "semibold") == 0)
return 600;
else if(strcasecmp(prop.u.atom, "bold") == 0)
@@ -312,9 +312,9 @@ faceWeight(FT_Face face)
else if(strcasecmp(prop.u.atom, "black") == 0)
return 900;
else
- return 500;
+ return 400;
} else
- return 500; /* for now */
+ return 400; /* for now */
}
int