Index: src/ports/SkFontConfigInterface_direct.h |
diff --git a/src/ports/SkFontConfigInterface_direct.h b/src/ports/SkFontConfigInterface_direct.h |
index a048aed7e7149d5a9e9874a0c353d34df2fd0ead..22dd9f1994fd4ad1e11d4f4f58e1f9198dbd57ab 100644 |
--- a/src/ports/SkFontConfigInterface_direct.h |
+++ b/src/ports/SkFontConfigInterface_direct.h |
@@ -17,11 +17,20 @@ public: |
SkFontConfigInterfaceDirect(); |
~SkFontConfigInterfaceDirect() override; |
+#ifdef SK_VERY_LEGACY_CREATE_TYPEFACE |
bool matchFamilyName(const char familyName[], |
SkTypeface::Style requested, |
FontIdentity* outFontIdentifier, |
SkString* outFamilyName, |
SkTypeface::Style* outStyle) override; |
+#else |
+ bool matchFamilyName(const char familyName[], |
+ SkFontStyle requested, |
+ FontIdentity* outFontIdentifier, |
+ SkString* outFamilyName, |
+ SkFontStyle* outStyle) override; |
+ |
+#endif |
SkStreamAsset* openStream(const FontIdentity&) override; |
// new APIs |