Select one of the symbols to view example projects that use it.
 
Outline
#include <fonts/ApplicationFontProvider.hpp>
#include <touchgfx/InternalFlashFont.hpp>
ApplicationFontProvider::getFont(touchgfx::FontId)
Files
loading...
CodeScopeSTM32 Libraries and SamplesTouchGFXGui/generated/fonts/src/ApplicationFontProvider.cpp
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/* DO NOT EDIT THIS FILE */ /* This file is autogenerated by the text-database code generator */ #include <fonts/ApplicationFontProvider.hpp> #include <touchgfx/InternalFlashFont.hpp> #ifndef NO_USING_NAMESPACE_TOUCHGFX using namespace touchgfx; #endif extern touchgfx::InternalFlashFont& getFont_Asap_Regular_22_4bpp(); extern touchgfx::InternalFlashFont& getFont_Asap_Regular_22_4bpp(); extern touchgfx::InternalFlashFont& getFont_Asap_Regular_42_4bpp(); extern touchgfx::InternalFlashFont& getFont_Asap_Regular_13_4bpp(); extern touchgfx::InternalFlashFont& getFont_Asap_Regular_17_4bpp(); extern touchgfx::InternalFlashFont& getFont_Asap_Regular_22_4bpp(); extern touchgfx::InternalFlashFont& getFont_ipaexg_17_4bpp(); extern touchgfx::InternalFlashFont& getFont_ipaexg_22_4bpp(); extern touchgfx::InternalFlashFont& getFont_NotoSans_Regular_17_4bpp(); extern touchgfx::InternalFlashFont& getFont_NotoSans_Regular_22_4bpp(); extern touchgfx::InternalFlashFont& getFont_Asap_Bold_otf_16_4bpp(); extern touchgfx::InternalFlashFont& getFont_Asap_Bold_otf_26_4bpp(); extern touchgfx::InternalFlashFont& getFont_Asap_Regular_20_4bpp(); extern touchgfx::InternalFlashFont& getFont_Asap_Bold_otf_50_4bpp(); extern touchgfx::InternalFlashFont& getFont_Asap_Regular_22_4bpp(); extern touchgfx::InternalFlashFont& getFont_Asap_Bold_otf_20_4bpp(); extern touchgfx::InternalFlashFont& getFont_Asap_Bold_otf_27_4bpp(); extern touchgfx::InternalFlashFont& getFont_Asap_Regular_21_4bpp(); extern touchgfx::InternalFlashFont& getFont_Asap_Regular_18_4bpp(); extern touchgfx::InternalFlashFont& getFont_Asap_Regular_20_4bpp(); extern touchgfx::InternalFlashFont& getFont_Asap_Bold_otf_20_4bpp(); extern touchgfx::InternalFlashFont& getFont_Asap_Regular_28_4bpp(); extern touchgfx::InternalFlashFont& getFont_Asap_Regular_20_4bpp(); extern touchgfx::InternalFlashFont& getFont_Asap_Regular_20_4bpp(); extern touchgfx::InternalFlashFont& getFont_Asap_Bold_otf_20_4bpp(); touchgfx::Font* ApplicationFontProvider::getFont(touchgfx::FontId fontId) { switch(fontId) { case Typography::DEMOVIEW_MCULOAD_TEXT: return &(getFont_Asap_Regular_22_4bpp()); case Typography::DEMOVIEW_MCULOAD_TEXT: case Typography::DEMOVIEW_MCULOAD_TEXT_TINY: return &(getFont_Asap_Regular_22_4bpp()); case Typography::DEMOVIEW_MCULOAD_TEXT_TINY: case Typography::GAME_2048_TEXT: return &(getFont_Asap_Regular_42_4bpp()); case Typography::GAME_2048_TEXT: case Typography::GAME_2048_MCU_LOAD: return &(getFont_Asap_Regular_13_4bpp()); case Typography::GAME_2048_MCU_LOAD: case Typography::POSTERTEXT: return &(getFont_Asap_Regular_17_4bpp()); case Typography::POSTERTEXT: case Typography::POSTERHEADLINE: return &(getFont_Asap_Regular_22_4bpp()); case Typography::POSTERHEADLINE: case Typography::POSTERTEXTJAPANESE: return &(getFont_ipaexg_17_4bpp()); case Typography::POSTERTEXTJAPANESE: case Typography::POSTERHEADLINEJAPANESE: return &(getFont_ipaexg_22_4bpp()); case Typography::POSTERHEADLINEJAPANESE: case Typography::POSTERTEXTUKR: return &(getFont_NotoSans_Regular_17_4bpp()); case Typography::POSTERTEXTUKR: case Typography::POSTERHEADLINEUKR: return &(getFont_NotoSans_Regular_22_4bpp()); case Typography::POSTERHEADLINEUKR: case Typography::THREEWAYPROGRESSBARPERCENTAGE: return &(getFont_Asap_Bold_otf_16_4bpp()); case Typography::THREEWAYPROGRESSBARPERCENTAGE: case Typography::THREEWAYPROGRESSBARBUTTON: return &(getFont_Asap_Bold_otf_26_4bpp()); case Typography::THREEWAYPROGRESSBARBUTTON: case Typography::CUSTOMCONTROLSSTATUS: return &(getFont_Asap_Regular_20_4bpp()); case Typography::CUSTOMCONTROLSSTATUS: case Typography::PERCENTAGEBARREADOUT: return &(getFont_Asap_Bold_otf_50_4bpp()); case Typography::PERCENTAGEBARREADOUT: case Typography::PERCENTAGEBARHEADLINE: return &(getFont_Asap_Regular_22_4bpp()); case Typography::PERCENTAGEBARHEADLINE: case Typography::DATEPICKER: return &(getFont_Asap_Bold_otf_20_4bpp()); case Typography::DATEPICKER: case Typography::CAROUSELHEADLINE: return &(getFont_Asap_Bold_otf_27_4bpp()); case Typography::CAROUSELHEADLINE: case Typography::CAROUSELTEXT: return &(getFont_Asap_Regular_21_4bpp()); case Typography::CAROUSELTEXT: case Typography::ANIMATINGBUTTONSTEXT: return &(getFont_Asap_Regular_18_4bpp()); case Typography::ANIMATINGBUTTONSTEXT: case Typography::GAME_2D_TEXT: return &(getFont_Asap_Regular_20_4bpp()); case Typography::GAME_2D_TEXT: case Typography::GAME_2D_HEADER: return &(getFont_Asap_Bold_otf_20_4bpp()); case Typography::GAME_2D_HEADER: case Typography::GAME_2D_SCORE_VALUE: return &(getFont_Asap_Regular_28_4bpp()); case Typography::GAME_2D_SCORE_VALUE: case Typography::GRAPH_Y_VALUE: return &(getFont_Asap_Regular_20_4bpp()); case Typography::GRAPH_Y_VALUE: case Typography::GRAPH_LEGEND: return &(getFont_Asap_Regular_20_4bpp()); case Typography::GRAPH_LEGEND: case Typography::GRAPH_LEGEND_VALUE: return &(getFont_Asap_Bold_otf_20_4bpp()); case Typography::GRAPH_LEGEND_VALUE: default: return 0;default }switch (fontId) { ... } }{ ... }