#include <GUIFontManager.h>
|
| GUIFontManager (void) |
|
| ~GUIFontManager (void) override |
|
bool | OnMessage (CGUIMessage &message) override |
|
void | Unload (const std::string &strFontName) |
|
void | LoadFonts (const std::string &fontSet) |
|
CGUIFont * | LoadTTF (const std::string &strFontName, const std::string &strFilename, UTILS::Color textColor, UTILS::Color shadowColor, const int iSize, const int iStyle, bool border=false, float lineSpacing=1.0f, float aspect=1.0f, const RESOLUTION_INFO *res=NULL, bool preserveAspect=false) |
|
CGUIFont * | GetFont (const std::string &strFontName, bool fallback=true) |
|
CGUIFont * | GetDefaultFont (bool border=false) |
| return a default font More...
|
|
void | Clear () |
|
void | FreeFontFile (CGUIFontTTFBase *pFont) |
|
virtual | ~IMsgTargetCallback ()=default |
|
◆ GUIFontManager()
GUIFontManager::GUIFontManager |
( |
void |
| ) |
|
◆ ~GUIFontManager()
GUIFontManager::~GUIFontManager |
( |
void |
| ) |
|
|
override |
◆ Clear()
void GUIFontManager::Clear |
( |
| ) |
|
◆ FreeFontFile()
◆ GetDefaultFont()
CGUIFont * GUIFontManager::GetDefaultFont |
( |
bool |
border = false | ) |
|
return a default font
- Parameters
-
border | whether the font should be a font with an outline |
- Returns
- the font. NULL if no default font can be found.
◆ GetFont()
CGUIFont * GUIFontManager::GetFont |
( |
const std::string & |
strFontName, |
|
|
bool |
fallback = true |
|
) |
| |
◆ GetFontFile()
CGUIFontTTFBase * GUIFontManager::GetFontFile |
( |
const std::string & |
strFontFile | ) |
|
|
protected |
◆ GetStyle()
void GUIFontManager::GetStyle |
( |
const TiXmlNode * |
fontNode, |
|
|
int & |
iStyle |
|
) |
| |
|
staticprotected |
◆ LoadFonts() [1/2]
void GUIFontManager::LoadFonts |
( |
const std::string & |
fontSet | ) |
|
◆ LoadFonts() [2/2]
void GUIFontManager::LoadFonts |
( |
const TiXmlNode * |
fontNode | ) |
|
|
protected |
- Todo:
- Why do we tolower() this shit?
◆ LoadTTF()
CGUIFont * GUIFontManager::LoadTTF |
( |
const std::string & |
strFontName, |
|
|
const std::string & |
strFilename, |
|
|
UTILS::Color |
textColor, |
|
|
UTILS::Color |
shadowColor, |
|
|
const int |
iSize, |
|
|
const int |
iStyle, |
|
|
bool |
border = false , |
|
|
float |
lineSpacing = 1.0f , |
|
|
float |
aspect = 1.0f , |
|
|
const RESOLUTION_INFO * |
res = NULL , |
|
|
bool |
preserveAspect = false |
|
) |
| |
◆ OnMessage()
bool GUIFontManager::OnMessage |
( |
CGUIMessage & |
message | ) |
|
|
overridevirtual |
◆ ReloadTTFFonts()
void GUIFontManager::ReloadTTFFonts |
( |
void |
| ) |
|
|
protected |
◆ RescaleFontSizeAndAspect()
void GUIFontManager::RescaleFontSizeAndAspect |
( |
float * |
size, |
|
|
float * |
aspect, |
|
|
const RESOLUTION_INFO & |
sourceRes, |
|
|
bool |
preserveAspect |
|
) |
| |
|
staticprotected |
◆ SettingOptionsFontsFiller()
void GUIFontManager::SettingOptionsFontsFiller |
( |
std::shared_ptr< const CSetting > |
setting, |
|
|
std::vector< std::pair< std::string, std::string > > & |
list, |
|
|
std::string & |
current, |
|
|
void * |
data |
|
) |
| |
|
static |
◆ Unload()
void GUIFontManager::Unload |
( |
const std::string & |
strFontName | ) |
|
◆ m_canReload
bool GUIFontManager::m_canReload |
|
protected |
◆ m_skinResolution
◆ m_vecFontFiles
◆ m_vecFontInfo
◆ m_vecFonts
std::vector<CGUIFont*> GUIFontManager::m_vecFonts |
|
protected |
The documentation for this class was generated from the following files: