diff options
author | djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-05-21 20:08:10 +0000 |
---|---|---|
committer | djsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-05-21 20:08:10 +0000 |
commit | 2e08f19943b69eace09ef2536d2028913ede7725 (patch) | |
tree | 0d87cd7572d8077db793891b1be038ce3f3c836b /src/ports | |
parent | 9a73104c1b2238aa816de4d1beea3b4f570cfea0 (diff) |
Fix android font lookup bug
R=reed@google.com
Review URL: https://codereview.chromium.org/15602002
git-svn-id: http://skia.googlecode.com/svn/trunk@9223 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/ports')
-rw-r--r-- | src/ports/SkFontConfigInterface_android.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ports/SkFontConfigInterface_android.cpp b/src/ports/SkFontConfigInterface_android.cpp index fee896ae0b..facc5fe77b 100644 --- a/src/ports/SkFontConfigInterface_android.cpp +++ b/src/ports/SkFontConfigInterface_android.cpp @@ -382,7 +382,8 @@ bool SkFontConfigInterfaceAndroid::matchFamilyName(const char familyName[], FamilyRecID familyRecID = INVALID_FAMILY_REC_ID; if (NULL != familyName) { - if (fFamilyNameDict.find(familyName, &familyRecID)) { + SkAutoAsciiToLC tolc(familyName); + if (fFamilyNameDict.find(tolc.lc(), &familyRecID)) { exactNameMatch = true; } } else { |