Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
txt::DynamicFontManager Class Reference

#include <asset_font_manager.h>

Inheritance diagram for txt::DynamicFontManager:
txt::AssetFontManager SkFontMgr SkRefCnt SkRefCntBase

Public Member Functions

 DynamicFontManager ()
 
TypefaceFontAssetProviderfont_provider () const
 
- Public Member Functions inherited from txt::AssetFontManager
 AssetFontManager (std::unique_ptr< FontAssetProvider > font_provider)
 
 ~AssetFontManager () override
 
- Public Member Functions inherited from SkFontMgr
int countFamilies () const
 
void getFamilyName (int index, SkString *familyName) const
 
sk_sp< SkFontStyleSetcreateStyleSet (int index) const
 
sk_sp< SkFontStyleSetmatchFamily (const char familyName[]) const
 
sk_sp< SkTypefacematchFamilyStyle (const char familyName[], const SkFontStyle &) const
 
sk_sp< SkTypefacematchFamilyStyleCharacter (const char familyName[], const SkFontStyle &, const char *bcp47[], int bcp47Count, SkUnichar character) const
 
sk_sp< SkTypefacemakeFromData (sk_sp< SkData >, int ttcIndex=0) const
 
sk_sp< SkTypefacemakeFromStream (std::unique_ptr< SkStreamAsset >, int ttcIndex=0) const
 
sk_sp< SkTypefacemakeFromStream (std::unique_ptr< SkStreamAsset >, const SkFontArguments &) const
 
sk_sp< SkTypefacemakeFromFile (const char path[], int ttcIndex=0) const
 
sk_sp< SkTypefacelegacyMakeTypeface (const char familyName[], SkFontStyle style) const
 
- 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 SkFontMgr
static sk_sp< SkFontMgrRefEmpty ()
 
- Protected Member Functions inherited from txt::AssetFontManager
sk_sp< SkFontStyleSetonMatchFamily (const char familyName[]) const override
 
virtual int onCountFamilies () const =0
 
virtual void onGetFamilyName (int index, SkString *familyName) const =0
 
virtual sk_sp< SkFontStyleSetonCreateStyleSet (int index) const =0
 
virtual sk_sp< SkFontStyleSetonMatchFamily (const char familyName[]) const =0
 
virtual sk_sp< SkTypefaceonMatchFamilyStyle (const char familyName[], const SkFontStyle &) const =0
 
virtual sk_sp< SkTypefaceonMatchFamilyStyleCharacter (const char familyName[], const SkFontStyle &, const char *bcp47[], int bcp47Count, SkUnichar character) const =0
 
virtual sk_sp< SkTypefaceonMakeFromData (sk_sp< SkData >, int ttcIndex) const =0
 
virtual sk_sp< SkTypefaceonMakeFromStreamIndex (std::unique_ptr< SkStreamAsset >, int ttcIndex) const =0
 
virtual sk_sp< SkTypefaceonMakeFromStreamArgs (std::unique_ptr< SkStreamAsset >, const SkFontArguments &) const =0
 
virtual sk_sp< SkTypefaceonMakeFromFile (const char path[], int ttcIndex) const =0
 
virtual sk_sp< SkTypefaceonLegacyMakeTypeface (const char familyName[], SkFontStyle) const =0
 
- Protected Attributes inherited from txt::AssetFontManager
std::unique_ptr< FontAssetProviderfont_provider_
 

Detailed Description

Definition at line 87 of file asset_font_manager.h.

Constructor & Destructor Documentation

◆ DynamicFontManager()

txt::DynamicFontManager::DynamicFontManager ( )
inline

Definition at line 89 of file asset_font_manager.h.

90 : AssetFontManager(std::make_unique<TypefaceFontAssetProvider>()) {}
AssetFontManager(std::unique_ptr< FontAssetProvider > font_provider)

Member Function Documentation

◆ font_provider()

TypefaceFontAssetProvider & txt::DynamicFontManager::font_provider ( ) const
inline

Definition at line 92 of file asset_font_manager.h.

92 {
93 return static_cast<TypefaceFontAssetProvider&>(*font_provider_);
94 }

The documentation for this class was generated from the following file: