summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c9
1 files changed, 6 insertions, 3 deletions
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 <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);