diff options
author | bungeman <bungeman@google.com> | 2015-03-23 09:08:54 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-03-23 09:08:54 -0700 |
commit | b8a1d30a42d13ae83690b2d854a024d9b56e7b71 (patch) | |
tree | d206f39738714fea1dceeb49095bee9a5ce52bf4 /src/ports | |
parent | 8010632f2408ce9d840c1dcd26a8be0e4967233e (diff) |
Add font "index" to lmp parser.
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
Diffstat (limited to 'src/ports')
-rw-r--r-- | src/ports/SkFontConfigParser_android.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ports/SkFontConfigParser_android.cpp b/src/ports/SkFontConfigParser_android.cpp index eb2ed07f9e..ffc60427f4 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); |