|
|
tfont.h - ploot - simple plotting tools |
|
|
 |
git clone git://bitreich.org/ploot git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/ploot (git://bitreich.org) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
Tags |
|
|
 |
README |
|
|
|
--- |
|
|
|
tfont.h (395B) |
|
|
|
--- |
|
|
|
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 variable. */ |
|
|
|
11 char *glyph[128]; /* 0: end, 1: off, 2: on. */ |
|
|
|
12 }; |
|
|
|
13 |
|
|
|
14 extern struct font font8; |
|
|
|
15 extern struct font font13; |
|
|
|
16 |
|
|
|
17 /**/ |
|
|
|
18 size_t font_width (struct font *, int); |
|
|
|
19 size_t font_strlen (struct font *, char *); |
|
|
|
20 |
|
|
|
21 #endif |
|