Index: src/fonts/SkFontMgr_fontconfig.cpp |
diff --git a/src/fonts/SkFontMgr_fontconfig.cpp b/src/fonts/SkFontMgr_fontconfig.cpp |
index a78575262fd41bb0edcb0339d463d5abe0ac4b13..1c87a72f06cc08a01b4a1423dcfcde87cde86c41 100644 |
--- a/src/fonts/SkFontMgr_fontconfig.cpp |
+++ b/src/fonts/SkFontMgr_fontconfig.cpp |
@@ -8,6 +8,7 @@ |
#include "SkFontMgr.h" |
#include "SkFontStyle.h" |
#include "SkFontConfigInterface.h" |
+#include "SkFontConfigTypeface.h" |
#include "SkMath.h" |
#include "SkString.h" |
#include "SkTDArray.h" |
@@ -267,6 +268,12 @@ protected: |
virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) { |
return NULL; |
} |
+ |
+ virtual SkTypeface* onLegacyCreateTypeface(const char familyName[], |
+ unsigned styleBits) SK_OVERRIDE { |
+ return FontConfigTypeface::LegacyCreateTypeface(NULL, familyName, |
+ (SkTypeface::Style)styleBits); |
+ } |
}; |
SkFontMgr* SkFontMgr::Factory() { |