summaryrefslogtreecommitdiff
path: root/channels/console_video.c
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2007-12-19 17:58:39 +0000
committerLuigi Rizzo <rizzo@icir.org>2007-12-19 17:58:39 +0000
commit5e84c0554e71676a49765eb4cab8c097ee02d252 (patch)
tree14eac2bec7f8b32f9d00acdbe434ca0886060d84 /channels/console_video.c
parent1f61ab15856e58a170b3bb4bfea4c96a09286ce7 (diff)
Add instructions on how to generate your own font.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@94002 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'channels/console_video.c')
-rw-r--r--channels/console_video.c17
1 files changed, 17 insertions, 0 deletions
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)
{