1
0

Add simple 6x13 pixel font

This commit is contained in:
2012-09-09 01:52:23 -04:00
parent 332b86f520
commit c96a4e2a57
3 changed files with 31 additions and 0 deletions

14
include/font.h Normal file
View File

@ -0,0 +1,14 @@
#ifndef FONT_H
#define FONT_H
struct font {
char *data; //should be num_chars*bytes_per_char long, with pixels organized row-major
unsigned int width, height; //height and width of the actual characters, in pixels/bits
unsigned int num_chars;
unsigned int bytes_per_char;
int ascii_offset; //If the first element in *data is for the 32nd ASCII character, this would be 32
};
struct font* font_get();
#endif /* FONT_H */