mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-22 03:05:11 -04:00
vector: make sure BIND_TOP trumps BIND/BOX always (fixes extraneous
whjitespace at bottom of CODABLOCKF/CODE16K/CODE49 if BIND_TOP set); add left/right fudge to guard whitespace placements so appear closer to edge for SVG/qzint (undone by EMF/EPS)
This commit is contained in:
parent
ecbd582cae
commit
40a4bb9da0
48 changed files with 231 additions and 107 deletions
|
@ -483,7 +483,14 @@ INTERNAL int ps_plot(struct zint_symbol *symbol) {
|
|||
fputs(" scalefont setfont\n", feps);
|
||||
previous_fsize = string->fsize;
|
||||
}
|
||||
out_putsf(" ", 2, string->x, feps);
|
||||
/* Unhack the guard whitespace `gws_left_fudge`/`gws_right_fudge` hack */
|
||||
if (upcean && string->halign == 1 && string->text[0] == '<') {
|
||||
out_putsf(" ", 2, 0, feps);
|
||||
} else if (upcean && string->halign == 2 && string->text[0] == '>') {
|
||||
out_putsf(" ", 2, symbol->vector->width, feps);
|
||||
} else {
|
||||
out_putsf(" ", 2, string->x, feps);
|
||||
}
|
||||
out_putsf(" ", 2, symbol->vector->height - string->y, feps);
|
||||
fputs(" moveto\n", feps);
|
||||
if (string->rotation != 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue