1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-01-09 21:15:57 +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:
gitlost
2023-06-12 01:25:55 +01:00
parent 6d015d6a8f
commit 607e4ed33a
395 changed files with 11528 additions and 23016 deletions

View File

@@ -1,54 +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="452" height="311" 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="452" height="311" fill="#FFFFFF" />
<rect x="44.00" y="0.00" width="4.00" height="296.97" />
<rect x="52.00" y="0.00" width="4.00" height="296.97" />
<rect x="60.00" y="0.00" width="8.00" height="276.97" />
<rect x="80.00" y="0.00" width="4.00" height="276.97" />
<rect x="88.00" y="0.00" width="8.00" height="276.97" />
<rect x="104.00" y="0.00" width="8.00" height="276.97" />
<rect x="120.00" y="0.00" width="4.00" height="276.97" />
<rect x="132.00" y="0.00" width="8.00" height="276.97" />
<rect x="144.00" y="0.00" width="16.00" height="276.97" />
<rect x="164.00" y="0.00" width="4.00" height="276.97" />
<rect x="176.00" y="0.00" width="12.00" height="276.97" />
<rect x="192.00" y="0.00" width="4.00" height="276.97" />
<rect x="200.00" y="0.00" width="12.00" height="276.97" />
<rect x="220.00" y="0.00" width="4.00" height="276.97" />
<rect x="228.00" y="0.00" width="4.00" height="296.97" />
<rect x="236.00" y="0.00" width="4.00" height="296.97" />
<rect x="244.00" y="0.00" width="4.00" height="276.97" />
<rect x="252.00" y="0.00" width="4.00" height="276.97" />
<rect x="272.00" y="0.00" width="4.00" height="276.97" />
<rect x="288.00" y="0.00" width="4.00" height="276.97" />
<rect x="300.00" y="0.00" width="4.00" height="276.97" />
<rect x="312.00" y="0.00" width="4.00" height="276.97" />
<rect x="328.00" y="0.00" width="12.00" height="276.97" />
<rect x="344.00" y="0.00" width="4.00" height="276.97" />
<rect x="356.00" y="0.00" width="12.00" height="276.97" />
<rect x="376.00" y="0.00" width="4.00" height="276.97" />
<rect x="384.00" y="0.00" width="4.00" height="276.97" />
<rect x="392.00" y="0.00" width="4.00" height="276.97" />
<rect x="412.00" y="0.00" width="4.00" height="296.97" />
<rect x="420.00" y="0.00" width="4.00" height="296.97" />
<text x="24.40" y="309.17" text-anchor="end"
font-family="Helvetica, sans-serif" font-size="40.0" >
4
</text>
<text x="142.00" y="309.17" text-anchor="middle"
font-family="Helvetica, sans-serif" font-size="40.0" >
512345
</text>
<text x="326.00" y="309.17" text-anchor="middle"
font-family="Helvetica, sans-serif" font-size="40.0" >
678906
</text>
</g>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="452" height="313" 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="452" height="313" fill="#FFFFFF"/>
<path d="M44 0h4v296.97h-4ZM52 0h4v296.97h-4ZM60 0h8v276.97h-8ZM80 0h4v276.97h-4ZM88 0h8v276.97h-8ZM104 0h8v276.97h-8ZM120 0h4v276.97h-4ZM132 0h8v276.97h-8ZM144 0h16v276.97h-16ZM164 0h4v276.97h-4ZM176 0h12v276.97h-12ZM192 0h4v276.97h-4ZM200 0h12v276.97h-12ZM220 0h4v276.97h-4ZM228 0h4v296.97h-4ZM236 0h4v296.97h-4ZM244 0h4v276.97h-4ZM252 0h4v276.97h-4ZM272 0h4v276.97h-4ZM288 0h4v276.97h-4ZM300 0h4v276.97h-4ZM312 0h4v276.97h-4ZM328 0h12v276.97h-12ZM344 0h4v276.97h-4ZM356 0h12v276.97h-12ZM376 0h4v276.97h-4ZM384 0h4v276.97h-4ZM392 0h4v276.97h-4ZM412 0h4v296.97h-4ZM420 0h4v296.97h-4Z"/>
<text x="24.4" y="311.37" text-anchor="end" font-family="OCRB, monospace" font-size="40">
4
</text>
<text x="142" y="311.37" text-anchor="middle" font-family="OCRB, monospace" font-size="40">
512345
</text>
<text x="326" y="311.37" text-anchor="middle" font-family="OCRB, monospace" font-size="40">
678906
</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB