/
redgpu
/
ezEngine
Обзор
Документация
Войти
/
redgpu
/
ezEngine
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
Code/ThirdParty/RmlUi/Source/Core/FontEngineDefault/FontFace.h
38 строк
1 KB
C-Core
Updated RmlUi to 6.2 and added some improvements (#1813)
10 фев 2026, 01:19
Не верифицирован
10 фев 2026, 01:19
58e2d41
Код
Авторство
О чём код?
#pragma once #include "../../../Include/RmlUi/Core/StyleTypes.h" #include "FontTypes.h" namespace Rml { class FontFaceHandleDefault; class FontFace { public: FontFace(FontFaceHandleFreetype face, Style::FontStyle style, Style::FontWeight weight); ~FontFace(); Style::FontStyle GetStyle() const; Style::FontWeight GetWeight() const; /// Returns a handle for positioning and rendering this face at the given size. /// @param[in] size The size of the desired handle, in points. /// @param[in] load_default_glyphs True to load the default set of glyph (ASCII range). /// @return The font handle. FontFaceHandleDefault* GetHandle(int size, bool load_default_glyphs); /// Releases resources owned by sized font faces, including their textures and rendered glyphs. void ReleaseFontResources(); private: Style::FontStyle style; Style::FontWeight weight; // Key is font size using HandleMap = UnorderedMap<int, UniquePtr<FontFaceHandleDefault>>; HandleMap handles; FontFaceHandleFreetype face; }; } // namespace Rml