summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorPatrick 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)
commite0a9d32f969a384dcace05531a244aa84bb06595 (patch)
tree85074db40ed4d25888af9a2f8d93cd7d8a800cb8 /src/main.c
parentebcbcbbb38bb9e8caee0197575bbe97f28e40b1d (diff)
font_find(): New function
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);