Index: src/ports/SkFontConfigParser_android.cpp |
diff --git a/src/ports/SkFontConfigParser_android.cpp b/src/ports/SkFontConfigParser_android.cpp |
index eb2ed07f9e918f620c2b4f2feff9887a151a70a8..ffc60427f47a0d841288f8c9ff997e057f793385 100644 |
--- a/src/ports/SkFontConfigParser_android.cpp |
+++ b/src/ports/SkFontConfigParser_android.cpp |
@@ -159,6 +159,10 @@ static void font_element_handler(FamilyData* self, FontFileInfo* file, const cha |
if (!parse_non_negative_integer(value, &file->fWeight)) { |
SkDebugf("---- Font weight %s (INVALID)", value); |
} |
+ } else if (MEMEQ("index", name, nameLen)) { |
+ if (!parse_non_negative_integer(value, &file->fIndex)) { |
+ SkDebugf("---- Font index %s (INVALID)", value); |
+ } |
} |
} |
XML_SetCharacterDataHandler(self->fParser, font_file_name_handler); |