17#ifndef TXT_TYPEFACE_FONT_ASSET_PROVIDER_H_
18#define TXT_TYPEFACE_FONT_ASSET_PROVIDER_H_
21#include <unordered_map>
24#include "flutter/fml/macros.h"
51 std::vector<sk_sp<SkTypeface>> typefaces_;
64 std::string family_name_alias);
76 std::unordered_map<std::string, sk_sp<TypefaceFontStyleSet>>
78 std::vector<std::string> family_names_;
~TypefaceFontAssetProvider() override
void RegisterTypeface(sk_sp< SkTypeface > typeface)
std::string GetFamilyName(int index) const override
TypefaceFontAssetProvider()
size_t GetFamilyCount() const override
sk_sp< SkFontStyleSet > MatchFamily(const std::string &family_name) override
sk_sp< SkTypeface > matchStyle(const SkFontStyle &pattern) override
~TypefaceFontStyleSet() override
void getStyle(int index, SkFontStyle *style, SkString *name) override
sk_sp< SkTypeface > createTypeface(int index) override
void registerTypeface(sk_sp< SkTypeface > typeface)
DEF_SWITCHES_START aot vmservice shared library name