yaze 0.3.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_PLATFORM_FONTLOADER_H
2#define YAZE_APP_PLATFORM_FONTLOADER_H
3
4#include <vector>
5
6#include "absl/status/status.h"
7#include "imgui/imgui.h"
8
9namespace yaze {
10
11struct FontConfig {
12 const char* font_path;
13 float font_size;
14 ImFontConfig im_font_config;
15 ImFontConfig jp_conf_config;
16};
17
18struct FontState {
19 std::vector<FontConfig> fonts;
20};
21
22static FontState font_registry;
23
24absl::Status LoadPackageFonts();
25
26absl::Status ReloadPackageFont(const FontConfig& config);
27
28absl::Status LoadFontFromMemory(const std::string& name,
29 const std::string& data, float size_pixels);
30
32
33} // namespace yaze
34
35#endif // YAZE_APP_PLATFORM_FONTLOADER_H
absl::Status ReloadPackageFont(const FontConfig &config)
absl::Status LoadPackageFonts()
void LoadSystemFonts()
absl::Status LoadFontFromMemory(const std::string &name, const std::string &data, float size_pixels)
ImFontConfig jp_conf_config
Definition font_loader.h:15
ImFontConfig im_font_config
Definition font_loader.h:14
const char * font_path
Definition font_loader.h:12
std::vector< FontConfig > fonts
Definition font_loader.h:19