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

#include <test_font_manager.h>

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

Public Member Functions

 TestFontManager (std::unique_ptr< FontAssetProvider > font_provider, std::vector< std::string > test_font_family_names)
 
 ~TestFontManager () override
 
- 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 ()
 
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 33 of file test_font_manager.h.

Constructor & Destructor Documentation

◆ TestFontManager()

txt::TestFontManager::TestFontManager ( std::unique_ptr< FontAssetProvider font_provider,
std::vector< std::string >  test_font_family_names 
)

Definition at line 22 of file test_font_manager.cc.

25 : AssetFontManager(std::move(font_provider)),
26 test_font_family_names_(test_font_family_names) {}
AssetFontManager(std::unique_ptr< FontAssetProvider > font_provider)

◆ ~TestFontManager()

txt::TestFontManager::~TestFontManager ( )
overridedefault

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