backend-infra-engineer: Release v0.3.2 snapshot
This commit is contained in:
34
src/app/platform/font_loader.h
Normal file
34
src/app/platform/font_loader.h
Normal file
@@ -0,0 +1,34 @@
|
||||
#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
|
||||
Reference in New Issue
Block a user