summaryrefslogtreecommitdiffstats
path: root/skia
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-05 01:12:25 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-05 01:12:25 +0000
commitc573c55a0828bb59ee36815627b88e6e61919233 (patch)
treed784d3ccbfd0bea245144de4d2765a929db591d6 /skia
parente477345f89ff5a8ed6b4b5ba18c7a6a0098ec616 (diff)
downloadchromium_src-c573c55a0828bb59ee36815627b88e6e61919233.zip
chromium_src-c573c55a0828bb59ee36815627b88e6e61919233.tar.gz
chromium_src-c573c55a0828bb59ee36815627b88e6e61919233.tar.bz2
Linux: use case-insensitive matching for font names.
CSS likes to give fonts all lowercase names (verdana, arial etc). Review URL: http://codereview.chromium.org/13139 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6409 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia')
-rw-r--r--skia/ports/SkFontHost_fontconfig.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/skia/ports/SkFontHost_fontconfig.cpp b/skia/ports/SkFontHost_fontconfig.cpp
index 42cce0d..d060198 100644
--- a/skia/ports/SkFontHost_fontconfig.cpp
+++ b/skia/ports/SkFontHost_fontconfig.cpp
@@ -173,7 +173,7 @@ static FcPattern* FontMatch(const char* type, FcType vtype, const void* value,
const bool family_names_match =
!family_requested ?
true :
- strcmp((char *) post_config_family, (char *) post_match_family) == 0;
+ strcasecmp((char *) post_config_family, (char *) post_match_family) == 0;
FcPatternDestroy(pattern);