#include <GUIFontManager.h>
|
| | GUIFontManager () |
| |
| | ~GUIFontManager () override |
| |
| void | Initialize () |
| | Initialize the font manager. Checks that fonts cache are up to date, otherwise update it.
|
| |
| bool | IsUpdating () const |
| |
| 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, KODI::UTILS::COLOR::Color textColor, KODI::UTILS::COLOR::Color shadowColor, const int iSize, const int iStyle, bool border=false, float lineSpacing=1.0f, float aspect=1.0f, const RESOLUTION_INFO *res=nullptr, bool preserveAspect=false) |
| |
| CGUIFont * | GetFont (const std::string &strFontName, bool fallback=true) |
| |
| CGUIFont * | GetDefaultFont (bool border=false) |
| | return a default font
|
| |
| void | Clear () |
| |
| void | FreeFontFile (CGUIFontTTF *pFont) |
| |
| std::vector< std::string > | GetUserFontsFamilyNames () |
| | Get the list of user fonts as family names from cache.
|
| |
| virtual | ~IMsgTargetCallback ()=default |
| |
◆ GUIFontManager()
| GUIFontManager::GUIFontManager |
( |
| ) |
|
|
default |
◆ ~GUIFontManager()
| GUIFontManager::~GUIFontManager |
( |
| ) |
|
|
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.
nullptr if no default font can be found.
◆ GetFont()
| CGUIFont * GUIFontManager::GetFont |
( |
const std::string & |
strFontName, |
|
|
bool |
fallback = true |
|
) |
| |
◆ GetFontFile()
| CGUIFontTTF * GUIFontManager::GetFontFile |
( |
const std::string & |
fontIdent | ) |
|
|
protected |
◆ GetStyle()
| void GUIFontManager::GetStyle |
( |
const TiXmlNode * |
fontNode, |
|
|
int & |
iStyle |
|
) |
| |
|
staticprotected |
◆ GetUserFontsFamilyNames()
| std::vector< std::string > GUIFontManager::GetUserFontsFamilyNames |
( |
| ) |
|
Get the list of user fonts as family names from cache.
- Returns
- The list of available fonts family names
◆ Initialize()
| void GUIFontManager::Initialize |
( |
| ) |
|
Initialize the font manager. Checks that fonts cache are up to date, otherwise update it.
◆ IsUpdating()
| bool GUIFontManager::IsUpdating |
( |
| ) |
const |
|
inline |
◆ LoadFonts() [1/2]
| void GUIFontManager::LoadFonts |
( |
const std::string & |
fontSet | ) |
|
◆ LoadFonts() [2/2]
| void GUIFontManager::LoadFonts |
( |
const TiXmlNode * |
fontNode | ) |
|
|
protected |
◆ LoadTTF()
| CGUIFont * GUIFontManager::LoadTTF |
( |
const std::string & |
strFontName, |
|
|
const std::string & |
strFilename, |
|
|
KODI::UTILS::COLOR::Color |
textColor, |
|
|
KODI::UTILS::COLOR::Color |
shadowColor, |
|
|
const int |
iSize, |
|
|
const int |
iStyle, |
|
|
bool |
border = false, |
|
|
float |
lineSpacing = 1.0f, |
|
|
float |
aspect = 1.0f, |
|
|
const RESOLUTION_INFO * |
res = nullptr, |
|
|
bool |
preserveAspect = false |
|
) |
| |
◆ OnMessage()
◆ ReloadTTFFonts()
| void GUIFontManager::ReloadTTFFonts |
( |
void |
| ) |
|
|
protected |
◆ RescaleFontSizeAndAspect()
◆ SettingOptionsFontsFiller()
| void GUIFontManager::SettingOptionsFontsFiller |
( |
const std::shared_ptr< const CSetting > & |
setting, |
|
|
std::vector< StringSettingOption > & |
list, |
|
|
std::string & |
current |
|
) |
| |
|
static |
◆ Unload()
| void GUIFontManager::Unload |
( |
const std::string & |
strFontName | ) |
|
◆ m_canReload
| bool GUIFontManager::m_canReload {true} |
|
protected |
◆ m_skinResolution
◆ m_vecFontFiles
| std::vector<std::unique_ptr<CGUIFontTTF> > GUIFontManager::m_vecFontFiles |
|
protected |
◆ m_vecFontInfo
◆ m_vecFonts
| std::vector<std::unique_ptr<CGUIFont> > GUIFontManager::m_vecFonts |
|
protected |
The documentation for this class was generated from the following files: