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:
gitlost 2023-12-15 10:51:51 +00:00
parent ecbd582cae
commit 40a4bb9da0
48 changed files with 231 additions and 107 deletions

View file

@ -5,7 +5,7 @@
<g id="barcode" fill="#000000">
<rect x="0" y="0" width="324" height="257" fill="#FFFFFF"/>
<path d="M28 0h4v240.97h-4ZM36 0h4v240.97h-4ZM44 0h12v220.97h-12ZM60 0h8v220.97h-8ZM72 0h4v220.97h-4ZM88 0h8v220.97h-8ZM100 0h16v220.97h-16ZM120 0h4v220.97h-4ZM132 0h4v220.97h-4ZM144 0h8v220.97h-8ZM156 0h4v240.97h-4ZM164 0h4v240.97h-4ZM172 0h4v220.97h-4ZM192 0h4v220.97h-4ZM200 0h4v220.97h-4ZM208 0h4v220.97h-4ZM228 0h4v220.97h-4ZM240 0h12v220.97h-12ZM256 0h4v220.97h-4ZM264 0h12v220.97h-12ZM284 0h4v240.97h-4ZM292 0h4v240.97h-4Z"/>
<text x="25" y="255.37" text-anchor="end" font-family="OCRB, monospace" font-size="40">
<text x="-2" y="255.37" text-anchor="start" font-family="OCRB, monospace" font-size="40">
&lt;
</text>
<text x="98" y="255.37" text-anchor="middle" font-family="OCRB, monospace" font-size="40">
@ -14,7 +14,7 @@
<text x="226" y="255.37" text-anchor="middle" font-family="OCRB, monospace" font-size="40">
3654
</text>
<text x="299.2" y="255.37" text-anchor="start" font-family="OCRB, monospace" font-size="40">
<text x="326" y="255.37" text-anchor="end" font-family="OCRB, monospace" font-size="40">
&gt;
</text>
</g>

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Before After
Before After

View file

@ -14,7 +14,7 @@
<text x="326" y="311.37" text-anchor="middle" font-family="OCRB, monospace" font-size="40">
055124
</text>
<text x="428" y="311.37" text-anchor="start" font-family="OCRB, monospace" font-size="40">
<text x="454" y="311.37" text-anchor="end" font-family="OCRB, monospace" font-size="40">
&gt;
</text>
</g>

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Before After
Before After

View file

@ -20,7 +20,7 @@
<text x="548" y="31.2" text-anchor="middle" font-family="OCRB, monospace" font-size="40">
12345
</text>
<text x="635.2" y="31.2" text-anchor="start" font-family="OCRB, monospace" font-size="40">
<text x="662" y="31.2" text-anchor="end" font-family="OCRB, monospace" font-size="40">
&gt;
</text>
</g>

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Before After
Before After

View file

@ -17,7 +17,7 @@
<text x="308" y="31.2" text-anchor="middle" font-family="OCRB, monospace" font-size="40">
12
</text>
<text x="343.2" y="31.2" text-anchor="start" font-family="OCRB, monospace" font-size="40">
<text x="370" y="31.2" text-anchor="end" font-family="OCRB, monospace" font-size="40">
&gt;
</text>
</g>

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Before After
Before After