[asterisk-commits] rizzo: trunk r94002 - /trunk/channels/console_video.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Wed Dec 19 11:58:40 CST 2007
Author: rizzo
Date: Wed Dec 19 11:58:39 2007
New Revision: 94002
URL: http://svn.digium.com/view/asterisk?view=rev&rev=94002
Log:
Add instructions on how to generate your own font.
Modified:
trunk/channels/console_video.c
Modified: trunk/channels/console_video.c
URL: http://svn.digium.com/view/asterisk/trunk/channels/console_video.c?view=diff&rev=94002&r1=94001&r2=94002
==============================================================================
--- trunk/channels/console_video.c (original)
+++ trunk/channels/console_video.c Wed Dec 19 11:58:39 2007
@@ -2306,6 +2306,23 @@
}
#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, at 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)
{
More information about the asterisk-commits
mailing list