From f1c01a6797fbba5a02641b9cc79d0c130ea328ac Mon Sep 17 00:00:00 2001 From: rizzo Date: Wed, 19 Dec 2007 17:58:39 +0000 Subject: Add instructions on how to generate your own font. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94002 f38db490-d61c-443f-a65b-d21fe96a405b --- channels/console_video.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'channels/console_video.c') diff --git a/channels/console_video.c b/channels/console_video.c index 429319130..b7a828e90 100644 --- a/channels/console_video.c +++ b/channels/console_video.c @@ -2306,6 +2306,23 @@ static void keypad_pick_up(struct video_desc *env) } #if 0 /* still unused */ +/* + * As an alternative to SDL_TTF, we can simply load the font from + * an image and blit characters on the background of the GUI. + * + * To generate a font we can use the 'fly' command with the + * following script (3 lines with 32 chars each) + +size 320,64 +name font.png +transparent 0,0,0 +string 255,255,255, 0, 0,giant, !"#$%&'()*+,-./0123456789:;<=>? +string 255,255,255, 0,20,giant,@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_ +string 255,255,255, 0,40,giant,`abcdefghijklmnopqrstuvwxyz{|}~ +end + + */ + /* Print given text on the gui */ static int gui_output(struct video_desc *env, const char *text) { -- cgit v1.2.3