mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Add font size option for SVG and EPS
This commit is contained in:
@ -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':
|
||||
|
Reference in New Issue
Block a user