Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | List of all members
FreeTypeLibrary Class Reference
Inheritance diagram for FreeTypeLibrary:
SkNoncopyable

Public Member Functions

 FreeTypeLibrary ()
 
 ~FreeTypeLibrary ()
 
FT_Library library ()
 

Detailed Description

Definition at line 145 of file SkFontHost_FreeType.cpp.

Constructor & Destructor Documentation

◆ FreeTypeLibrary()

FreeTypeLibrary::FreeTypeLibrary ( )
inline

Definition at line 147 of file SkFontHost_FreeType.cpp.

147 : fLibrary(nullptr) {
148 if (FT_New_Library(&gFTMemory, &fLibrary)) {
149 return;
150 }
151 FT_Add_Default_Modules(fLibrary);
152 FT_Set_Default_Properties(fLibrary);
153
154 // Subpixel anti-aliasing may be unfiltered until the LCD filter is set.
155 // Newer versions may still need this, so this test with side effects must come first.
156 // The default has changed over time, so this doesn't mean the same thing to all users.
157 FT_Library_SetLcdFilter(fLibrary, FT_LCD_FILTER_DEFAULT);
158 }
FT_MemoryRec_ gFTMemory

◆ ~FreeTypeLibrary()

FreeTypeLibrary::~FreeTypeLibrary ( )
inline

Definition at line 159 of file SkFontHost_FreeType.cpp.

159 {
160 if (fLibrary) {
161 FT_Done_Library(fLibrary);
162 }
163 }

Member Function Documentation

◆ library()

FT_Library FreeTypeLibrary::library ( )
inline

Definition at line 165 of file SkFontHost_FreeType.cpp.

165{ return fLibrary; }

The documentation for this class was generated from the following file: