Flutter Engine
The Flutter Engine
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
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259