When ttc index support was added, it was added and tested on Android
with the jb parser. This adds it to the lmp parser.
Review URL: https://codereview.chromium.org/
1023313002
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);