mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-27 13:34:19 -04:00
Add font size option for SVG and EPS
This commit is contained in:
parent
8bb4d2ce86
commit
78d85bd72e
5 changed files with 55 additions and 42 deletions
|
@ -435,6 +435,7 @@ int main(int argc, char **argv) {
|
|||
{"eci", 1, 0, 0},
|
||||
{"filetype", 1, 0, 0},
|
||||
{"esc", 0, 0, 0},
|
||||
{"fontsize", 1, 0, 0},
|
||||
{"verbose", 0, 0, 0}, // Currently undocumented, output some debug info
|
||||
{0, 0, 0, 0}
|
||||
};
|
||||
|
@ -639,6 +640,14 @@ int main(int argc, char **argv) {
|
|||
if (!strcmp(long_options[option_index].name, "verbose")) {
|
||||
my_symbol->debug = 1;
|
||||
}
|
||||
if (!strcmp(long_options[option_index].name, "fontsize")) {
|
||||
if ((atoi(optarg) >= 0) && (atoi(optarg) <= 100)) {
|
||||
my_symbol->fontsize = atoi(optarg);
|
||||
} else {
|
||||
fprintf(stderr, "Warning 125: Invalid font size\n");
|
||||
fflush(stderr);
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
case 'h':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue