4 * Copyright 2003, 2004, 2005 Develer S.r.l. (http://www.develer.com/)
5 * This file is part of DevLib - See README.devlib for information.
10 * \author Stefano Fedrigo <aleph@develer.com>
12 * \brief Font 8x6 IBM-PC 8bit
17 *#* Revision 1.4 2006/02/15 09:10:15 bernie
18 *#* Implement prop fonts; Fix algo styles.
20 *#* Revision 1.3 2006/02/10 12:29:05 bernie
21 *#* Add multiple font support in bitmaps.
23 *#* Revision 1.2 2005/11/04 18:17:45 bernie
24 *#* Fix header guards and includes for new location of gfx module.
26 *#* Revision 1.1 2005/11/04 18:11:35 bernie
27 *#* Move graphics stuff from mware/ to gfx/.
29 *#* Revision 1.6 2005/04/11 19:10:28 bernie
30 *#* Include top-level headers from cfg/ subdir.
32 *#* Revision 1.5 2005/03/01 23:26:45 bernie
33 *#* Use new CPU-neutral program-memory API.
35 *#* Revision 1.4 2004/12/31 16:42:55 bernie
36 *#* Sanitize for non-Harvard processors.
38 *#* Revision 1.3 2004/08/25 14:12:09 rasky
39 *#* Aggiornato il comment block dei log RCS
41 *#* Revision 1.2 2004/06/03 11:27:09 bernie
42 *#* Add dual-license information.
44 *#* Revision 1.1 2004/05/23 15:43:16 bernie
45 *#* Import mware modules.
47 *#* Revision 1.2 2004/03/24 15:48:53 bernie
48 *#* Remove Copyright messages from Doxygen output
50 *#* Revision 1.1 2004/01/13 12:15:28 aleph
51 *#* Move font table in program memory; add font.h
57 #include <cfg/compiler.h> /* uint8_t */
58 #include <mware/pgm.h> /* PROGMEM */
63 * Pointer to glyph data.
65 * Data is an array of at most 256 glyphs packed together.
66 * Raster format must be the same of the bitmap.
68 const PROGMEM uint8_t *glyph;
70 uint8_t width; /**< Pixel width of character cell. */
71 uint8_t height; /**< Pixel height of character cell. */
73 uint8_t first; /**< First encoded character in glyph array. */
74 uint8_t last; /**< Last encoded character in glyph array (inclusive). */
76 /** Array of glyph offsets in bytes. NULL for fixed-width fonts. */
77 const PROGMEM uint16_t *offset;
78 const PROGMEM uint8_t *widths;
82 /** The default font. */
83 #define default_font font_ncenB18
84 extern const struct Font default_font;
86 #endif /* GFX_FONT_H */