diff options
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); |