From 5ba2cbc09292a179e6ea1df36321b055aa2d7052 Mon Sep 17 00:00:00 2001 From: Florent Villard Date: Wed, 21 Jan 2004 16:42:06 +0000 Subject: sync with bootsplash.org code. fix freetype build --- fbtruetype/fbtruetype-messages.c | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 fbtruetype/fbtruetype-messages.c (limited to 'fbtruetype/fbtruetype-messages.c') diff --git a/fbtruetype/fbtruetype-messages.c b/fbtruetype/fbtruetype-messages.c new file mode 100644 index 0000000..33a1be4 --- /dev/null +++ b/fbtruetype/fbtruetype-messages.c @@ -0,0 +1,38 @@ +/* + * (c) 2002-2003 by Stefan Reinauer, + * + * This program my be redistributed under the terms of the + * GNU General Public Licence, version 2, or at your preference, + * any later version. + */ + +#include +#include "fbtruetype.h" +#include "messages.h" + +void usage(char *name) +{ + fprintf(stderr, "\nusage: %s [ parameters ] text\n", name); + fprintf(stderr, + "\n -x: x coordinate\n" + " -y: y coordinate\n" + " -f, --font: font name (.ttf file)\n" + " -t, --textcolor: text color (hex)\n" + " -s, --size: font size (default 36)\n" + " -a, --alpha: default alpha channel 1..100\n" + " -v, --verbose: verbose mode\n" + " -V, --version: show version and exit\n" + " -?, -h, --help: print this help.\n" + " -S --start-console: output on start console only.\n" + " -c: start on specified console.\n\n"); +} + +void version(void) +{ + fprintf(stderr, + "fbtruetype v%s, Copyright (C) 2002, 2003 Stefan Reinauer \n\n" + "fbtruetype comes with ABSOLUTELY NO WARRANTY;\n" + "This is free software, and you are welcome to redistribute it\n" + "under certain conditions; Check the GPL for details.\n", + FBTRUETYPE_VERSION); +} -- cgit v1.2.1