diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2017-09-15 14:28:12 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2017-09-20 13:13:35 -0700 |
commit | 9efe0689ae130eda75a66ecd853cbe63712378a3 (patch) | |
tree | 4595fe9a61bb194c87a87ae0c0b236019e7d837f /conf.d | |
parent | a79f367c3f8b238fecced75e02c956e565af2597 (diff) | |
download | fontconfig-9efe0689ae130eda75a66ecd853cbe63712378a3.tar.gz |
Adjust emboldening logic
Old logic was really bad. If you requested weight=102 and got a medium
font (weight=100), it would still enable emboldening...
Adjust it to only embolden if request was >= bold and font was <= regular.
Diffstat (limited to 'conf.d')
-rw-r--r-- | conf.d/90-synthetic.conf | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/conf.d/90-synthetic.conf b/conf.d/90-synthetic.conf index b8d1e85..7cd25cf 100644 --- a/conf.d/90-synthetic.conf +++ b/conf.d/90-synthetic.conf @@ -40,11 +40,11 @@ <match target="font"> <!-- check to see if the font is just regular --> <test name="weight" compare="less_eq"> - <const>medium</const> + <const>regular</const> </test> <!-- check to see if the pattern requests bold --> - <test target="pattern" name="weight" compare="more"> - <const>medium</const> + <test target="pattern" name="weight" compare="more_eq"> + <const>bold</const> </test> <!-- set the embolden flag |