Index: src/ports/SkFontConfigParser_android.h |
diff --git a/src/ports/SkFontConfigParser_android.h b/src/ports/SkFontConfigParser_android.h |
index 8119fd7558e396161b89c9ba970df541cb133222..22e6f5fa6c08472a626771f53a751e99fe62a6c0 100644 |
--- a/src/ports/SkFontConfigParser_android.h |
+++ b/src/ports/SkFontConfigParser_android.h |
@@ -15,11 +15,12 @@ |
#include "SkTDArray.h" |
struct FontFileInfo { |
- FontFileInfo() : fIndex(0) { } |
+ FontFileInfo() : fIndex(0), fWeight(0) { } |
SkString fFileName; |
int fIndex; |
SkPaintOptionsAndroid fPaintOptions; |
+ int fWeight; |
}; |
/** |
@@ -31,12 +32,17 @@ struct FontFileInfo { |
* they are read from the configuration files. |
*/ |
struct FontFamily { |
- FontFamily() : fIsFallbackFont(false), order(-1) {} |
+ FontFamily() |
+ : fVariant(SkPaintOptionsAndroid::kDefault_Variant) |
+ , order(-1) |
+ , fIsFallbackFont(false) { } |
- SkTArray<SkString> fNames; |
- SkTArray<FontFileInfo> fFontFiles; |
- bool fIsFallbackFont; |
- int order; // only used internally by SkFontConfigParser |
+ SkTArray<SkString> fNames; |
+ SkTArray<FontFileInfo> fFontFiles; |
+ SkString fLanguage; |
+ SkPaintOptionsAndroid::FontVariant fVariant; |
+ int order; // only used internally by SkFontConfigParser |
+ bool fIsFallbackFont; |
djsollen
2014/08/05 19:44:08
nit, why reorder fIsFallbackFont?
|
}; |
namespace SkFontConfigParser { |