Euphoria
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
libs
files
src
files
font.cc
Go to the documentation of this file.
1
#include "
files/font.h
"
2
3
#include "
io/json.h
"
4
5
6
namespace
eu::files::font
7
{
8
JSON_PARSE_FUNC
(
FontFile
)
9
{
10
JSON_BEGIN_OBJECT
();
11
12
JSON_VAL
(String, file);
13
JSON_VAL
(String, characters);
14
15
JSON_END_OBJECT
();
16
}
17
18
19
JSON_PARSE_FUNC
(
SingleImage
)
20
{
21
JSON_BEGIN_OBJECT
();
22
23
JSON_VAL
(String, file);
24
JSON_VAL
(String, alias);
25
JSON_OPT_VAL
(Number, scale );
26
JSON_VAL
(
Int
, bearing_x);
27
JSON_VAL
(
Int
, bearing_y);
28
JSON_VAL
(
Int
, advance);
29
30
JSON_END_OBJECT
();
31
}
32
33
34
JSON_PARSE_FUNC
(
Root
)
35
{
36
JSON_BEGIN_OBJECT
();
37
38
JSON_VAL
(
Int
, size);
39
JSON_ARRAY
(
FontFile
, fonts);
40
JSON_ARRAY
(
SingleImage
, images);
41
JSON_OPT_VAL
(Bool, builtin8);
42
JSON_OPT_VAL
(Bool, builtin13);
43
44
JSON_END_OBJECT
();
45
}
46
}
font.h
json.h
JSON_BEGIN_OBJECT
#define JSON_BEGIN_OBJECT()
Definition:
json.h:86
JSON_VAL
#define JSON_VAL(TYPE, PROP)
Definition:
json.h:128
JSON_END_OBJECT
#define JSON_END_OBJECT()
Definition:
json.h:166
JSON_ARRAY
#define JSON_ARRAY(TYPE, PROP)
Definition:
json.h:132
JSON_OPT_VAL
#define JSON_OPT_VAL(TYPE, PROP)
Definition:
json.h:129
eu::files::font
Definition:
font.cc:7
eu::files::font::JSON_PARSE_FUNC
JSON_PARSE_FUNC(FontFile)
Definition:
font.cc:8
eu::render::gl::Int
int Int
Definition:
gltypes.h:7
eu::files::font::FontFile
Definition:
font.h:8
eu::files::font::Root
Definition:
font.h:24
eu::files::font::SingleImage
Definition:
font.h:14