mirror of
https://github.com/zint/zint
synced 2024-11-16 20:57:25 +13:00
Don't add descriptor to EPS and SVG if text is supressed
This commit is contained in:
parent
507071cf9c
commit
caa4bb913f
@ -273,7 +273,7 @@ int ps_plot(struct zint_symbol *symbol) {
|
|||||||
/* Start writing the header */
|
/* Start writing the header */
|
||||||
fprintf(feps, "%%!PS-Adobe-3.0 EPSF-3.0\n");
|
fprintf(feps, "%%!PS-Adobe-3.0 EPSF-3.0\n");
|
||||||
fprintf(feps, "%%%%Creator: Zint %s\n", ZINT_VERSION);
|
fprintf(feps, "%%%%Creator: Zint %s\n", ZINT_VERSION);
|
||||||
if (ustrlen(local_text) != 0) {
|
if ((ustrlen(local_text) != 0) && (symbol->show_hrt != 0)) {
|
||||||
fprintf(feps, "%%%%Title: %s\n", local_text);
|
fprintf(feps, "%%%%Title: %s\n", local_text);
|
||||||
} else {
|
} else {
|
||||||
fprintf(feps, "%%%%Title: Zint Generated Symbol\n");
|
fprintf(feps, "%%%%Title: Zint Generated Symbol\n");
|
||||||
|
@ -216,7 +216,7 @@ int svg_plot(struct zint_symbol *symbol) {
|
|||||||
fprintf(fsvg, "<svg width=\"%d\" height=\"%d\" version=\"1.1\"\n", (int)ceil((74.0F + xoffset + xoffset) * scaler), (int)ceil((72.0F + yoffset + yoffset) * scaler));
|
fprintf(fsvg, "<svg width=\"%d\" height=\"%d\" version=\"1.1\"\n", (int)ceil((74.0F + xoffset + xoffset) * scaler), (int)ceil((72.0F + yoffset + yoffset) * scaler));
|
||||||
}
|
}
|
||||||
fprintf(fsvg, " xmlns=\"http://www.w3.org/2000/svg\">\n");
|
fprintf(fsvg, " xmlns=\"http://www.w3.org/2000/svg\">\n");
|
||||||
if (ustrlen(local_text) != 0) {
|
if ((ustrlen(local_text) != 0) && (symbol->show_hrt != 0)) {
|
||||||
fprintf(fsvg, " <desc>%s\n", local_text);
|
fprintf(fsvg, " <desc>%s\n", local_text);
|
||||||
} else {
|
} else {
|
||||||
fprintf(fsvg, " <desc>Zint Generated Symbol\n");
|
fprintf(fsvg, " <desc>Zint Generated Symbol\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user