and `out_colour_get_cmyk()`, to lessen chances of rounding
errors (in particular for VC6)
test_large: fix regression in change to test for formatting
`uint64_t` for `printf()`
win32/README: update MinGW/MSYS Qt version
test `ferror()` also in `fm_err()` if `err` zero and file
NetBSD: add instructions and some workarounds (`getopt_long_only()`
in particular)
qzint: check `__GNUC__` version for "-Wstringop-truncation"
suppression
outputting to in-memory buffer `symbol->memfile` instead of to
file `symbol->outfile`, ticket #301
Add "README.clang-tidy" and ".clang-tidy" options file
Suppress some warnings
`size_t` as appropriate)
- BMP: lessen heap memory usage by only `malloc()`ing a row, not
whole file
- GIF: lessen heap memory usage by paging (also simplifies some
function returns); use standard colour char map
- raster: add `raster_malloc()` to fail > 1GB (avoids very large
output files that most systems can't handle; also lessens to
some degree chances of being victim of OOM killer on Linux)
- GUI: printing scale dialog: set maxima on X-dim and resolution
to keep scale <= 200
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)
`qr_in_numeric()`/`hx_in_numeric()` (restrict to 3, not 4),
ticket #300 (#16), props Andre Maute
manual: "Maxicode" -> "MaxiCode"; add max capacities for matrix
barcodes
In `debug_print_escape`, `sprintf` is used invariant of `ZINT_TEST`
being defined or not, therefore the definition for `sprintf` also
has to be imported invariant of `ZINT_TEST`
GS1 percents in `qr_in_alpha()`, ticket #300, props Andre Maute;
also defensively re-calc version 40 mode to prevent possible
further crashes
common: move `debug_print_escape()` from library to common
`gs1_verify()` by checking length before `to_int()`, ticket
#300 (#11), props Andre Maute
CODEONE: fix out-of-bounds crash for Version T by upping buffer
size to same as for A to H, ticket #300 (#12), props Andre Maute
GS1_128_CC: fix divide-by-zero crash in `calc_padding_ccc()` by
allowing for min linear width 68 in `cc_width` calc, ticket #300
(#13), props Andre Maute
BWIPP: update `bwipp_dump.ps` to latest version, update
`gen_gs1_lint.php` to accommodate `req` "+"
PDF417: change `liste[]` int -> short to lessen stack usage
Some variable name and code fiddlings
in `cc_binary_string()`, ticket #300 (#5 & #6), props Andre Maute;
add other checks for length on processing encoding mode
PDF417: fix out-of-bounds crash on overrunning string and codeword
buffers by tripling size (convert to `short` instead of `int` to
guard against too much stack), ticket #300 (#7 & #10), props Andre
Maute; (TODO: add some checks instead to bail out earlier?)
CODEONE: fix looping on latch crash in `c1_encode()`, ticket #300 (#8),
props Andre Maute
CODABLOCKF: fix crash on negative overflow of `columns` (`option_2`),
ticket #300 (#9), props Andre Maute
library: add `debug_print_escape()` helper for ZINT_DEBUG_PRINT
add overrun check of `adjusted_string` before padding in
user-specified size case but probably can't happen;
various fiddlings with code to make a bit more concise
ticket #300, props Andre Maute;
fix 4-layer compact block max (76 -> 64);
fix encoding of byte-blocks > 11-bit limit
library: fix 21-bit Unicode conversion in `escape_char_process()`;
fix restricting escaped data length by using de-escaped length to
check (`escape_char_process()` adapted to do length only calc
also)
MSI_PLESSEY/FLAT/DAFT/TELEPEN/TELEPEN_NUM: increase allowed
lengths to max or near-max possible in 1152 modules for most
(all?) variable length input linear barcodes
USPS_IMAIL: suppress bogus clang-tidy warning re garbage value
(doesn't take `strlen()` into account?)
`pdf_num_stay()` to not call it if previous/next block is BYT;
also extend `pdf_asciix[]` to full 256 byte range (defensive & also can
use directly rather than checking range, ticket #300, props Andre Maute
rename `ZINT_CAP_EXTENDABLE` -> `ZINT_CAP_EANUPC`
(`ZINT_CAP_EXTENDABLE` marked as legacy)
CODE128: increase no. symbol chars max 60 -> 99
EAN-2/EAN-5: fix `BARCODE_BIND_TOP/BIND/BOX` output
GS1_128: warn if data > 48 (GS1 General Specifications max)
common: `is_extendable()` -> `is_ucpean()`
raster: add `ZFONT_HALIGN_CENTRE/LEFT/RIGHT` flags and process
in `draw_string()` (for drawing EAN/UPC outside digits), and
for `ZFONT_HALIGN_CENTRE` round when calculating centre
(shifts some texts 1 pixel left)
raster/vector: use offsets into `symbol->text` for EAN/UPC
instead of `out_upcean_split_text()` (removed)
BMP/EMF/GIF/PCX/PNG/PS/SVG/TIF: use new `out_colour_get_rgb()`
routine (replaces `colour_to_XXX()`)
general: simplify/fix some `error_number` handling/returning
frontend: truncate overlong `--primary` instead of ignoring;
negative floating pt option (for `--textgap`)
man page: list size detail for matrix symbols (`--vers`)
manual: further fiddling with scaling text; some typos
and remove *.TXT from backend/tools/data, adding GB2312.TXT
README
manual: try to make scaling info more exact, and re-iterate no text
printed for raster with scale < 1;
move CLI HRT section up;
add one-page docs/manual.html to git - should do same for 3.1M
manual.pdf??
other: remove some no longer used backend/tools, readme-cmake
(ticket #293, props Andre Maute)
test suite: output: suppress some clang run-time exceptions
MemorySanitizer: use-of-uninitialized-value (ticket #292, props
Andre Maute
(was only set on BMP output to length of BMP pixel array)
EXCODE39: change to display check digit in HRT by default
CODE39/EXCODE39/LOGMARS: new hidden check digit option
(`option_2 = 2`)
qr.c: suppress bogus gcc-13 warning (only appears on optimize)
GUI: move some symbology-specific options into Data Tab so
separate tab unnecessary (those with few options and no
Composite/ECI), namely: all C25XXX, CODE39/EXCODE39/LOGMARS,
MSI_PLESSEY, CODABAR, DAFT, DPD, MAILMARK_2D, ITF-14, PZN,
UPNQR, CHANNEL, CODE93 and VIN, adjusting grp uis.
change Data dialog button (ellipsis) QToolButton -> QPushButton
& vice versa zap/clear/eye/swap/scale buttons QPushButton ->
QToolButton for better mac compat (also makes sense);
remove some mac hacks that no longer seem necessary;
use folder icon for Export dialog directory button
manual: document new Symbology-specific groupbox & CODE39/etc
hidden check digit option; add annexes on Qt and Tcl backends;
narrow some tables for better txt output;
remove echoed image tags in txt (pandoc 3.1.5 regression?);
add one-page HTML output to Makefile; also tex output (debug);
add class attributes to images to aid HTML styling;
various other fiddlings
manual: expand size/alpha details in Section "5.4 Buffering Symbols
in Memory (raster)" (cf ticket #291);
add BSD info (TODO: NetBSD);
variable -> member (struct zint_symbol)
frontend: fix missing static on `validate_structapp()`
test suite: update to latest BWIPP (PDF417 needed adjusting)
Changelog: trim some more uninteresting changes
GUI: fix Text Gap suffix, add "in X-dimensions" to tooltip;
save/restore Preview Background color dialog geometry &
dynamically show colour in preview on changing
manual: Composite -> GS1 Composite; add some verbiage re Symbology
tab & Sequence Dialog
reduce antialiasing allowance for `textoffset`;
adjust text to baseline using values for Arimo rather than
percentage
GUI: fix not enabling font combo "Small Bold (vector only)" by
default
raster/vector: rename `text_height` -> `font_height`
remove legacy "T" prefix from def commands; reinstate previous R
(TR) def so as to use I (TB) copy to save file size, & for ULTRA
pre-group rects by colour to enable use; adjust H (TH) def so
can use new J copy to save file size; various other fiddles
manual: Royal Mail Mailmark - put Destination+DPS & RTS in tables
for readability
Allow `--embedfont` for non-EAN/UPC SVG also (& update GUI)
SVG: add "fonts/normal_woff2.h"; use array syntax for it &
"fonts/upcean_woff2.h" to avoid large strings
GUI: embed Arimo (via "fonts/normal_ttf.h"), same as OCRB
Change textgap max 5X -> 10X
README: make list of barcodes 2-col table for readability
win32/README: note Visual Studio 2022 re CMake
`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)