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:
parent
9a73104c1b
commit
2e08f19943
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user