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
This commit is contained in:
djsollen@google.com 2013-05-21 20:08:10 +00:00
parent 9a73104c1b
commit 2e08f19943

View File

@ -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 {