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

Unified Diff: src/ports/SkFontConfigParser_android.h

Issue 446473003: Parser for new fonts.xml format (Closed) Base URL: https://skia.googlesource.com/skia.git@fcparse-lmp-2
Patch Set: Complete basic implementation 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.cpp » ('j') | src/ports/SkFontConfigParser_android.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ports/SkFontConfigParser_android.h
diff --git a/src/ports/SkFontConfigParser_android.h b/src/ports/SkFontConfigParser_android.h
index 8119fd7558e396161b89c9ba970df541cb133222..e03b1233a59ea3d3666f9262fdd5a7659bfd0557 100644
--- a/src/ports/SkFontConfigParser_android.h
+++ b/src/ports/SkFontConfigParser_android.h
@@ -20,6 +20,7 @@ struct FontFileInfo {
SkString fFileName;
int fIndex;
SkPaintOptionsAndroid fPaintOptions;
+ int weight; // only used internally by SkFontConfigParser in LMP+
djsollen 2014/08/05 17:46:15 fWeight instead of weight. Also why is it interna
tomhudson 2014/08/05 19:35:35 Done.
};
/**
@@ -31,12 +32,16 @@ struct FontFileInfo {
* they are read from the configuration files.
*/
struct FontFamily {
- FontFamily() : fIsFallbackFont(false), order(-1) {}
+ FontFamily() : fIsFallbackFont(false), order(-1),
+ variant(SkPaintOptionsAndroid::kDefault_Variant) {}
SkTArray<SkString> fNames;
SkTArray<FontFileInfo> fFontFiles;
+ SkString language; // only used internally by SkFontConfigParser in LMP+
djsollen 2014/08/05 17:46:15 If we made this an SkLanguage param then I don't s
tomhudson 2014/08/05 19:35:35 PS2 has fLanguage and fVariant, but missed the SkS
bool fIsFallbackFont;
int order; // only used internally by SkFontConfigParser
+ SkPaintOptionsAndroid::FontVariant variant;
+ // only used internally by SkFontConfigParser in LMP+
};
namespace SkFontConfigParser {
« no previous file with comments | « no previous file | src/ports/SkFontConfigParser_android.cpp » ('j') | src/ports/SkFontConfigParser_android.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698