5#include <lib/zx/channel.h>
7#include "third_party/skia/include/ports/SkFontMgr_fuchsia.h"
10#if defined(SK_FONTMGR_FREETYPE_EMPTY_AVAILABLE)
11#include "third_party/skia/include/ports/SkFontMgr_empty.h"
21 if (font_initialization_data) {
22 fuchsia::fonts::ProviderSyncPtr sync_font_provider;
23 sync_font_provider.Bind(zx::channel(font_initialization_data));
24 return SkFontMgr_New_Fuchsia(std::move(sync_font_provider));
26#if defined(SK_FONTMGR_FREETYPE_EMPTY_AVAILABLE)
27 static sk_sp<SkFontMgr> mgr = SkFontMgr_New_Custom_Empty();
29 static sk_sp<SkFontMgr> mgr = SkFontMgr::RefEmpty();
std::vector< std::string > GetDefaultFontFamilies()
sk_sp< SkFontMgr > GetDefaultFontManager(uint32_t font_initialization_data)