Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
CTCaer
GitHub Repository: CTCaer/hekate
Path: blob/master/bdk/libs/lvgl/lv_fonts/lv_font_builtin.c
1476 views
1
/*
2
* Copyright (c) 2019 CTCaer
3
*
4
* This program is free software; you can redistribute it and/or modify it
5
* under the terms and conditions of the GNU General Public License,
6
* version 2, as published by the Free Software Foundation.
7
*
8
* This program is distributed in the hope it will be useful, but WITHOUT
9
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11
* more details.
12
*
13
* You should have received a copy of the GNU General Public License
14
* along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*/
16
17
/**
18
* @file lv_font_built_in.c
19
*
20
*/
21
22
/*********************
23
* INCLUDES
24
*********************/
25
#include "lv_font_builtin.h"
26
27
/*********************
28
* DEFINES
29
*********************/
30
31
/**********************
32
* TYPEDEFS
33
**********************/
34
35
/**********************
36
* STATIC PROTOTYPES
37
**********************/
38
39
/**********************
40
* STATIC VARIABLES
41
**********************/
42
43
/**********************
44
* MACROS
45
**********************/
46
47
/**********************
48
* GLOBAL FUNCTIONS
49
**********************/
50
51
/**
52
* Initialize the built-in fonts
53
*/
54
void lv_font_builtin_init(void)
55
{
56
/*InterUI 20*/
57
#if USE_INTERUI_20 != 0
58
lv_font_add(&interui_20, NULL);
59
#endif
60
61
/*SYMBOL 20*/
62
#if USE_HEKATE_SYMBOL_20 != 0
63
#if USE_INTERUI_20 != 0
64
lv_font_add(&hekate_symbol_20, &interui_20);
65
#else
66
lv_font_add(&hekate_symbol_20, NULL);
67
#endif
68
#endif
69
70
/*InterUI 30*/
71
#if USE_INTERUI_30 != 0
72
lv_font_add(&interui_30, NULL);
73
#endif
74
75
/*SYMBOL 30*/
76
#if USE_HEKATE_SYMBOL_30 != 0
77
#if USE_INTERUI_30 != 0
78
lv_font_add(&hekate_symbol_30, &interui_30);
79
#else
80
lv_font_add(&hekate_symbol_30, NULL);
81
#endif
82
#endif
83
84
/*MONO 12*/
85
#if USE_UBUNTU_MONO != 0
86
lv_font_add(&ubuntu_mono, NULL);
87
#if USE_INTERUI_20 != 0
88
lv_font_add(&hekate_symbol_20, &ubuntu_mono);
89
#endif
90
#endif
91
92
/*Symbol 120*/
93
#if USE_HEKATE_SYMBOL_120 != 0
94
lv_font_add(&hekate_symbol_120, NULL);
95
#endif
96
}
97
98
/**********************
99
* STATIC FUNCTIONS
100
**********************/
101
102