Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include <set>
#include <stdint.h>
#include <string>
#include <vector>
Namespaces | |
namespace | KODI |
namespace | KODI::UTILS |
namespace | KODI::UTILS::FONT |
namespace | KODI::UTILS::FONT::FONTPATH |
Functions | |
std::string | KODI::UTILS::FONT::FONTPATH::GetSystemFontPath (const std::string &filename) |
Provided a font filename returns the complete path for the font in the system font folder (if it exists) or an empty string otherwise. | |
bool | KODI::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. | |
bool | KODI::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. | |
std::string | KODI::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. | |
std::string | KODI::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. | |
bool | KODI::UTILS::FONT::IsSupportedFontExtension (const std::string &filepath) |
Check if a filename have a supported font extension. | |
void | KODI::UTILS::FONT::ClearTemporaryFonts () |
Removes all temporary fonts, e.g.those extract from MKV containers that are only available during playback. | |
Variables | |
constexpr const char * | KODI::UTILS::FONT::SUPPORTED_EXTENSIONS_MASK = ".ttf|.ttc|.otf" |
constexpr const char * | KODI::UTILS::FONT::FONT_DEFAULT_FILENAME = "arial.ttf" |
constexpr const char * | KODI::UTILS::FONT::FONTPATH::SYSTEM = "special://xbmc/media/Fonts/" |
constexpr const char * | KODI::UTILS::FONT::FONTPATH::USER = "special://home/media/Fonts/" |
constexpr const char * | KODI::UTILS::FONT::FONTPATH::TEMP = "special://temp/fonts/" |