FastUIDraw
Public Member Functions | Protected Member Functions | List of all members
fastuidraw::FreeTypeFace::GeneratorMemory Class Reference

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>

Inheritance diagram for fastuidraw::FreeTypeFace::GeneratorMemory:
Inheritance graph
[legend]

Public Member Functions

 GeneratorMemory (const reference_counted_ptr< const DataBufferBase > &src, int face_index)
 
 GeneratorMemory (c_string filename, int face_index)
 
- Public Member Functions inherited from fastuidraw::FreeTypeFace::GeneratorBase
enum return_code check_creation (reference_counted_ptr< FreeTypeLib > lib=reference_counted_ptr< FreeTypeLib >()) const
 
virtual reference_counted_ptr< FreeTypeFacecreate_face (reference_counted_ptr< FreeTypeLib > lib=reference_counted_ptr< FreeTypeLib >()) const
 
- Public Member Functions inherited from fastuidraw::reference_counted_base< T, Counter >
 reference_counted_base (void)
 

Protected Member Functions

virtual FT_Face create_face_implement (FT_Library lib) const
 

Additional Inherited Members

- Static Public Member Functions inherited from fastuidraw::reference_counted_base< T, Counter >
static void add_reference (const reference_counted_base< T, Counter > *p)
 
static void remove_reference (const reference_counted_base< T, Counter > *p)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ GeneratorMemory() [1/2]

fastuidraw::FreeTypeFace::GeneratorMemory::GeneratorMemory ( const reference_counted_ptr< const DataBufferBase > &  src,
int  face_index 
)

Ctor.

Parameters
srcholder of data; modifying the data after creating a GeneratorMemory that uses it is undefined and crashing behavior.
face_indexface 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
filenamename of file from which to source the created FT_Face objects
face_indexface index of file

Member Function Documentation

◆ 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
libFT_Libray with which to create the FT_Face

Implements fastuidraw::FreeTypeFace::GeneratorBase.


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