Flutter Engine
The Flutter Engine
|
#include <SkFontConfigInterface_direct.h>
Public Member Functions | |
SkFontConfigInterfaceDirect (FcConfig *fc) | |
~SkFontConfigInterfaceDirect () override | |
bool | matchFamilyName (const char familyName[], SkFontStyle requested, FontIdentity *outFontIdentifier, SkString *outFamilyName, SkFontStyle *outStyle) override |
SkStreamAsset * | openStream (const FontIdentity &) override |
Public Member Functions inherited from SkFontConfigInterface | |
virtual bool | matchFamilyName (const char familyName[], SkFontStyle requested, FontIdentity *outFontIdentifier, SkString *outFamilyName, SkFontStyle *outStyle)=0 |
virtual SkStreamAsset * | openStream (const FontIdentity &)=0 |
virtual sk_sp< SkTypeface > | makeTypeface (const FontIdentity &identity, sk_sp< SkFontMgr > mgr) |
Public Member Functions inherited from SkRefCntBase | |
SkRefCntBase () | |
virtual | ~SkRefCntBase () |
bool | unique () const |
void | ref () const |
void | unref () const |
Protected Member Functions | |
virtual bool | isAccessible (const char *filename) |
Additional Inherited Members | |
Public Types inherited from SkFontConfigInterface | |
using | INHERITED = SkRefCnt |
Static Public Member Functions inherited from SkFontConfigInterface | |
static sk_sp< SkFontConfigInterface > | RefGlobal () |
static void | SetGlobal (sk_sp< SkFontConfigInterface > fc) |
static SkFontConfigInterface * | GetSingletonDirectInterface () |
Definition at line 16 of file SkFontConfigInterface_direct.h.
SkFontConfigInterfaceDirect::SkFontConfigInterfaceDirect | ( | FcConfig * | fc | ) |
Create around a FontConfig instance. If 'fc' is nullptr, each method call will use the current config. Takes ownership of 'fc' and will call FcConfigDestroy on it.
Definition at line 496 of file SkFontConfigInterface_direct.cpp.
|
override |
Definition at line 501 of file SkFontConfigInterface_direct.cpp.
|
protectedvirtual |
Definition at line 507 of file SkFontConfigInterface_direct.cpp.
|
overridevirtual |
Given a familyName and style, find the best match.
If a match is found, return true and set its outFontIdentifier. If outFamilyName is not null, assign the found familyName to it (which may differ from the requested familyName). If outStyle is not null, assign the found style to it (which may differ from the requested style).
If a match is not found, return false, and ignore all out parameters.
Implements SkFontConfigInterface.
Definition at line 588 of file SkFontConfigInterface_direct.cpp.
|
overridevirtual |
Given a FontRef, open a stream to access its data, or return null if the FontRef's data is not available. The caller is responsible for deleting the stream when it is done accessing the data.
Implements SkFontConfigInterface.
Definition at line 707 of file SkFontConfigInterface_direct.cpp.