18#ifndef INCLUDED_FONTMANAGER
19#define INCLUDED_FONTMANAGER
28#include <unordered_map>
61 using FontsMap = std::unordered_map<CStrIntern, CFont>;
Definition: ConfigDB.h:229
Font manager: loads and caches bitmap fonts.
Definition: FontManager.h:41
static constexpr float GAMMA_CORRECTION
Definition: FontManager.h:75
std::unordered_map< CStrIntern, CFont > FontsMap
Definition: FontManager.h:61
std::unique_ptr< FT_LibraryRec_, decltype(&ftLibraryDeleter)> m_FreeType
Definition: FontManager.h:57
float m_GUIScale
Definition: FontManager.h:64
void UploadAtlasTexturesToGPU(Renderer::Backend::IDeviceCommandContext *deviceCommandContext)
Definition: FontManager.cpp:263
static void ftLibraryDeleter(FT_Library library)
Definition: FontManager.h:52
std::unique_ptr< CConfigDBHook > m_GUIScaleHook
Definition: FontManager.h:65
NONCOPYABLE(CFontManager)
Renderer::Backend::IDevice * m_Device
Definition: FontManager.h:67
CFontManager(Renderer::Backend::IDevice *device)
Definition: FontManager.cpp:105
FontsMap m_Fonts
Definition: FontManager.h:62
CFont * LoadFont(CStrIntern fontName, CStrIntern locale)
Definition: FontManager.cpp:128
std::unique_ptr< std::array< float, 256 > > m_GammaCorrectionLUT
Definition: FontManager.h:59
Storage for a bitmap font.
Definition: Font.h:50
Interned 8-bit strings.
Definition: CStrIntern.h:42
Definition: IDeviceCommandContext.h:46
Definition: Canvas2D.h:30
library
Definition: tests.py:24