From c573c55a0828bb59ee36815627b88e6e61919233 Mon Sep 17 00:00:00 2001 From: "agl@chromium.org" Date: Fri, 5 Dec 2008 01:12:25 +0000 Subject: 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 --- skia/ports/SkFontHost_fontconfig.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.1