Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Functions
SkFontMgr_custom_directory.cpp File Reference
#include "include/core/SkRefCnt.h"
#include "include/core/SkStream.h"
#include "include/ports/SkFontMgr_directory.h"
#include "src/core/SkFontScanner.h"
#include "src/core/SkOSFile.h"
#include "src/ports/SkFontMgr_custom.h"
#include "src/ports/SkTypeface_FreeType.h"
#include "src/utils/SkOSPath.h"

Go to the source code of this file.

Classes

class  DirectorySystemFontLoader
 

Functions

sk_sp< SkFontMgrSkFontMgr_New_Custom_Directory (const char *dir)
 

Function Documentation

◆ SkFontMgr_New_Custom_Directory()

sk_sp< SkFontMgr > SkFontMgr_New_Custom_Directory ( const char *  dir)

Create a custom font manager which scans a given directory for font files. This font manager uses FreeType for rendering.

Definition at line 116 of file SkFontMgr_custom_directory.cpp.

116 {
117 return sk_make_sp<SkFontMgr_Custom>(DirectorySystemFontLoader(dir));
118}