Flutter Engine
The Flutter Engine
|
#include <SkFontMgr_custom.h>
Classes | |
class | SystemFontLoader |
Public Types | |
typedef skia_private::TArray< sk_sp< SkFontStyleSet_Custom > > | Families |
Public Member Functions | |
SkFontMgr_Custom (const SystemFontLoader &loader) | |
Public Member Functions inherited from SkFontMgr | |
int | countFamilies () const |
void | getFamilyName (int index, SkString *familyName) const |
sk_sp< SkFontStyleSet > | createStyleSet (int index) const |
sk_sp< SkFontStyleSet > | matchFamily (const char familyName[]) const |
sk_sp< SkTypeface > | matchFamilyStyle (const char familyName[], const SkFontStyle &) const |
sk_sp< SkTypeface > | matchFamilyStyleCharacter (const char familyName[], const SkFontStyle &, const char *bcp47[], int bcp47Count, SkUnichar character) const |
sk_sp< SkTypeface > | makeFromData (sk_sp< SkData >, int ttcIndex=0) const |
sk_sp< SkTypeface > | makeFromStream (std::unique_ptr< SkStreamAsset >, int ttcIndex=0) const |
sk_sp< SkTypeface > | makeFromStream (std::unique_ptr< SkStreamAsset >, const SkFontArguments &) const |
sk_sp< SkTypeface > | makeFromFile (const char path[], int ttcIndex=0) const |
sk_sp< SkTypeface > | legacyMakeTypeface (const char familyName[], SkFontStyle style) const |
Public Member Functions inherited from SkRefCntBase | |
SkRefCntBase () | |
virtual | ~SkRefCntBase () |
bool | unique () const |
void | ref () const |
void | unref () const |
Protected Member Functions | |
int | onCountFamilies () const override |
void | onGetFamilyName (int index, SkString *familyName) const override |
sk_sp< SkFontStyleSet > | onCreateStyleSet (int index) const override |
sk_sp< SkFontStyleSet > | onMatchFamily (const char familyName[]) const override |
sk_sp< SkTypeface > | onMatchFamilyStyle (const char familyName[], const SkFontStyle &fontStyle) const override |
sk_sp< SkTypeface > | onMatchFamilyStyleCharacter (const char familyName[], const SkFontStyle &, const char *bcp47[], int bcp47Count, SkUnichar character) const override |
sk_sp< SkTypeface > | onMakeFromData (sk_sp< SkData > data, int ttcIndex) const override |
sk_sp< SkTypeface > | onMakeFromStreamIndex (std::unique_ptr< SkStreamAsset >, int ttcIndex) const override |
sk_sp< SkTypeface > | onMakeFromStreamArgs (std::unique_ptr< SkStreamAsset >, const SkFontArguments &) const override |
sk_sp< SkTypeface > | onMakeFromFile (const char path[], int ttcIndex) const override |
sk_sp< SkTypeface > | onLegacyMakeTypeface (const char familyName[], SkFontStyle style) const override |
virtual int | onCountFamilies () const =0 |
virtual void | onGetFamilyName (int index, SkString *familyName) const =0 |
virtual sk_sp< SkFontStyleSet > | onCreateStyleSet (int index) const =0 |
virtual sk_sp< SkFontStyleSet > | onMatchFamily (const char familyName[]) const =0 |
virtual sk_sp< SkTypeface > | onMatchFamilyStyle (const char familyName[], const SkFontStyle &) const =0 |
virtual sk_sp< SkTypeface > | onMatchFamilyStyleCharacter (const char familyName[], const SkFontStyle &, const char *bcp47[], int bcp47Count, SkUnichar character) const =0 |
virtual sk_sp< SkTypeface > | onMakeFromData (sk_sp< SkData >, int ttcIndex) const =0 |
virtual sk_sp< SkTypeface > | onMakeFromStreamIndex (std::unique_ptr< SkStreamAsset >, int ttcIndex) const =0 |
virtual sk_sp< SkTypeface > | onMakeFromStreamArgs (std::unique_ptr< SkStreamAsset >, const SkFontArguments &) const =0 |
virtual sk_sp< SkTypeface > | onMakeFromFile (const char path[], int ttcIndex) const =0 |
virtual sk_sp< SkTypeface > | onLegacyMakeTypeface (const char familyName[], SkFontStyle) const =0 |
Additional Inherited Members | |
Static Public Member Functions inherited from SkFontMgr | |
static sk_sp< SkFontMgr > | RefEmpty () |
This class is essentially a collection of SkFontStyleSet_Custom, one SkFontStyleSet_Custom for each family. This class may be modified to load fonts from any source by changing the initialization.
Definition at line 110 of file SkFontMgr_custom.h.
Definition at line 112 of file SkFontMgr_custom.h.
|
explicit |
Definition at line 128 of file SkFontMgr_custom.cpp.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Implements SkFontMgr.
Definition at line 168 of file SkFontMgr_custom.cpp.
|
overrideprotectedvirtual |
Implements SkFontMgr.
Definition at line 163 of file SkFontMgr_custom.cpp.
|
overrideprotectedvirtual |
Implements SkFontMgr.
Definition at line 216 of file SkFontMgr_custom.cpp.
|
overrideprotectedvirtual |
Implements SkFontMgr.
Definition at line 197 of file SkFontMgr_custom.cpp.
|
overrideprotectedvirtual |
Implements SkFontMgr.
Definition at line 211 of file SkFontMgr_custom.cpp.
|
overrideprotectedvirtual |
Implements SkFontMgr.
Definition at line 206 of file SkFontMgr_custom.cpp.
|
overrideprotectedvirtual |
Implements SkFontMgr.
Definition at line 201 of file SkFontMgr_custom.cpp.
|
overrideprotectedvirtual |
May return NULL if the name is not found.
Implements SkFontMgr.
Definition at line 173 of file SkFontMgr_custom.cpp.
|
overrideprotectedvirtual |
Implements SkFontMgr.
Definition at line 182 of file SkFontMgr_custom.cpp.
|
overrideprotectedvirtual |
Implements SkFontMgr.
Definition at line 189 of file SkFontMgr_custom.cpp.