#include <asset_manager_font_provider.h>
◆ AssetManagerFontProvider()
flutter::AssetManagerFontProvider::AssetManagerFontProvider |
( |
std::shared_ptr< AssetManager > |
asset_manager | ) |
|
|
explicit |
◆ ~AssetManagerFontProvider()
flutter::AssetManagerFontProvider::~AssetManagerFontProvider |
( |
| ) |
|
|
overridedefault |
◆ GetFamilyCount()
size_t flutter::AssetManagerFontProvider::GetFamilyCount |
( |
| ) |
const |
|
overridevirtual |
◆ GetFamilyName()
std::string flutter::AssetManagerFontProvider::GetFamilyName |
( |
int |
index | ) |
const |
|
overridevirtual |
◆ MatchFamily()
sk_sp< SkFontStyleSet > flutter::AssetManagerFontProvider::MatchFamily |
( |
const std::string & |
family_name | ) |
|
|
overridevirtual |
◆ RegisterAsset()
void flutter::AssetManagerFontProvider::RegisterAsset |
( |
const std::string & |
family_name, |
|
|
const std::string & |
asset |
|
) |
| |
Definition at line 54 of file asset_manager_font_provider.cc.
55 {
57 auto family_it = registered_families_.find(canonical_name);
58
59 if (family_it == registered_families_.end()) {
60 family_names_.push_back(family_name);
61 auto value = std::make_pair(
62 canonical_name,
63 sk_make_sp<AssetManagerFontStyleSet>(asset_manager_, family_name));
64 family_it = registered_families_.emplace(
value).first;
65 }
66
67 family_it->second->registerAsset(asset);
68}
The documentation for this class was generated from the following files: