1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-01-27 22:05: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="12.00" height="276.97" />
<rect x="76.00" y="0.00" width="8.00" height="276.97" />
<rect x="96.00" y="0.00" width="4.00" height="276.97" />
<rect x="108.00" y="0.00" width="4.00" height="276.97" />
<rect x="120.00" y="0.00" width="4.00" height="276.97" />
<rect x="128.00" y="0.00" width="12.00" height="276.97" />
<rect x="148.00" y="0.00" width="4.00" height="276.97" />
<rect x="160.00" y="0.00" width="8.00" height="276.97" />
<rect x="176.00" y="0.00" width="4.00" height="276.97" />
<rect x="184.00" y="0.00" width="12.00" height="276.97" />
<rect x="200.00" y="0.00" width="8.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="12.00" height="276.97" />
<rect x="264.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="284.00" y="0.00" width="12.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="12.00" height="276.97" />
<rect x="328.00" y="0.00" width="8.00" height="276.97" />
<rect x="344.00" y="0.00" width="8.00" height="276.97" />
<rect x="356.00" y="0.00" width="8.00" height="276.97" />
<rect x="368.00" y="0.00" width="8.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="12.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" >
9
</text>
<text x="142.00" y="309.17" text-anchor="middle"
font-family="Helvetica, sans-serif" font-size="40.0" >
789295
</text>
<text x="326.00" y="309.17" text-anchor="middle"
font-family="Helvetica, sans-serif" font-size="40.0" >
055124
</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 0h12v276.97h-12ZM76 0h8v276.97h-8ZM96 0h4v276.97h-4ZM108 0h4v276.97h-4ZM120 0h4v276.97h-4ZM128 0h12v276.97h-12ZM148 0h4v276.97h-4ZM160 0h8v276.97h-8ZM176 0h4v276.97h-4ZM184 0h12v276.97h-12ZM200 0h8v276.97h-8ZM220 0h4v276.97h-4ZM228 0h4v296.97h-4ZM236 0h4v296.97h-4ZM244 0h12v276.97h-12ZM264 0h4v276.97h-4ZM272 0h4v276.97h-4ZM284 0h12v276.97h-12ZM300 0h4v276.97h-4ZM312 0h12v276.97h-12ZM328 0h8v276.97h-8ZM344 0h8v276.97h-8ZM356 0h8v276.97h-8ZM368 0h8v276.97h-8ZM384 0h4v276.97h-4ZM392 0h12v276.97h-12ZM412 0h4v296.97h-4ZM420 0h4v296.97h-4Z"/>
<text x="24.4" y="311.37" text-anchor="end" font-family="OCRB, monospace" font-size="40">
9
</text>
<text x="142" y="311.37" text-anchor="middle" font-family="OCRB, monospace" font-size="40">
789295
</text>
<text x="326" y="311.37" text-anchor="middle" font-family="OCRB, monospace" font-size="40">
055124
</text>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB