Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Functions
SkFontMgr_directory.h File Reference
#include "include/core/SkRefCnt.h"
#include "include/core/SkTypes.h"

Go to the source code of this file.

Functions

SK_API sk_sp< SkFontMgrSkFontMgr_New_Custom_Directory (const char *dir)
 

Function Documentation

◆ SkFontMgr_New_Custom_Directory()

SK_API 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}