diff options
author | Peng Wu <pwu@redhat.com> | 2020-06-11 14:09:35 +0800 |
---|---|---|
committer | Peng Wu <pwu@redhat.com> | 2020-06-11 14:09:35 +0800 |
commit | 7096c58f3fe3b6c79508cb16daac5c5bb2f042e7 (patch) | |
tree | adaf0a81de4bd05dfcd8676fec196143584d0b7e | |
parent | 81a61c049e6de80120531f0770b22e7637c9acb9 (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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |