Skip to content

Commit

Permalink
Added a test case for strikethrough
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 17, 2009
1 parent 5753172 commit 518ef06
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion showfont.c
Expand Up @@ -40,7 +40,7 @@
#define NUM_COLORS 256

static char *Usage =
"Usage: %s [-solid] [-utf8|-unicode] [-b] [-i] [-u] [-outline size] [-hintlight|-hintmono|-hintnone] [-nokerning] [-fgcol r,g,b] [-bgcol r,g,b] <font>.ttf [ptsize] [text]\n";
"Usage: %s [-solid] [-utf8|-unicode] [-b] [-i] [-u] [-s] [-outline size] [-hintlight|-hintmono|-hintnone] [-nokerning] [-fgcol r,g,b] [-bgcol r,g,b] <font>.ttf [ptsize] [text]\n";

static void cleanup(int exitcode)
{
Expand Down Expand Up @@ -108,6 +108,9 @@ int main(int argc, char *argv[])
if ( strcmp(argv[i], "-u") == 0 ) {
renderstyle |= TTF_STYLE_UNDERLINE;
} else
if ( strcmp(argv[i], "-s") == 0 ) {
renderstyle |= TTF_STYLE_STRIKETHROUGH;
} else
if ( strcmp(argv[i], "-outline") == 0 ) {
if ( sscanf (argv[++i], "%d", &outline) != 1 ) {
fprintf(stderr, Usage, argv0);
Expand Down

0 comments on commit 518ef06

Please sign in to comment.