Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
EmptyFontLoader Class Reference
Inheritance diagram for EmptyFontLoader:
SkFontMgr_Custom::SystemFontLoader

Public Member Functions

 EmptyFontLoader ()
 
void loadSystemFonts (const SkFontScanner *scanner, SkFontMgr_Custom::Families *families) const override
 
- Public Member Functions inherited from SkFontMgr_Custom::SystemFontLoader
virtual ~SystemFontLoader ()
 

Detailed Description

Definition at line 13 of file SkFontMgr_custom_empty.cpp.

Constructor & Destructor Documentation

◆ EmptyFontLoader()

EmptyFontLoader::EmptyFontLoader ( )
inline

Definition at line 15 of file SkFontMgr_custom_empty.cpp.

15{ }

Member Function Documentation

◆ loadSystemFonts()

void EmptyFontLoader::loadSystemFonts ( const SkFontScanner scanner,
SkFontMgr_Custom::Families families 
) const
inlineoverridevirtual

Implements SkFontMgr_Custom::SystemFontLoader.

Definition at line 17 of file SkFontMgr_custom_empty.cpp.

19 {
21 families->push_back().reset(family);
22 family->appendTypeface(sk_make_sp<SkTypeface_Empty>());
23 }
void appendTypeface(sk_sp< SkTypeface > typeface)
void reset(T *ptr=nullptr)
Definition SkRefCnt.h:310

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