Otclient  14/8/2020
FontManager Class Reference

#include <fontmanager.h>

Public Member Functions

 FontManager ()
 
void terminate ()
 
void clearFonts ()
 
bool importFont (std::string file)
 
bool fontExists (const std::string &fontName)
 
BitmapFontPtr getFont (const std::string &fontName)
 
BitmapFontPtr getDefaultFont ()
 
void setDefaultFont (const std::string &fontName)
 

Detailed Description

Definition at line 29 of file fontmanager.h.

Constructor & Destructor Documentation

◆ FontManager()

FontManager::FontManager ( )

Definition at line 31 of file fontmanager.cpp.

Member Function Documentation

◆ clearFonts()

void FontManager::clearFonts ( )

Definition at line 42 of file fontmanager.cpp.

Here is the caller graph for this function:

◆ fontExists()

bool FontManager::fontExists ( const std::string &  fontName)

Definition at line 81 of file fontmanager.cpp.

Here is the caller graph for this function:

◆ getDefaultFont()

BitmapFontPtr FontManager::getDefaultFont ( )
inline

Definition at line 41 of file fontmanager.h.

Here is the caller graph for this function:

◆ getFont()

BitmapFontPtr FontManager::getFont ( const std::string &  fontName)

Definition at line 90 of file fontmanager.cpp.

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

◆ importFont()

bool FontManager::importFont ( std::string  file)

Definition at line 48 of file fontmanager.cpp.

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

◆ setDefaultFont()

void FontManager::setDefaultFont ( const std::string &  fontName)
inline

Definition at line 43 of file fontmanager.h.

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

◆ terminate()

void FontManager::terminate ( )

Definition at line 36 of file fontmanager.cpp.

Here is the caller graph for this function:

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