changeset 885:ee46d039c45d

Change fontconv -s option syntax.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 04 Feb 2015 23:00:50 +0200
parents 18cd96a27dee
children 6abb6c25d8ed
files tools/fontconv.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tools/fontconv.c	Wed Feb 04 22:34:03 2015 +0200
+++ b/tools/fontconv.c	Wed Feb 04 23:00:50 2015 +0200
@@ -26,7 +26,7 @@
     {  0, '?', "help",     "Show this help", OPT_NONE },
     {  1, 'v', "verbose",  "Be more verbose", OPT_NONE },
     {  2, 'o', "output",   "Set output filename", OPT_ARGREQ },
-    {  3, 's', "size",     "Set glyph dimensions (-s WxH) for image->font conversion", OPT_ARGREQ },
+    {  3, 's', "size",     "Set glyph dimensions (-s W:H) for image->font conversion", OPT_ARGREQ },
     {  4, 'c', "color",    "TTF font rendering color (def: 0xFFFFFF)", OPT_ARGREQ },
 };
 
@@ -62,7 +62,7 @@
         case 3:
             {
                 int w, h;
-                if (sscanf(optArg, "%dx%d", &w, &h) != 2)
+                if (sscanf(optArg, "%d:%d", &w, &h) != 2)
                 {
                     dmError("Invalid argument for -s option, '%s'.\n",
                         optArg);