Euphoria
font.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "io/json.h"
4 
5 namespace eu::files::font
6 {
7  struct FontFile
8  {
9  std::string file;
10  std::string characters;
11  };
12 
13  struct SingleImage
14  {
15  std::string file;
16  std::string alias;
17  float scale = 1.0f;
18  int bearing_x;
19  int bearing_y;
20  int advance;
21  };
22 
23  struct Root
24  {
25  int size;
26 
27  std::vector<FontFile> fonts;
28  std::vector<SingleImage> images;
29  bool builtin8 = false;
30  bool builtin13 = false;
31  };
32 
34 }
JSON_PARSE_FUNC(FontFile)
Definition: font.cc:8
std::string characters
Definition: font.h:10
std::string file
Definition: font.h:9
std::vector< SingleImage > images
Definition: font.h:28
std::vector< FontFile > fonts
Definition: font.h:27