Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Namespaces | |
namespace | FONTPATH |
Functions | |
bool | GetFontFamilyNames (const std::vector< uint8_t > &buffer, std::set< std::string > &familyNames) |
Get the font family name from a font file, in case of font collection (.ttc) will take the family name of all fonts. | |
bool | GetFontFamilyNames (const std::string &filepath, std::set< std::string > &familyNames) |
Get the font family name from a font file, in case of font collection (.ttc) will take the family name of all fonts. | |
std::string | GetFontFamily (std::vector< uint8_t > &buffer) |
Get the font family name from a font file, in case of font collection (.ttc) will take the first available. | |
std::string | GetFontFamily (const std::string &filepath) |
Get the font family name from a font file, in case of font collection (.ttc) will take the first available. | |
bool | IsSupportedFontExtension (const std::string &filepath) |
Check if a filename have a supported font extension. | |
void | ClearTemporaryFonts () |
Removes all temporary fonts, e.g.those extract from MKV containers that are only available during playback. | |
Variables | |
constexpr const char * | SUPPORTED_EXTENSIONS_MASK = ".ttf|.ttc|.otf" |
constexpr const char * | FONT_DEFAULT_FILENAME = "arial.ttf" |
void UTILS::FONT::ClearTemporaryFonts | ( | ) |
Removes all temporary fonts, e.g.those extract from MKV containers that are only available during playback.
std::string UTILS::FONT::GetFontFamily | ( | const std::string & | filepath | ) |
Get the font family name from a font file, in case of font collection (.ttc) will take the first available.
filepath | The path where read the font data |
std::string UTILS::FONT::GetFontFamily | ( | std::vector< uint8_t > & | buffer | ) |
Get the font family name from a font file, in case of font collection (.ttc) will take the first available.
buffer | The font data |
bool UTILS::FONT::GetFontFamilyNames | ( | const std::string & | filepath, |
std::set< std::string > & | familyNames ) |
Get the font family name from a font file, in case of font collection (.ttc) will take the family name of all fonts.
filepath | The path where read the font data |
familyNames | The font family names |
bool UTILS::FONT::GetFontFamilyNames | ( | const std::vector< uint8_t > & | buffer, |
std::set< std::string > & | familyNames ) |
Get the font family name from a font file, in case of font collection (.ttc) will take the family name of all fonts.
buffer | The font data |
familyNames | The font family names |
bool UTILS::FONT::IsSupportedFontExtension | ( | const std::string & | filepath | ) |
Check if a filename have a supported font extension.
filepath | The font file path |
|
constexpr |
|
constexpr |