5#ifndef FLUTTER_TXT_SRC_TXT_TYPEFACE_FONT_ASSET_PROVIDER_H_
6#define FLUTTER_TXT_SRC_TXT_TYPEFACE_FONT_ASSET_PROVIDER_H_
9#include <unordered_map>
13#include "third_party/skia/include/core/SkFontMgr.h"
30 void getStyle(
int index, SkFontStyle* style, SkString*
name)
override;
36 sk_sp<SkTypeface>
matchStyle(
const SkFontStyle& pattern)
override;
39 std::vector<sk_sp<SkTypeface>> typefaces_;
52 const std::string& family_name_alias);
61 sk_sp<SkFontStyleSet>
MatchFamily(
const std::string& family_name)
override;
64 std::unordered_map<std::string, sk_sp<TypefaceFontStyleSet>>
66 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)
#define FML_DISALLOW_COPY_AND_ASSIGN(TypeName)
DEF_SWITCHES_START aot vmservice shared library name