yaze 0.2.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
font_loader.h
Go to the documentation of this file.
1#ifndef YAZE_APP_CORE_PLATFORM_FONTLOADER_H
2#define YAZE_APP_CORE_PLATFORM_FONTLOADER_H
3
4#include <vector>
5
6#include "absl/status/status.h"
7#include "imgui/imgui.h"
8
9namespace yaze {
10namespace core {
11
12struct FontConfig {
13 const char* font_path;
14 float font_size;
15 ImFontConfig im_font_config;
16 ImFontConfig jp_conf_config;
17};
18
19struct FontState {
20 std::vector<FontConfig> fonts;
21};
22
23static FontState font_registry;
24
25absl::Status LoadPackageFonts();
26
27absl::Status ReloadPackageFont(const FontConfig& config);
28
30
31} // namespace core
32} // namespace yaze
33
34#endif // YAZE_APP_CORE_PLATFORM_FONTLOADER_H
absl::Status ReloadPackageFont(const FontConfig &config)
absl::Status LoadPackageFonts()
void LoadSystemFonts()
Main namespace for the application.
Definition controller.cc:18
ImFontConfig jp_conf_config
Definition font_loader.h:16
ImFontConfig im_font_config
Definition font_loader.h:15
const char * font_path
Definition font_loader.h:13
std::vector< FontConfig > fonts
Definition font_loader.h:20