21#include "flutter/fml/logging.h"
28 std::unique_ptr<FontAssetProvider> font_provider)
29 : font_provider_(
std::move(font_provider)) {
35int AssetFontManager::onCountFamilies()
const {
39void AssetFontManager::onGetFamilyName(
int index,
SkString* familyName)
const {
49 const char family_name_string[])
const {
50 std::string family_name(family_name_string);
55 const char familyName[],
59 if (font_style_set ==
nullptr)
65 const char familyName[],
80 std::unique_ptr<SkStreamAsset>,
87 std::unique_ptr<SkStreamAsset>,
100 const char familyName[],
virtual sk_sp< SkTypeface > matchStyle(const SkFontStyle &pattern)=0
void set(const SkString &src)
~AssetFontManager() override
AssetFontManager(std::unique_ptr< FontAssetProvider > font_provider)
sk_sp< SkFontStyleSet > onMatchFamily(const char familyName[]) const override
std::unique_ptr< FontAssetProvider > font_provider_
#define FML_DCHECK(condition)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path