Mercurial > hg > dmlib
diff fontconv.c @ 648:7303c43bf347
Fix fontconv option handling again.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 15 Apr 2013 14:20:17 +0300 |
parents | afdcd000313c |
children | 8986893fd5e5 |
line wrap: on
line diff
--- a/fontconv.c Mon Apr 15 13:26:57 2013 +0300 +++ b/fontconv.c Mon Apr 15 14:20:17 2013 +0300 @@ -26,6 +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 }, { 4, 'c', "color", "TTF font rendering color (def: 0xFFFFFF)", OPT_ARGREQ }, }; @@ -55,6 +56,10 @@ dmVerbosity++; break; + case 2: + optOutFilename = optArg; + break; + case 3: { int w, h; @@ -113,7 +118,7 @@ if (!optInFilename) optInFilename = currArg; else - if (optOutFilename) + if (!optOutFilename) optOutFilename = currArg; else {