diff options
Diffstat (limited to 'src/ports/SkFontConfigInterface_android.cpp')
-rw-r--r-- | src/ports/SkFontConfigInterface_android.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ports/SkFontConfigInterface_android.cpp b/src/ports/SkFontConfigInterface_android.cpp index 6f9ed3a93b..6c3e8d5625 100644 --- a/src/ports/SkFontConfigInterface_android.cpp +++ b/src/ports/SkFontConfigInterface_android.cpp @@ -930,5 +930,6 @@ SkTypeface* SkCreateTypefaceForScript(HB_Script script, SkTypeface::Style style, /////////////////////////////////////////////////////////////////////////////// SkFontMgr* SkFontMgr::Factory() { - return NULL; + SkFontConfigInterface* fci = SkFontConfigInterface::GetSingletonDirectInterface(); + return fci ? SkNEW_ARGS(SkFontMgr_fontconfig, (fci)) : NULL; } |