X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fgfx%2Ffont.h;h=4b28de697dfae1d2102ec31505daa290cade0483;hb=23f95752ffe03a5f0c262b1f896211aedb185dda;hp=badb568219be02ddfac7d16320c02c96d948059e;hpb=8b3bd9c1b2c7b8ce1f3fc87c37a03030dca914ee;p=bertos.git diff --git a/bertos/gfx/font.h b/bertos/gfx/font.h index badb5682..4b28de69 100644 --- a/bertos/gfx/font.h +++ b/bertos/gfx/font.h @@ -30,18 +30,18 @@ * * --> * - * \version $Id$ + * \brief Font 8x6 IBM-PC 8bit + * * * \author Stefano Fedrigo * - * \brief Font 8x6 IBM-PC 8bit */ #ifndef GFX_FONT_H #define GFX_FONT_H -#include /* uint8_t */ -#include /* PROGMEM */ +#include /* uint8_t */ +#include /* PROGMEM */ typedef struct Font { @@ -51,7 +51,7 @@ typedef struct Font * Data is an array of at most 256 glyphs packed together. * Raster format must be the same of the bitmap. */ - const PROGMEM uint8_t *glyph; + const pgm_uint8_t *glyph; uint8_t width; /**< Pixel width of character cell. */ uint8_t height; /**< Pixel height of character cell. */ @@ -60,8 +60,8 @@ typedef struct Font uint8_t last; /**< Last encoded character in glyph array (inclusive). */ /** Array of glyph offsets in bytes. NULL for fixed-width fonts. */ - const PROGMEM uint16_t *offset; - const PROGMEM uint8_t *widths; + const pgm_uint16_t *offset; + const pgm_uint8_t *widths; } Font;