Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1169)

Unified Diff: src/ports/SkFontConfigInterface_android.cpp

Issue 15602002: Fix android font lookup bug (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ports/SkFontConfigInterface_android.cpp
diff --git a/src/ports/SkFontConfigInterface_android.cpp b/src/ports/SkFontConfigInterface_android.cpp
index fee896ae0bdeeb5909ce280984647fac2e7af6ba..facc5fe77bcefab75ae6c258ec87d6c1b1821201 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 {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698