diff options
-rw-r--r-- | src/ports/SkFontHost_mac.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ports/SkFontHost_mac.cpp b/src/ports/SkFontHost_mac.cpp index 25030be413..1d68c433bf 100644 --- a/src/ports/SkFontHost_mac.cpp +++ b/src/ports/SkFontHost_mac.cpp @@ -2339,8 +2339,9 @@ protected: } virtual SkTypeface* onMatchFamilyStyle(const char familyName[], - const SkFontStyle&) const override { - return nullptr; + const SkFontStyle& fontStyle) const override { + SkAutoTUnref<SkFontStyleSet> sset(this->matchFamily(familyName)); + return sset->matchStyle(fontStyle); } virtual SkTypeface* onMatchFamilyStyleCharacter(const char familyName[], const SkFontStyle&, |