Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
FontUtils.cpp File Reference
#include "FontUtils.h"
#include "FileItem.h"
#include "FileItemList.h"
#include "StringUtils.h"
#include "URIUtils.h"
#include "filesystem/Directory.h"
#include "filesystem/File.h"
#include "filesystem/SpecialProtocol.h"
#include "utils/CharsetConverter.h"
#include "utils/log.h"
#include <ft2build.h>

Namespaces

namespace  KODI
 
namespace  KODI::UTILS
 
namespace  KODI::UTILS::FONT
 

Functions

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.