Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Functions
SkFontMgr_android.h File Reference
#include "include/core/SkRefCnt.h"

Go to the source code of this file.

Classes

struct  SkFontMgr_Android_CustomFonts
 

Functions

SK_API sk_sp< SkFontMgrSkFontMgr_New_Android (const SkFontMgr_Android_CustomFonts *custom)
 
SK_API sk_sp< SkFontMgrSkFontMgr_New_Android (const SkFontMgr_Android_CustomFonts *custom, std::unique_ptr< SkFontScanner > scanner)
 

Function Documentation

◆ SkFontMgr_New_Android() [1/2]

SK_API sk_sp< SkFontMgr > SkFontMgr_New_Android ( const SkFontMgr_Android_CustomFonts custom)

Create a font manager for Android. If 'custom' is NULL, use only system fonts.

Definition at line 510 of file SkFontMgr_android.cpp.

510 {
511 return SkFontMgr_New_Android(custom, std::make_unique<SkFontScanner_FreeType>());
512}
sk_sp< SkFontMgr > SkFontMgr_New_Android(const SkFontMgr_Android_CustomFonts *custom)

◆ SkFontMgr_New_Android() [2/2]

SK_API sk_sp< SkFontMgr > SkFontMgr_New_Android ( const SkFontMgr_Android_CustomFonts custom,
std::unique_ptr< SkFontScanner scanner 
)

Definition at line 515 of file SkFontMgr_android.cpp.

515 {
516 if (custom) {
517 SkASSERT(0 <= custom->fSystemFontUse);
518 SkASSERT(custom->fSystemFontUse < std::size(gSystemFontUseStrings));
519 SkDEBUGF("SystemFontUse: %s BasePath: %s Fonts: %s FallbackFonts: %s\n",
520 gSystemFontUseStrings[custom->fSystemFontUse],
521 custom->fBasePath,
522 custom->fFontsXml,
523 custom->fFallbackFontsXml);
524 }
525 return sk_make_sp<SkFontMgr_Android>(custom, std::move(scanner));
526}
#define SkASSERT(cond)
Definition SkAssert.h:116
#define SkDEBUGF(...)
Definition SkDebug.h:24