Implementation of GeneratorBase to create a FreeTypeFace from a face index / file pair via lib FreeType's FT_New_Memory_Face.
More...
#include <freetype_face.hpp>
Implementation of GeneratorBase to create a FreeTypeFace from a face index / file pair via lib FreeType's FT_New_Memory_Face.
Definition at line 127 of file freetype_face.hpp.
◆ GeneratorMemory() [1/2]
Ctor.
- Parameters
-
src | holder of data; modifying the data after creating a GeneratorMemory that uses it is undefined and crashing behavior. |
face_index | face index of data |
◆ GeneratorMemory() [2/2]
fastuidraw::FreeTypeFace::GeneratorMemory::GeneratorMemory |
( |
c_string |
filename, |
|
|
int |
face_index |
|
) |
| |
Ctor. Provided as a convenience, a DataBuffer object is created from the named file and used as the memory source.
- Parameters
-
filename | name of file from which to source the created FT_Face objects |
face_index | face index of file |
◆ create_face_implement()
virtual FT_Face fastuidraw::FreeTypeFace::GeneratorMemory::create_face_implement |
( |
FT_Library |
lib | ) |
const |
|
protectedvirtual |
To be implemented by a derived class to create a FT_Face using a given (and locked by the caller) FT_Library object.
- Parameters
-
lib | FT_Libray with which to create the FT_Face |
Implements fastuidraw::FreeTypeFace::GeneratorBase.
The documentation for this class was generated from the following file: