Flutter Engine
The Flutter Engine
Protected Member Functions | List of all members
SkEmptyFontMgr Class Reference
Inheritance diagram for SkEmptyFontMgr:
SkFontMgr SkRefCnt SkRefCntBase

Protected Member Functions

int onCountFamilies () const override
 
void onGetFamilyName (int index, SkString *familyName) const override
 
sk_sp< SkFontStyleSetonCreateStyleSet (int index) const override
 
sk_sp< SkFontStyleSetonMatchFamily (const char[]) const override
 
sk_sp< SkTypefaceonMatchFamilyStyle (const char[], const SkFontStyle &) const override
 
sk_sp< SkTypefaceonMatchFamilyStyleCharacter (const char familyName[], const SkFontStyle &style, const char *bcp47[], int bcp47Count, SkUnichar character) const override
 
sk_sp< SkTypefaceonMakeFromData (sk_sp< SkData >, int) const override
 
sk_sp< SkTypefaceonMakeFromStreamIndex (std::unique_ptr< SkStreamAsset >, int) const override
 
sk_sp< SkTypefaceonMakeFromStreamArgs (std::unique_ptr< SkStreamAsset >, const SkFontArguments &) const override
 
sk_sp< SkTypefaceonMakeFromFile (const char[], int) const override
 
sk_sp< SkTypefaceonLegacyMakeTypeface (const char[], SkFontStyle) 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
 

Additional Inherited Members

- 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
 
- Static Public Member Functions inherited from SkFontMgr
static sk_sp< SkFontMgrRefEmpty ()
 

Detailed Description

Definition at line 41 of file SkFontMgr.cpp.

Member Function Documentation

◆ onCountFamilies()

int SkEmptyFontMgr::onCountFamilies ( ) const
inlineoverrideprotectedvirtual

Implements SkFontMgr.

Definition at line 43 of file SkFontMgr.cpp.

43 {
44 return 0;
45 }

◆ onCreateStyleSet()

sk_sp< SkFontStyleSet > SkEmptyFontMgr::onCreateStyleSet ( int  index) const
inlineoverrideprotectedvirtual

Implements SkFontMgr.

Definition at line 49 of file SkFontMgr.cpp.

49 {
50 SkDEBUGFAIL("onCreateStyleSet called with bad index");
51 return nullptr;
52 }
#define SkDEBUGFAIL(message)
Definition: SkAssert.h:118

◆ onGetFamilyName()

void SkEmptyFontMgr::onGetFamilyName ( int  index,
SkString familyName 
) const
inlineoverrideprotectedvirtual

Implements SkFontMgr.

Definition at line 46 of file SkFontMgr.cpp.

46 {
47 SkDEBUGFAIL("onGetFamilyName called with bad index");
48 }

◆ onLegacyMakeTypeface()

sk_sp< SkTypeface > SkEmptyFontMgr::onLegacyMakeTypeface ( const char  [],
SkFontStyle   
) const
inlineoverrideprotectedvirtual

Implements SkFontMgr.

Definition at line 81 of file SkFontMgr.cpp.

81 {
82 return nullptr;
83 }

◆ onMakeFromData()

sk_sp< SkTypeface > SkEmptyFontMgr::onMakeFromData ( sk_sp< SkData ,
int   
) const
inlineoverrideprotectedvirtual

Implements SkFontMgr.

Definition at line 68 of file SkFontMgr.cpp.

68 {
69 return nullptr;
70 }

◆ onMakeFromFile()

sk_sp< SkTypeface > SkEmptyFontMgr::onMakeFromFile ( const char  [],
int   
) const
inlineoverrideprotectedvirtual

Implements SkFontMgr.

Definition at line 78 of file SkFontMgr.cpp.

78 {
79 return nullptr;
80 }

◆ onMakeFromStreamArgs()

sk_sp< SkTypeface > SkEmptyFontMgr::onMakeFromStreamArgs ( std::unique_ptr< SkStreamAsset ,
const SkFontArguments  
) const
inlineoverrideprotectedvirtual

Implements SkFontMgr.

Definition at line 74 of file SkFontMgr.cpp.

75 {
76 return nullptr;
77 }

◆ onMakeFromStreamIndex()

sk_sp< SkTypeface > SkEmptyFontMgr::onMakeFromStreamIndex ( std::unique_ptr< SkStreamAsset ,
int   
) const
inlineoverrideprotectedvirtual

Implements SkFontMgr.

Definition at line 71 of file SkFontMgr.cpp.

71 {
72 return nullptr;
73 }

◆ onMatchFamily()

sk_sp< SkFontStyleSet > SkEmptyFontMgr::onMatchFamily ( const char  familyName[]) const
inlineoverrideprotectedvirtual

May return NULL if the name is not found.

Implements SkFontMgr.

Definition at line 53 of file SkFontMgr.cpp.

53 {
55 }
static sk_sp< SkFontStyleSet > CreateEmpty()
Definition: SkFontMgr.cpp:35

◆ onMatchFamilyStyle()

sk_sp< SkTypeface > SkEmptyFontMgr::onMatchFamilyStyle ( const char  [],
const SkFontStyle  
) const
inlineoverrideprotectedvirtual

Implements SkFontMgr.

Definition at line 57 of file SkFontMgr.cpp.

57 {
58 return nullptr;
59 }

◆ onMatchFamilyStyleCharacter()

sk_sp< SkTypeface > SkEmptyFontMgr::onMatchFamilyStyleCharacter ( const char  familyName[],
const SkFontStyle style,
const char *  bcp47[],
int  bcp47Count,
SkUnichar  character 
) const
inlineoverrideprotectedvirtual

Implements SkFontMgr.

Definition at line 60 of file SkFontMgr.cpp.

64 {
65 return nullptr;
66 }

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