7#if defined(SK_FONTMGR_FONTCONFIG_AVAILABLE)
8#include "third_party/skia/include/ports/SkFontMgr_fontconfig.h"
9#include "third_party/skia/include/ports/SkFontScanner_FreeType.h"
12#if defined(SK_FONTMGR_FREETYPE_DIRECTORY_AVAILABLE)
13#include "include/ports/SkFontMgr_directory.h"
16#if defined(SK_FONTMGR_FREETYPE_EMPTY_AVAILABLE)
17#include "third_party/skia/include/ports/SkFontMgr_empty.h"
23 return {
"Ubuntu",
"Cantarell",
"DejaVu Sans",
"Liberation Sans",
"Arial"};
27#if defined(SK_FONTMGR_FONTCONFIG_AVAILABLE)
28 static sk_sp<SkFontMgr> mgr =
29 SkFontMgr_New_FontConfig(
nullptr, SkFontScanner_Make_FreeType());
30#elif defined(SK_FONTMGR_FREETYPE_DIRECTORY_AVAILABLE)
31 static sk_sp<SkFontMgr> mgr =
32 SkFontMgr_New_Custom_Directory(
"/usr/share/fonts/");
33#elif defined(SK_FONTMGR_FREETYPE_EMPTY_AVAILABLE)
34 static sk_sp<SkFontMgr> mgr = SkFontMgr_New_Custom_Empty();
36 static sk_sp<SkFontMgr> mgr = SkFontMgr::RefEmpty();
std::vector< std::string > GetDefaultFontFamilies()
sk_sp< SkFontMgr > GetDefaultFontManager(uint32_t font_initialization_data)