Definition at line 212 of file freetypefontcache.cpp.
◆ FreeTypeFontCacheFactory()
| FreeTypeFontCacheFactory::FreeTypeFontCacheFactory |
( |
| ) |
|
|
inline |
◆ ~FreeTypeFontCacheFactory()
| FreeTypeFontCacheFactory::~FreeTypeFontCacheFactory |
( |
| ) |
|
|
inlineoverride |
◆ FindFallbackFont()
◆ LoadFont() [1/2]
Loads the freetype font.
First try to load the fontname as if it were a path. If that fails, try to resolve the filename of the font using fontconfig, where the format is 'font family name' or 'font family name, font style'.
- Parameters
-
| fs | The font size to load. |
| fonttype | The type of font that is requested to be loaded. |
- Returns
- The loaded font, or
nullptr when none could be loaded.
Implements FontCacheFactory.
Definition at line 231 of file freetypefontcache.cpp.
References BASE_DIR, Debug, FioFindFullPath(), GetFontByFaceName(), GetFontCacheFontName(), GetFontCacheFontSize(), GetFontCacheSubSetting(), LoadFont(), settings, and TrueType.
Referenced by LoadFont().
◆ LoadFont() [2/2]
| std::unique_ptr< FontCache > FreeTypeFontCacheFactory::LoadFont |
( |
FontSize | fs, |
|
|
FT_Face | face, |
|
|
std::string_view | font_name, |
|
|
uint | size ) |
|
inlinestaticprivate |
◆ instance
The documentation for this class was generated from the following file: