borgware-2d/scrolltext/font.h

22 lines
415 B
C

#ifndef FONT_H
#define FONT_H
#ifdef AVR
# include <avr/pgmspace.h>
#else
# define PROGMEM
# define pgm_read_byte(B) *(B)
# define pgm_read_word(B) *(B)
#endif
typedef struct{
unsigned char fontHeight;
const unsigned int* fontIndex;
const unsigned char* fontData;
unsigned char glyph_beg;
unsigned char glyph_end;
unsigned char glyph_def;
unsigned char storebytes;
} font;
#endif //FONT_H