sGUI  V1.0
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules Pages
font.h
Go to the documentation of this file.
1 #ifndef __FONT_H__
2 #define __FONT_H__
3 
72 #ifdef __cplusplus
73 extern "C" {
74 #endif /* __cplusplus */
75 
76 /*----- Header-Files -------------------------------------------------------*/
77 #include <stdint.h> /* Standard integer formats */
78 
79 /*----- Macros -------------------------------------------------------------*/
80 #define FONT_4x6
81 #define FONT_5x7
82 #define FONT_5x7W
83 #define FONT_5x8
84 #define FONT_6x9
85 #define FONT_6x10
86 #define FONT_6x12
87 #define FONT_6x13
88 #define FONT_6x13B
89 #define FONT_6x13O
90 #define FONT_7x13
91 #define FONT_7x13B
92 #define FONT_7x13O
93 #define FONT_7x14
94 #define FONT_7x14B
95 #define FONT_8x8
96 #define FONT_8x13
97 #define FONT_8x13B
98 #define FONT_8x13O
99 #define FONT_8x16
100 #define FONT_8x16B
101 #define FONT_9x15
102 #define FONT_9x15B
104 #define FONT_MIN_HEIGHT 6
105 #define FONT_MIN_WIDTH 4
106 #define FONT_MAX_HEIGHT 16
107 #define FONT_MAX_WIDTH 9
109 /*----- Data types ---------------------------------------------------------*/
110 
113 typedef struct _FONT_T {
114  uint8_t width;
115  uint8_t height;
116  uint8_t datasize;
117  void *data;
118 } FONT_T;
119 
120 /*----- Function prototypes ------------------------------------------------*/
121 
122 /*----- Data ---------------------------------------------------------------*/
123 #ifdef FONT_4x6
124 /* -Misc-Fixed-Medium-R-Normal--6-60-75-75-C-40-ISO10646-1 */
125 extern FONT_T font_4x6;
126 #endif /* FONT_4x6 */
127 
128 #ifdef FONT_5x7
129 /* -Misc-Fixed-Medium-R-Normal--7-70-75-75-C-50-ISO10646-1 */
130 extern FONT_T font_5x7;
131 #endif /* FONT_5x7 */
132 
133 #ifdef FONT_5x7W
134 extern FONT_T font_5x7W;
135 #endif /* FONT_5x7W */
136 
137 #ifdef FONT_5x8
138 /* -Misc-Fixed-Medium-R-Normal--8-80-75-75-C-50-ISO10646-1 */
139 extern FONT_T font_5x8;
140 #endif /* FONT_5x8 */
141 
142 #ifdef FONT_6x9
143 /* -Misc-Fixed-Medium-R-Normal--9-90-75-75-C-60-ISO10646-1 */
144 extern FONT_T font_6x9;
145 #endif /* FONT_6x9 */
146 
147 #ifdef FONT_6x10
148 /* -Misc-Fixed-Medium-R-Normal--10-100-75-75-C-60-ISO10646-1 */
149 extern FONT_T font_6x10;
150 #endif /* FONT_6x10 */
151 
152 #ifdef FONT_6x12
153 /* -Misc-Fixed-Medium-R-SemiCondensed--12-110-75-75-C-60-ISO10646-1 */
154 extern FONT_T font_6x12;
155 #endif /* FONT_6x12 */
156 
157 #ifdef FONT_6x13
158 /* -Misc-Fixed-Medium-R-SemiCondensed--13-120-75-75-C-60-ISO10646-1 */
159 extern FONT_T font_6x13;
160 #endif /* FONT_6x13 */
161 
162 #ifdef FONT_6x13B
163 /* -Misc-Fixed-Bold-R-SemiCondensed--13-120-75-75-C-60-ISO10646-1 */
164 extern FONT_T font_6x13B;
165 #endif /* FONT_6x13B */
166 
167 #ifdef FONT_6x13O
168 /* -Misc-Fixed-Medium-O-SemiCondensed--13-120-75-75-C-60-ISO10646-1 */
169 extern FONT_T font_6x13O;
170 #endif /* FONT_6x13O */
171 
172 #ifdef FONT_7x13
173 /* -Misc-Fixed-Medium-R-Normal--13-120-75-75-C-70-ISO10646-1 */
174 extern FONT_T font_7x13;
175 #endif /* FONT_7x13 */
176 
177 #ifdef FONT_7x13B
178 /* -Misc-Fixed-Bold-R-Normal--13-120-75-75-C-70-ISO10646-1 */
179 extern FONT_T font_7x13B;
180 #endif /* FONT_7x13B */
181 
182 #ifdef FONT_7x13O
183 /* -Misc-Fixed-Medium-O-Normal--13-120-75-75-C-70-ISO10646-1 */
184 extern FONT_T font_7x13O;
185 #endif /* FONT_7x13O */
186 
187 #ifdef FONT_7x14
188 /* -Misc-Fixed-Medium-R-Normal--14-130-75-75-C-70-ISO10646-1 */
189 extern FONT_T font_7x14;
190 #endif /* FONT_7x14 */
191 
192 #ifdef FONT_7x14B
193 /* -Misc-Fixed-Bold-R-Normal--14-130-75-75-C-70-ISO10646-1 */
194 extern FONT_T font_7x14B;
195 #endif /* FONT_7x14B */
196 
197 #ifdef FONT_8x8
198 extern FONT_T font_8x8;
199 #endif /* FONT_8x8 */
200 
201 #ifdef FONT_8x13
202 /* -Misc-Fixed-Medium-R-Normal--13-120-75-75-C-80-ISO10646-1 */
203 extern FONT_T font_8x13;
204 #endif /* FONT_8x13 */
205 
206 #ifdef FONT_8x13B
207 /* -Misc-Fixed-Bold-R-Normal--13-120-75-75-C-80-ISO10646-1 */
208 extern FONT_T font_8x13B;
209 #endif /* FONT_8x13B */
210 
211 #ifdef FONT_8x13O
212 /* -Misc-Fixed-Medium-O-Normal--13-120-75-75-C-80-ISO10646-1 */
213 extern FONT_T font_8x13O;
214 #endif /* FONT_8x13O */
215 
216 #ifdef FONT_8x16
217 /* -Sony-Fixed-Medium-R-Normal--16-120-100-100-C-80-ISO8859-1 */
218 extern FONT_T font_8x16;
219 #endif /* FONT_8x16 */
220 
221 #ifdef FONT_8x16B
222 extern FONT_T font_8x16B;
223 #endif /* FONT_8x16B */
224 
225 #ifdef FONT_9x15
226 /* -Misc-Fixed-Medium-R-Normal--15-140-75-75-C-90-ISO10646-1 */
227 extern FONT_T font_9x15;
228 #endif /* FONT_9x15 */
229 
230 #ifdef FONT_9x15B
231 /* -Misc-Fixed-Bold-R-Normal--15-140-75-75-C-90-ISO10646-1 */
232 extern FONT_T font_9x15B;
233 #endif /* FONT_9x15B */
234 
235 /*----- Implementation -----------------------------------------------------*/
236 
237 /*----- EOF ----------------------------------------------------------------*/
238 
239 #ifdef __cplusplus
240 }
241 #endif /* __cplusplus */
242 
251 #endif /* __FONT_H__ */
uint8_t width
Definition: font.h:114
struct _FONT_T FONT_T
This struct encapsulates the parameters of a font.
uint8_t datasize
Definition: font.h:116
void * data
Definition: font.h:117
This struct encapsulates the parameters of a font.
Definition: font.h:113
uint8_t height
Definition: font.h:115