Flutter Engine
The Flutter Engine
Functions
SkFontMgr_android.cpp File Reference
#include "include/core/SkTypes.h"
#include "include/core/SkData.h"
#include "include/core/SkFontMgr.h"
#include "include/core/SkFontStyle.h"
#include "include/core/SkPaint.h"
#include "include/core/SkRefCnt.h"
#include "include/core/SkStream.h"
#include "include/core/SkString.h"
#include "include/ports/SkFontMgr_android.h"
#include "include/private/base/SkFixed.h"
#include "include/private/base/SkTArray.h"
#include "include/private/base/SkTDArray.h"
#include "include/private/base/SkTemplates.h"
#include "src/base/SkTSearch.h"
#include "src/core/SkFontDescriptor.h"
#include "src/core/SkFontScanner.h"
#include "src/core/SkOSFile.h"
#include "src/core/SkTypefaceCache.h"
#include "src/ports/SkFontMgr_android_parser.h"
#include "src/ports/SkTypeface_FreeType.h"
#include <algorithm>
#include <limits>

Go to the source code of this file.

Functions

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

Function Documentation

◆ SkFontMgr_New_Android() [1/2]

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_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