diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-07-18 02:28:03 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-07-18 02:29:53 (EDT) |
commit | 0b9687372282752f586af875f688d634648a5fda (patch) | |
tree | 5cf120d3040c19f38072d9de2d6b3d7f886d8a69 /src/text.h | |
parent | caa24987c48bcdae57d08f70b0c5ee9089c13e54 (diff) |
text_new(): Read a file stream
text_render() must now consume the CSI "[" in the if condition, as
text_new() does.
Diffstat (limited to 'src/text.h')
-rw-r--r-- | src/text.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -22,6 +22,8 @@ #ifndef TEXT_H #define TEXT_H +#include <stdio.h> + #include <png.h> #include "font.h" @@ -29,7 +31,7 @@ struct text; struct text * -text_new(const char *string); +text_new(FILE *stream); size_t text_get_width(struct text *text) __attribute__((pure)); |