10#include "../third_party/imgui/imgui.h"
11#include "../system/system_utils.h"
32 SYSTEM_LOG <<
"[FontManager] Initialized" << std::endl;
38 SYSTEM_LOG <<
"[FontManager] ERROR: Not initialized. Call Initialize() first." << std::endl;
59 config.GlyphMinAdvanceX = fontSize;
72 SYSTEM_LOG <<
"[FontManager] ERROR: Failed to load Font Awesome from: " <<
fontPath << std::endl;
79 SYSTEM_LOG <<
"[FontManager] Font Awesome loaded successfully from: " <<
fontPath << std::endl;
86 SYSTEM_LOG <<
"[FontManager] ERROR: Not initialized. Call Initialize() first." << std::endl;
101 if (
font ==
nullptr) {
102 SYSTEM_LOG <<
"[FontManager] ERROR: Failed to load font from: " <<
fontPath << std::endl;
110 SYSTEM_LOG <<
"[FontManager] Font '" << name <<
"' loaded successfully" << std::endl;
ComponentTypeID GetComponentTypeID_Static()
Font management system for ImGui.
Font Awesome 6 Free icons for ImGui.
#define FONT_ICON_RANGE_FA_MIN
#define FONT_ICON_RANGE_FA_MAX
Singleton manager for custom fonts.
void Initialize()
Initialize font system Must be called after ImGui context creation but before first frame.
ImFont * LoadFont(const std::string &fontPath, float fontSize, const std::string &fontName="")
Load a custom font.
static FontManager & Get()
Get singleton instance.
bool LoadFontAwesome(const std::string &fontPath, float fontSize=16.0f)
Load Font Awesome font.
< Provides AssetID and INVALID_ASSET_ID