Add font size option for SVG and EPS

This commit is contained in:
Robin Stuart
2018-02-11 09:55:28 +00:00
parent 8bb4d2ce86
commit 78d85bd72e
5 changed files with 55 additions and 42 deletions

View File

@ -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':