Flutter Engine
The Flutter Engine
|
#include <TestFontCollection.h>
Public Member Functions | |
TestFontCollection (const std::string &resourceDir, bool testOnly=false, bool loadFonts=true) | |
size_t | fontsFound () const |
bool | addFontFromFile (const std::string &path, const std::string &familyName="") |
Public Member Functions inherited from skia::textlayout::FontCollection | |
FontCollection () | |
size_t | getFontManagersCount () const |
void | setAssetFontManager (sk_sp< SkFontMgr > fontManager) |
void | setDynamicFontManager (sk_sp< SkFontMgr > fontManager) |
void | setTestFontManager (sk_sp< SkFontMgr > fontManager) |
void | setDefaultFontManager (sk_sp< SkFontMgr > fontManager) |
void | setDefaultFontManager (sk_sp< SkFontMgr > fontManager, const char defaultFamilyName[]) |
void | setDefaultFontManager (sk_sp< SkFontMgr > fontManager, const std::vector< SkString > &defaultFamilyNames) |
sk_sp< SkFontMgr > | getFallbackManager () const |
std::vector< sk_sp< SkTypeface > > | findTypefaces (const std::vector< SkString > &familyNames, SkFontStyle fontStyle) |
std::vector< sk_sp< SkTypeface > > | findTypefaces (const std::vector< SkString > &familyNames, SkFontStyle fontStyle, const std::optional< FontArguments > &fontArgs) |
sk_sp< SkTypeface > | defaultFallback (SkUnichar unicode, SkFontStyle fontStyle, const SkString &locale) |
sk_sp< SkTypeface > | defaultEmojiFallback (SkUnichar emojiStart, SkFontStyle fontStyle, const SkString &locale) |
sk_sp< SkTypeface > | defaultFallback () |
void | disableFontFallback () |
void | enableFontFallback () |
bool | fontFallbackEnabled () |
ParagraphCache * | getParagraphCache () |
void | clearCaches () |
Public Member Functions inherited from SkRefCntBase | |
SkRefCntBase () | |
virtual | ~SkRefCntBase () |
bool | unique () const |
void | ref () const |
void | unref () const |
Definition at line 10 of file TestFontCollection.h.
skia::textlayout::TestFontCollection::TestFontCollection | ( | const std::string & | resourceDir, |
bool | testOnly = false , |
||
bool | loadFonts = true |
||
) |
Definition at line 24 of file TestFontCollection.cpp.
bool skia::textlayout::TestFontCollection::addFontFromFile | ( | const std::string & | path, |
const std::string & | familyName = "" |
||
) |
Definition at line 51 of file TestFontCollection.cpp.
|
inline |
Definition at line 16 of file TestFontCollection.h.