Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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