# HG changeset patch # User Matti Hamalainen # Date 1423083650 -7200 # Node ID ee46d039c45d69e5352f68e5019cced33ba41cd4 # Parent 18cd96a27dee0fe40ef5a879ac7173212aeef707 Change fontconv -s option syntax. diff -r 18cd96a27dee -r ee46d039c45d tools/fontconv.c --- 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);