Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(703)

Unified Diff: src/ports/SkFontConfigInterface_android.cpp

Issue 446473003: Parser for new fonts.xml format (Closed) Base URL: https://skia.googlesource.com/skia.git@fcparse-lmp-2
Patch Set: Rebase and add missing && Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/ports/SkFontConfigParser_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ports/SkFontConfigInterface_android.cpp
diff --git a/src/ports/SkFontConfigInterface_android.cpp b/src/ports/SkFontConfigInterface_android.cpp
index cba9f37c35601562bb5e07dbd726f7a4dead5f8f..4e435cd616f4a99395b775742e5c76ba1e8af14c 100644
--- a/src/ports/SkFontConfigInterface_android.cpp
+++ b/src/ports/SkFontConfigInterface_android.cpp
@@ -205,9 +205,9 @@ SkFontConfigInterfaceAndroid::SkFontConfigInterfaceAndroid(SkTDArray<FontFamily*
FamilyRec* familyRec = NULL;
FamilyRecID familyRecID = INVALID_FAMILY_REC_ID;
- for (int j = 0; j < family->fFontFiles.count(); ++j) {
+ for (int j = 0; j < family->fFonts.count(); ++j) {
SkString filename;
- get_path_for_sys_fonts(&filename, family->fFontFiles[j].fFileName);
+ get_path_for_sys_fonts(&filename, family->fFonts[j].fFileName);
if (has_font(fFonts, filename)) {
DEBUG_FONT(("---- system font and fallback font files specify a duplicate "
@@ -252,9 +252,9 @@ SkFontConfigInterfaceAndroid::SkFontConfigInterfaceAndroid(SkTDArray<FontFamily*
fontRec.fFamilyRecID = familyRecID;
familyRec->fIsFallbackFont = family->fIsFallbackFont;
- familyRec->fPaintOptions = family->fFontFiles[j].fPaintOptions;
+ familyRec->fPaintOptions = family->fFonts[j].fPaintOptions;
- } else if (familyRec->fPaintOptions != family->fFontFiles[j].fPaintOptions) {
+ } else if (familyRec->fPaintOptions != family->fFonts[j].fPaintOptions) {
SkDebugf("Every font file within a family must have identical"
"language and variant attributes");
sk_throw();
« no previous file with comments | « no previous file | src/ports/SkFontConfigParser_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698