33class SkFontMgr_Fontations_Empty :
public SkFontMgr {
35 SkFontMgr_Fontations_Empty() =
default;
38 int onCountFamilies()
const override {
return 0; }
39 void onGetFamilyName(
int index,
SkString* familyName)
const override {}
58 return this->makeFromStream(std::make_unique<SkMemoryStream>(std::move(
data)), ttcIndex);
61 int ttcIndex)
const override {
62 return this->makeFromStream(std::move(
stream),
71 return stream ? this->makeFromStream(std::move(
stream), ttcIndex) : nullptr;
82 return sk_make_sp<SkFontMgr_Fontations_Empty>();
sk_sp< SkFontMgr > SkFontMgr_New_Fontations_Empty()
static sk_sp< SkFontStyleSet > CreateEmpty()
static std::unique_ptr< SkStreamAsset > MakeFromFile(const char path[])
const char * data() const
static sk_sp< SkTypeface > MakeFromStream(std::unique_ptr< SkStreamAsset >, const SkFontArguments &)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args
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