summaryrefslogtreecommitdiffstats
path: root/skia
diff options
context:
space:
mode:
authorsenorblanco@chromium.org <senorblanco@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-03 16:44:40 +0000
committersenorblanco@chromium.org <senorblanco@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-02-03 16:44:40 +0000
commit194b41be7fdce80b33da38a844fb70a7b5eadb78 (patch)
treea55ed42ae5f1ce5911603112f9e6dcc522ce4ed8 /skia
parent6ae6f208e0c90de28b1b88b75ed05083d5f37966 (diff)
downloadchromium_src-194b41be7fdce80b33da38a844fb70a7b5eadb78.zip
chromium_src-194b41be7fdce80b33da38a844fb70a7b5eadb78.tar.gz
chromium_src-194b41be7fdce80b33da38a844fb70a7b5eadb78.tar.bz2
Fix for gratuitous fake emboldening of already-bold fonts on Linux.
BUG=22360 TEST=none Review URL: http://codereview.chromium.org/564038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37974 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r--skia/ext/SkFontHost_fontconfig_direct.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/skia/ext/SkFontHost_fontconfig_direct.cpp b/skia/ext/SkFontHost_fontconfig_direct.cpp
index 9434f51..99e05f6 100644
--- a/skia/ext/SkFontHost_fontconfig_direct.cpp
+++ b/skia/ext/SkFontHost_fontconfig_direct.cpp
@@ -239,7 +239,7 @@ bool FontConfigDirect::Match(std::string* result_family,
FcPatternGet(match, FC_EMBOLDEN, 0, &embolden) == 0;
if (is_bold)
- *is_bold = resulting_bold >= FC_WEIGHT_BOLD && !have_embolden;
+ *is_bold = resulting_bold > FC_WEIGHT_MEDIUM && !have_embolden;
if (is_italic)
*is_italic = resulting_italic > FC_SLANT_ROMAN && !have_matrix;