Luanti 5.11.0-dev
 
Loading...
Searching...
No Matches
irr::gui::SGUITTFace Struct Reference

#include <CGUITTFont.h>

+ Inheritance diagram for irr::gui::SGUITTFace:
+ Collaboration diagram for irr::gui::SGUITTFace:

Public Member Functions

 SGUITTFace (std::string &&buffer)
 
 ~SGUITTFace ()
 
void dropFilename ()
 

Static Public Member Functions

static SGUITTFacecreateFace (std::string &&buffer)
 
static SGUITTFaceloadFace (const io::path &filename)
 

Public Attributes

std::optional< std::string > filename
 
FT_Face face
 
std::string face_buffer
 Must not be deallocated until we are done with the face!
 

Static Private Member Functions

static FT_Library getFreeTypeLibrary ()
 

Static Private Attributes

static std::map< io::path, SGUITTFace * > faces
 
static FT_Library freetype_library = nullptr
 
static std::size_t n_faces = 0
 

Constructor & Destructor Documentation

◆ SGUITTFace()

irr::gui::SGUITTFace::SGUITTFace ( std::string && buffer)

References face, and n_faces.

Referenced by createFace().

+ Here is the caller graph for this function:

◆ ~SGUITTFace()

irr::gui::SGUITTFace::~SGUITTFace ( )

References face, freetype_library, and n_faces.

Member Function Documentation

◆ createFace()

SGUITTFace * irr::gui::SGUITTFace::createFace ( std::string && buffer)
static

References SGUITTFace(), face, and getFreeTypeLibrary().

Referenced by loadFace(), and FontEngine::setMediaFont().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ dropFilename()

void irr::gui::SGUITTFace::dropFilename ( )

References faces, and filename.

◆ getFreeTypeLibrary()

FT_Library irr::gui::SGUITTFace::getFreeTypeLibrary ( )
staticprivate

References FATAL_ERROR, and freetype_library.

Referenced by createFace().

+ Here is the caller graph for this function:

◆ loadFace()

SGUITTFace * irr::gui::SGUITTFace::loadFace ( const io::path & filename)
static

References createFace(), errorstream, face, faces, filename, and fs::ReadFile().

Referenced by FontEngine::initFont().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ face

FT_Face irr::gui::SGUITTFace::face

◆ face_buffer

std::string irr::gui::SGUITTFace::face_buffer

Must not be deallocated until we are done with the face!

◆ faces

std::map< io::path, SGUITTFace * > irr::gui::SGUITTFace::faces
staticprivate

Referenced by dropFilename(), and loadFace().

◆ filename

std::optional<std::string> irr::gui::SGUITTFace::filename

Referenced by dropFilename(), and loadFace().

◆ freetype_library

FT_Library irr::gui::SGUITTFace::freetype_library = nullptr
staticprivate

Referenced by ~SGUITTFace(), and getFreeTypeLibrary().

◆ n_faces

std::size_t irr::gui::SGUITTFace::n_faces = 0
staticprivate

Referenced by SGUITTFace(), and ~SGUITTFace().


The documentation for this struct was generated from the following files: