Add simple 6x13 pixel font
This commit is contained in:
14
include/font.h
Normal file
14
include/font.h
Normal 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 */
|
Reference in New Issue
Block a user