mirror of
https://git.code.sf.net/p/zint/code
synced 2026-01-10 13:36:02 +00:00
EAN/UPC: add quiet zone indicators option (API output_options
`EANUPC_GUARD_WHITESPACE`, CLI `--guardwhitespace`) (ticket #287) EAN-2/EAN-5: HRT now at top instead of at bottom for standalones, following BWIPP CLI: batch mode: don't close input if stdin EAN/UPC: fix excess 1X to right of add-ons Composites: fix excess whitespace; fix quiet zone calcs to allow for linear shifting CLI: use own (Wine) version of `CommandLineToArgvW()` to avoid loading "shell32.dll" Move "font.h" -> "raster_font.h" EPS/SVG: use new `out_putsf()` func to output floats, avoiding trailing zeroes & locale dependency EPS: simplify "TR" formula SVG: change font from "Helvetica, sans serif" to "OCR-B, monospace"; use single "<path>" instead of multiple "<rect>"s to draw boxes (reduces file size) Add `EMBED_VECTOR_FONT` to `output_options` (CLI `--embedfont`) to enable embedding of font in vector output - currently only for SVG output of EAN/UPC GUI: use "OCR-B" font for EAN/UPC and "Arimo" for all others (was "Helvetica" for both); paint background of screen preview light grey so as contrasts with whitespace and quiet zones EMF: prefix funcs with `emf_`; simplify string `halign` handling large: rename `large_int` -> `large_uint` CODE128/common: move `c128_hrt_cpy_iso8859_1()` to `hrt_cpy_iso8859_1()` and add `ZINT_WARN_HRT_TRUNCATED` warning (for future use) Various symbologies: replace `printf()` with `fputs()` (symbol->debug) QRCODE: better assert(), removing a NOLINT (2 left) CLI: add some more barcode synonyms for DBAR common: various fiddlings CMake: don't include png.c unless ZINT_USE_PNG (avoids clang warning)
This commit is contained in:
@@ -1,62 +1,18 @@
|
||||
<?xml version="1.0" standalone="no"?>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
|
||||
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="540" height="255" version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
<desc>Zint Generated Symbol
|
||||
</desc>
|
||||
|
||||
<g id="barcode" fill="#000000">
|
||||
<rect x="0" y="0" width="540" height="255" fill="#FFFFFF" />
|
||||
<rect x="28.00" y="0.00" width="4.00" height="240.97" />
|
||||
<rect x="36.00" y="0.00" width="4.00" height="240.97" />
|
||||
<rect x="44.00" y="0.00" width="12.00" height="220.97" />
|
||||
<rect x="60.00" y="0.00" width="8.00" height="220.97" />
|
||||
<rect x="72.00" y="0.00" width="4.00" height="220.97" />
|
||||
<rect x="88.00" y="0.00" width="8.00" height="220.97" />
|
||||
<rect x="100.00" y="0.00" width="16.00" height="220.97" />
|
||||
<rect x="120.00" y="0.00" width="4.00" height="220.97" />
|
||||
<rect x="132.00" y="0.00" width="4.00" height="220.97" />
|
||||
<rect x="144.00" y="0.00" width="8.00" height="220.97" />
|
||||
<rect x="156.00" y="0.00" width="4.00" height="240.97" />
|
||||
<rect x="164.00" y="0.00" width="4.00" height="240.97" />
|
||||
<rect x="172.00" y="0.00" width="4.00" height="220.97" />
|
||||
<rect x="192.00" y="0.00" width="4.00" height="220.97" />
|
||||
<rect x="200.00" y="0.00" width="4.00" height="220.97" />
|
||||
<rect x="208.00" y="0.00" width="4.00" height="220.97" />
|
||||
<rect x="228.00" y="0.00" width="4.00" height="220.97" />
|
||||
<rect x="240.00" y="0.00" width="12.00" height="220.97" />
|
||||
<rect x="256.00" y="0.00" width="4.00" height="220.97" />
|
||||
<rect x="264.00" y="0.00" width="12.00" height="220.97" />
|
||||
<rect x="284.00" y="0.00" width="4.00" height="240.97" />
|
||||
<rect x="292.00" y="0.00" width="4.00" height="240.97" />
|
||||
<rect x="324.00" y="33.80" width="4.00" height="207.17" />
|
||||
<rect x="332.00" y="33.80" width="8.00" height="207.17" />
|
||||
<rect x="344.00" y="33.80" width="12.00" height="207.17" />
|
||||
<rect x="364.00" y="33.80" width="4.00" height="207.17" />
|
||||
<rect x="372.00" y="33.80" width="4.00" height="207.17" />
|
||||
<rect x="380.00" y="33.80" width="4.00" height="207.17" />
|
||||
<rect x="396.00" y="33.80" width="8.00" height="207.17" />
|
||||
<rect x="408.00" y="33.80" width="4.00" height="207.17" />
|
||||
<rect x="416.00" y="33.80" width="4.00" height="207.17" />
|
||||
<rect x="436.00" y="33.80" width="4.00" height="207.17" />
|
||||
<rect x="444.00" y="33.80" width="4.00" height="207.17" />
|
||||
<rect x="456.00" y="33.80" width="4.00" height="207.17" />
|
||||
<rect x="468.00" y="33.80" width="8.00" height="207.17" />
|
||||
<rect x="480.00" y="33.80" width="4.00" height="207.17" />
|
||||
<rect x="492.00" y="33.80" width="8.00" height="207.17" />
|
||||
<rect x="508.00" y="33.80" width="4.00" height="207.17" />
|
||||
<text x="98.00" y="253.17" text-anchor="middle"
|
||||
font-family="Helvetica, sans-serif" font-size="40.0" >
|
||||
7432
|
||||
</text>
|
||||
<text x="226.00" y="253.17" text-anchor="middle"
|
||||
font-family="Helvetica, sans-serif" font-size="40.0" >
|
||||
3654
|
||||
</text>
|
||||
<text x="420.00" y="30.00" text-anchor="middle"
|
||||
font-family="Helvetica, sans-serif" font-size="40.0" >
|
||||
54321
|
||||
</text>
|
||||
</g>
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg width="532" height="257" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
||||
<desc>Zint Generated Symbol</desc>
|
||||
<g id="barcode" fill="#000000">
|
||||
<rect x="0" y="0" width="532" 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-4ZM324 36h4v204.97h-4ZM332 36h8v204.97h-8ZM344 36h12v204.97h-12ZM364 36h4v204.97h-4ZM372 36h4v204.97h-4ZM380 36h4v204.97h-4ZM396 36h8v204.97h-8ZM408 36h4v204.97h-4ZM416 36h4v204.97h-4ZM436 36h4v204.97h-4ZM444 36h4v204.97h-4ZM456 36h4v204.97h-4ZM468 36h8v204.97h-8ZM480 36h4v204.97h-4ZM492 36h8v204.97h-8ZM508 36h4v204.97h-4Z"/>
|
||||
<text x="98" y="255.37" text-anchor="middle" font-family="OCRB, monospace" font-size="40">
|
||||
7432
|
||||
</text>
|
||||
<text x="226" y="255.37" text-anchor="middle" font-family="OCRB, monospace" font-size="40">
|
||||
3654
|
||||
</text>
|
||||
<text x="420" y="31.2" text-anchor="middle" font-family="OCRB, monospace" font-size="40">
|
||||
54321
|
||||
</text>
|
||||
</g>
|
||||
</svg>
|
||||
|
||||
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 1.4 KiB |
Reference in New Issue
Block a user