diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-07-17 17:49:27 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-07-17 17:49:27 (EDT) |
commit | e0a9d32f969a384dcace05531a244aa84bb06595 (patch) | |
tree | 85074db40ed4d25888af9a2f8d93cd7d8a800cb8 /src/main.c | |
parent | ebcbcbbb38bb9e8caee0197575bbe97f28e40b1d (diff) |
font_find(): New function
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -19,20 +19,23 @@ * along with fbcon2png. If not, see <http://www.gnu.org/licenses/>. */ -#include "text.h" +#include "font.h" #include "image.h" +#include "text.h" int main(int argc, char **argv) { + struct font *font; struct text *text; struct image *image; - if (argc != 2) { + if (argc != 3) { return 1; } - text = text_new(argv[1]); + font = font_find(argv[1]); + text = text_new(argv[2]); image = image_new("test.png"); image_render(image, text); text_destroy(&text); |