 |
WebRadioApp
0.1
|
Go to the documentation of this file.
39 #define EW_MAGIC_NO_FONT 0x666E7464
43 #if defined EW_FONT_PIXEL_SECTION_NAME && !defined EW_FONT_PIXEL_PRAGMA
44 #define EW_STRINGIZE(aArg) EW_STRINGIZE_ARG(aArg)
45 #define EW_STRINGIZE_ARG(aArg) #aArg
47 #if defined __ICCARM__
48 #define EW_FONT_PIXEL_PRAGMA \
49 _Pragma(EW_STRINGIZE(location = EW_STRINGIZE(EW_BITMAP_PIXEL_SECTION_NAME)))
50 #elif defined __CC_ARM
51 #define EW_FONT_PIXEL_PRAGMA \
52 __attribute__((section(EW_STRINGIZE(EW_FONT_PIXEL_SECTION_NAME))))
53 #elif defined __GNUC__
54 #define EW_FONT_PIXEL_PRAGMA \
55 __attribute__((section(EW_STRINGIZE(EW_FONT_PIXEL_SECTION_NAME))))
59 #ifndef EW_FONT_PIXEL_PRAGMA
60 #define EW_FONT_PIXEL_PRAGMA
86 unsigned short CharCode;
155 #define EW_DECLARE_FONT_RES(aName) extern const XVariant aName;
157 #define EW_DEFINE_FONT_RES(aName, aAscent, aDescent, aLeading, aNoOfColors, \
158 aDefChar, aNoOfGlyphs) \
159 extern const unsigned int ____##aName[]; \
160 extern const XFntGlyphRes ___##aName[]; \
161 extern const unsigned int _kc_##aName[]; \
162 extern const unsigned char _kv_##aName[]; \
163 static const XFntRes __##aName = { \
164 EW_MAGIC_NO_FONT, aAscent, aDescent, aLeading, \
165 aNoOfColors, aNoOfGlyphs, ___##aName, ____##aName, \
166 _kc_##aName, _kv_##aName, aDefChar, #aName}; \
167 const XFntGlyphRes ___##aName[] = {
168 #define EW_GLYPH(aCode, aOriginX, aOriginY, aWidth, aHeight, aAdvance, aPixel) \
170 aCode, aOriginX, aOriginY, aWidth, aHeight, aAdvance, aPixel \
173 #define EW_FONT_PIXEL(aName, aSize) \
175 0, 0, 0, 0, 0, 0, aSize \
179 EW_FONT_PIXEL_PRAGMA const unsigned int ____##aName[] = {
180 #define EW_FONT_KERNING_CODES(aName) \
183 const unsigned int _kc_##aName[] = {
184 #define EW_FONT_KERNING_VALUES(aName) \
188 const unsigned char _kv_##aName[] = {
189 #define EW_END_OF_FONT_RES(aName) \
193 static const XResource _##aName[] = {{Default, &__##aName}};
int Descent
Definition: ewextfnt.h:159
int NoOfColors
Definition: ewextfnt.h:161
int Leading
Definition: ewextfnt.h:160
const char * Name
Definition: ewextfnt.h:168
Definition: ewextfnt.h:85
unsigned int MagicNo
Definition: ewextfnt.h:157
int Ascent
Definition: ewextfnt.h:158
int NoOfGlyphs
Definition: ewextfnt.h:162
unsigned short DefChar
Definition: ewextfnt.h:167
Definition: ewextfnt.h:126
const XFntGlyphRes * Glyphs
Definition: ewextfnt.h:163
const void * Pixel
Definition: ewextfnt.h:164
const unsigned char * KerningValues
Definition: ewextfnt.h:166
const unsigned int * KerningCodes
Definition: ewextfnt.h:165