X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=gfx%2Ffont.c;h=767c269e855351daea42c8206a59d91d7f3b361a;hb=7cdf81c108da99a05becc875182cee065167e91c;hp=934f851a2aa549bf235bc002bcd922b2a195286c;hpb=68d5a6796ff0efc9666ae359be2150d9638182f6;p=bertos.git diff --git a/gfx/font.c b/gfx/font.c index 934f851a..767c269e 100755 --- a/gfx/font.c +++ b/gfx/font.c @@ -15,6 +15,9 @@ /*#* *#* $Log$ + *#* Revision 1.3 2006/02/10 12:29:05 bernie + *#* Add multiple font support in bitmaps. + *#* *#* Revision 1.2 2005/11/04 18:17:45 bernie *#* Fix header guards and includes for new location of gfx module. *#* @@ -42,7 +45,7 @@ #include "font.h" -const PROGMEM uint8_t font[256 * 6] = +static const PROGMEM uint8_t default_font_glyphs[256 * 6] = { /* 0x00 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, /* */ @@ -333,3 +336,11 @@ const PROGMEM uint8_t font[256 * 6] = 0x1E, 0x1E, 0x1E, 0x1E, 0x1E, 0x00, /* þ */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 /* ÿ */ }; + +struct Font default_font = +{ + /* .glyph = */ default_font_glyphs, + /* .width = */ 6, + /* .height = */ 8 +}; +