font.h - ploot - simple plotting tools | |
git clone git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
LICENSE | |
--- | |
font.h (384B) | |
--- | |
1 #ifndef FONT_H | |
2 #define FONT_H | |
3 | |
4 #include <stddef.h> | |
5 | |
6 /* | |
7 * Bitmapped font saved as a '_' and 'X' pattern in a C source file. | |
8 */ | |
9 struct font { | |
10 int height; /* The width is variab… | |
11 char *glyph[128]; /* 0: end, 1: off, 2: on… | |
12 }; | |
13 | |
14 extern struct font font8; | |
15 extern struct font font13; | |
16 | |
17 size_t font_width(struct font *, int); | |
18 size_t font_strlen(struct font *, char *); | |
19 | |
20 #endif |