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
45
48
51
54
57
60
63
66
69
72
75
78
81
84
87
90
93
96
99
102
105
108
111
114
117
119
120
#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) { ... }
}{ ... }