Files
yaze/src/app/platform/font_loader.h
2025-11-21 21:35:50 -05:00

33 lines
575 B
C++

#ifndef YAZE_APP_PLATFORM_FONTLOADER_H
#define YAZE_APP_PLATFORM_FONTLOADER_H
#include <vector>
#include "absl/status/status.h"
#include "imgui/imgui.h"
namespace yaze {
struct FontConfig {
const char* font_path;
float font_size;
ImFontConfig im_font_config;
ImFontConfig jp_conf_config;
};
struct FontState {
std::vector<FontConfig> fonts;
};
static FontState font_registry;
absl::Status LoadPackageFonts();
absl::Status ReloadPackageFont(const FontConfig& config);
void LoadSystemFonts();
} // namespace yaze
#endif // YAZE_APP_PLATFORM_FONTLOADER_H