Index: include/ports/SkFontMgr_indirect.h |
diff --git a/include/ports/SkFontMgr_indirect.h b/include/ports/SkFontMgr_indirect.h |
index 37502d24042558b91fd7877bd94fe62d45c9b6ba..b3f31c3b8e92f7bdfbd20f8eb5bb11e3a309b6a8 100644 |
--- a/include/ports/SkFontMgr_indirect.h |
+++ b/include/ports/SkFontMgr_indirect.h |
@@ -38,24 +38,27 @@ protected: |
SkFontStyleSet* onMatchFamily(const char familyName[]) const override; |
- virtual SkTypeface* onMatchFamilyStyle(const char familyName[], |
- const SkFontStyle& fontStyle) const override; |
+ SkTypeface* onMatchFamilyStyle(const char familyName[], |
+ const SkFontStyle& fontStyle) const override; |
- virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], |
- const SkFontStyle&, |
- const char* bcp47[], |
- int bcp47Count, |
- SkUnichar character) const override; |
+ SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], |
+ const SkFontStyle&, |
+ const char* bcp47[], |
+ int bcp47Count, |
+ SkUnichar character) const override; |
- virtual SkTypeface* onMatchFaceStyle(const SkTypeface* familyMember, |
- const SkFontStyle& fontStyle) const override; |
+ SkTypeface* onMatchFaceStyle(const SkTypeface* familyMember, |
+ const SkFontStyle& fontStyle) const override; |
SkTypeface* onCreateFromStream(SkStreamAsset* stream, int ttcIndex) const override; |
SkTypeface* onCreateFromFile(const char path[], int ttcIndex) const override; |
SkTypeface* onCreateFromData(SkData* data, int ttcIndex) const override; |
- virtual SkTypeface* onLegacyCreateTypeface(const char familyName[], |
- unsigned styleBits) const override; |
+#ifdef SK_VERY_LEGACY_CREATE_TYPEFACE |
+ SkTypeface* onLegacyCreateTypeface(const char familyName[], unsigned styleBits) const override; |
+#else |
+ SkTypeface* onLegacyCreateTypeface(const char familyName[], SkFontStyle) const override; |
+#endif |
private: |
SkTypeface* createTypefaceFromFontId(const SkFontIdentity& fontId) const; |