aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/fonts
diff options
context:
space:
mode:
Diffstat (limited to 'src/fonts')
-rw-r--r--src/fonts/SkFontMgr_fontconfig.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/fonts/SkFontMgr_fontconfig.cpp b/src/fonts/SkFontMgr_fontconfig.cpp
index a78575262f..1c87a72f06 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() {