From e0a9d32f969a384dcace05531a244aa84bb06595 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Wed, 17 Jul 2019 17:49:27 -0400 Subject: font_find(): New function --- (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index b04fb70..c82c5de 100644 --- a/src/main.c +++ b/src/main.c @@ -19,20 +19,23 @@ * along with fbcon2png. If not, see . */ -#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); -- cgit v0.9.1