Flutter Engine
The Flutter Engine
|
#include <asset_manager_font_provider.h>
Public Types | |
using | CreateTypefaceRet = decltype(std::declval< SkFontStyleSet >().createTypeface(0)) |
using | MatchStyleRet = decltype(std::declval< SkFontStyleSet >().matchStyle(std::declval< SkFontStyle >())) |
Public Member Functions | |
AssetManagerFontStyleSet (std::shared_ptr< AssetManager > asset_manager, std::string family_name) | |
~AssetManagerFontStyleSet () override | |
void | registerAsset (const std::string &asset) |
int | count () override |
void | getStyle (int index, SkFontStyle *, SkString *style) override |
CreateTypefaceRet | createTypeface (int index) override |
MatchStyleRet | matchStyle (const SkFontStyle &pattern) override |
virtual int | count ()=0 |
virtual void | getStyle (int index, SkFontStyle *, SkString *style)=0 |
virtual sk_sp< SkTypeface > | createTypeface (int index)=0 |
virtual sk_sp< SkTypeface > | matchStyle (const SkFontStyle &pattern)=0 |
Public Member Functions inherited from SkRefCntBase | |
SkRefCntBase () | |
virtual | ~SkRefCntBase () |
bool | unique () const |
void | ref () const |
void | unref () const |
Additional Inherited Members | |
Static Public Member Functions inherited from SkFontStyleSet | |
static sk_sp< SkFontStyleSet > | CreateEmpty () |
Protected Member Functions inherited from SkFontStyleSet | |
sk_sp< SkTypeface > | matchStyleCSS3 (const SkFontStyle &pattern) |
Definition at line 21 of file asset_manager_font_provider.h.
using flutter::AssetManagerFontStyleSet::CreateTypefaceRet = decltype(std::declval<SkFontStyleSet>().createTypeface(0)) |
Definition at line 37 of file asset_manager_font_provider.h.
using flutter::AssetManagerFontStyleSet::MatchStyleRet = decltype(std::declval<SkFontStyleSet>().matchStyle( std::declval<SkFontStyle>())) |
Definition at line 42 of file asset_manager_font_provider.h.
flutter::AssetManagerFontStyleSet::AssetManagerFontStyleSet | ( | std::shared_ptr< AssetManager > | asset_manager, |
std::string | family_name | ||
) |
Definition at line 70 of file asset_manager_font_provider.cc.
|
overridedefault |
|
overridevirtual |
Implements SkFontStyleSet.
Definition at line 82 of file asset_manager_font_provider.cc.
|
overridevirtual |
Implements SkFontStyleSet.
Definition at line 101 of file asset_manager_font_provider.cc.
|
overridevirtual |
Implements SkFontStyleSet.
Definition at line 86 of file asset_manager_font_provider.cc.
|
overridevirtual |
Implements SkFontStyleSet.
Definition at line 134 of file asset_manager_font_provider.cc.
void flutter::AssetManagerFontStyleSet::registerAsset | ( | const std::string & | asset | ) |
Definition at line 78 of file asset_manager_font_provider.cc.