pcb and initial code from https://github.com/das-labor/borgware-2d.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
415 B
22 lines
415 B
16 years ago
|
#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
|