1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-01-05 19:27:07 +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,55 +1,9 @@
<?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="389" height="111" 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="389" height="111" fill="#FFFFFF" />
<rect x="48.00" y="4.80" width="14.40" height="48.00" />
<rect x="72.00" y="4.80" width="4.80" height="48.00" />
<rect x="81.60" y="4.80" width="4.80" height="48.00" />
<rect x="91.20" y="4.80" width="9.60" height="48.00" />
<rect x="110.40" y="4.80" width="9.60" height="48.00" />
<rect x="124.80" y="4.80" width="14.40" height="48.00" />
<rect x="144.00" y="4.80" width="9.60" height="48.00" />
<rect x="158.40" y="4.80" width="4.80" height="48.00" />
<rect x="172.80" y="4.80" width="19.20" height="48.00" />
<rect x="196.80" y="4.80" width="9.60" height="48.00" />
<rect x="211.20" y="4.80" width="19.20" height="48.00" />
<rect x="240.00" y="4.80" width="4.80" height="48.00" />
<rect x="254.40" y="4.80" width="9.60" height="48.00" />
<rect x="273.60" y="4.80" width="4.80" height="48.00" />
<rect x="288.00" y="4.80" width="9.60" height="48.00" />
<rect x="312.00" y="4.80" width="4.80" height="48.00" />
<rect x="326.40" y="4.80" width="4.80" height="48.00" />
<rect x="345.60" y="4.80" width="4.80" height="48.00" />
<rect x="364.80" y="4.80" width="9.60" height="48.00" />
<rect x="379.20" y="4.80" width="4.80" height="48.00" />
<rect x="48.00" y="57.60" width="9.60" height="48.00" />
<rect x="67.20" y="57.60" width="9.60" height="48.00" />
<rect x="81.60" y="57.60" width="4.80" height="48.00" />
<rect x="91.20" y="57.60" width="4.80" height="48.00" />
<rect x="110.40" y="57.60" width="4.80" height="48.00" />
<rect x="124.80" y="57.60" width="14.40" height="48.00" />
<rect x="144.00" y="57.60" width="19.20" height="48.00" />
<rect x="168.00" y="57.60" width="4.80" height="48.00" />
<rect x="182.40" y="57.60" width="9.60" height="48.00" />
<rect x="201.60" y="57.60" width="4.80" height="48.00" />
<rect x="216.00" y="57.60" width="4.80" height="48.00" />
<rect x="240.00" y="57.60" width="4.80" height="48.00" />
<rect x="254.40" y="57.60" width="9.60" height="48.00" />
<rect x="268.80" y="57.60" width="4.80" height="48.00" />
<rect x="288.00" y="57.60" width="9.60" height="48.00" />
<rect x="302.40" y="57.60" width="4.80" height="48.00" />
<rect x="316.80" y="57.60" width="4.80" height="48.00" />
<rect x="336.00" y="57.60" width="14.40" height="48.00" />
<rect x="360.00" y="57.60" width="9.60" height="48.00" />
<rect x="379.20" y="57.60" width="4.80" height="48.00" />
<rect x="48.00" y="52.80" width="336.00" height="4.80" />
<rect x="0.00" y="0.00" width="388.80" height="4.80" />
<rect x="0.00" y="105.60" width="388.80" height="4.80" />
</g>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg width="389" height="111" 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="389" height="111" fill="#FFFFFF"/>
<path d="M48 4.8h14.4v48h-14.4ZM72 4.8h4.8v48h-4.8ZM81.6 4.8h4.8v48h-4.8ZM91.2 4.8h9.6v48h-9.6ZM110.4 4.8h9.6v48h-9.6ZM124.8 4.8h14.4v48h-14.4ZM144 4.8h9.6v48h-9.6ZM158.4 4.8h4.8v48h-4.8ZM172.8 4.8h19.2v48h-19.2ZM196.8 4.8h9.6v48h-9.6ZM211.2 4.8h19.2v48h-19.2ZM240 4.8h4.8v48h-4.8ZM254.4 4.8h9.6v48h-9.6ZM273.6 4.8h4.8v48h-4.8ZM288 4.8h9.6v48h-9.6ZM312 4.8h4.8v48h-4.8ZM326.4 4.8h4.8v48h-4.8ZM345.6 4.8h4.8v48h-4.8ZM364.8 4.8h9.6v48h-9.6ZM379.2 4.8h4.8v48h-4.8ZM48 57.6h9.6v48h-9.6ZM67.2 57.6h9.6v48h-9.6ZM81.6 57.6h4.8v48h-4.8ZM91.2 57.6h4.8v48h-4.8ZM110.4 57.6h4.8v48h-4.8ZM124.8 57.6h14.4v48h-14.4ZM144 57.6h19.2v48h-19.2ZM168 57.6h4.8v48h-4.8ZM182.4 57.6h9.6v48h-9.6ZM201.6 57.6h4.8v48h-4.8ZM216 57.6h4.8v48h-4.8ZM240 57.6h4.8v48h-4.8ZM254.4 57.6h9.6v48h-9.6ZM268.8 57.6h4.8v48h-4.8ZM288 57.6h9.6v48h-9.6ZM302.4 57.6h4.8v48h-4.8ZM316.8 57.6h4.8v48h-4.8ZM336 57.6h14.4v48h-14.4ZM360 57.6h9.6v48h-9.6ZM379.2 57.6h4.8v48h-4.8ZM48 52.8h336v4.8h-336ZM0 0h388.8v4.8h-388.8ZM0 105.6h388.8v4.8h-388.8Z"/>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB