* Created skeleton for future FIGlet font handling. Nothing here yet.

This commit is contained in:
Sam Hocevar 2006-09-23 22:53:17 +00:00 committed by sam
parent 05204d2b7a
commit 7c14f93b9d
4 changed files with 88 additions and 16 deletions

34
src/figlet.c Normal file
View file

@ -0,0 +1,34 @@
/*
* TOIlet The Other Implementations letters
* Copyright (c) 2006 Sam Hocevar <sam@zoy.org>
* All Rights Reserved
*
* $Id$
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the Do What The Fuck You Want To
* Public License, Version 2, as published by Sam Hocevar. See
* http://sam.zoy.org/wtfpl/COPYING for more details.
*/
#include "config.h"
#if defined(HAVE_INTTYPES_H)
# include <inttypes.h>
#endif
#include <cucul.h>
#include "figlet.h"
cucul_canvas_t *render_figlet(uint32_t const *string, unsigned int length,
char const *fontname)
{
cucul_canvas_t *cv;
cv = cucul_create_canvas(3, 1);
cucul_putstr(cv, 0, 0, "LOL");
return cv;
}