Commit Graph

  • ee6b4a0efc EPS: fix text rotation regression ([607e4ed]); 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 gitlost 2023-06-18 14:37:05 +0100
  • 3c1980c284 manual: add new ZINT_WARN_HRT_TRUNCATED warning; add missing Table caption "Micro QR ECC Levels"; update README for pandoc-3.1.3; remove TODO Windows instructions which never worked and likely never will gitlost 2023-06-14 15:16:09 +0100
  • acd52ac489 Actually change SVG font to "Arimo, Arial, sans-serif" ([607e4ed]) 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 gitlost 2023-06-13 18:12:20 +0100
  • 55458cf659 CMake: fix clang no-deprecated-declarations gitlost 2023-06-12 14:11:49 +0100
  • f448943c0b github: remove 32-bit Ubuntu build, too tedious to fix gitlost 2023-06-12 13:57:10 +0100
  • 8063dfcd49 github: try gcc-12-multilib gitlost 2023-06-12 13:48:00 +0100
  • 9a5bcdacee CMake: disable Clang deprecations (`sprintf()') on sanitize README: Copyright 2022 -> 2023 github: try gcc-12 for 32-bit Ubuntu gitlost 2023-06-12 13:42:15 +0100
  • 607e4ed33a 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) gitlost 2023-06-12 01:25:55 +0100
  • 6d015d6a8f CLI: use own (Wine) version of CommandLineToArgvW() to avoid loading "shell32.dll" CLI: batch mode: don't close input if stdin, some fixing/fiddling with error checking gitlost 2023-05-11 20:20:55 +0100
  • dff534140a CLI: fix batch mode fopen() -> win_fopen() (Windows) GUI: fix save_to_file() filename.toLatin1() -> toUtf8() tests: fopen() -> testUtilOpen(), remove() -> testUtilRemove() ticket #288, props Marcel gitlost 2023-05-10 21:29:09 +0100
  • 15fdca2a03 For Windows, assume outfile & API filename args are in UTF-8, & use xxxW() APIs accordingly, ticket #288, props Marcel **Backwards-incompatible change** gitlost 2023-05-10 00:47:44 +0100
  • cc69c86129 Revert "CLI: For Windows, only convert data args to UTF-8, so as to avoid" gitlost 2023-05-09 18:36:29 +0100
  • fae3e6d9d5 CLI: For Windows, only convert data args to UTF-8, so as to avoid code page issues with filename args, ticket #288, props Marcel gitlost 2023-05-04 23:21:50 +0100
  • d5235a914b Test suite: some fixes, additions gitlost 2023-04-07 15:49:36 +0100
  • 217e7d240a Test suite: update for latest BWIPP gitlost 2023-04-03 17:41:13 +0100
  • 2919a20384 help question mark in dialogs disabled by default in Qt6 Sanych.by 2023-03-30 11:51:31 +0300
  • 8f70d08c31
    Fix build on Windows with Qt6 sanych1by 2023-03-29 13:17:48 +0300
  • 90293ebcda - Add text_gap option to allow adjustment of vertical gap between barcode and text - EMF/EPS/SVG/GUI: ignore BOLD_TEXT for EAN/UPC - DAFT: up max to 250 chars - EMF/EPS/SVG: fix addon bars placement/length when text hidden - Qt backend: use QFontMetrics::horizontalAdvance() rather than boundingRect() to calc text width (seems to be more accurate) - library: make printf/sprintf() format arg always literal string - output: fix errtxt nos clash; use array for out_upcean_split_text() text parts - raster/vector: smallify addon text printing logic - frontend: warn if output file and direct options both given; add TODO note about CommandLineToArgvW() loading shell32.dll - manual: put HRT options in own section gitlost 2023-02-10 14:44:10 +0000
  • ab2abccdb6 - zint_symbol->fgcolour & bgcolour buffer lengths extended 10 -> 16 to allow for "C,M,Y,K" comma-separated decimal percentage strings - API/CLI/GUI: allow foreground/background colours to be specified as comma-separated decimal "C,M,Y,K" strings where "C", "M" etc. are percentages (0-100) (ticket #281, 3rd point) - output.c: new funcs out_colour_get_rgb() & out_colour_get_cmyk() and use in bmp/emf/gif etc. - PCX: add alpha support - GUI: fix fg/gbcolor icon background not being reset on zap - GUI: Rearrange some Appearance tab inputs (Border Type <-> Width, Show Text <-> Font, Text/Font <-> Printing Scale/Size) to flow more naturally (hopefully) - GUI: save button "Save As..." -> "Save..." and add icon - CLI: add --bgcolor/colour & --fgcolor/colour synonyms gitlost 2023-01-29 19:51:11 +0000
  • 48eaa0cc4e GUI: fg/bgcolor text edit: fix right-click context menu not working properly by checking for it on FocusOut gitlost 2023-01-19 00:11:29 +0000
  • 6f7cdd660c - Add special symbology-specific escape sequences (Code 128 only) for manual Code Set switching via input_mode flag EXTRA_ESCAPE_MODE (CLI --extraesc) (ticket #204) - GUI: disable "Reset" colour if default; add "Unset" to Printing Scale dialog (allows unsetting of X-dim/resolution settings without having to zap) - library: guard against out-of-bounds rows (negative) - test suite: fix some clang-tidy warnings; slight coverage improvements gitlost 2023-01-15 00:22:43 +0000
  • 5669addf01 CMake: allow ctest to be run without having to install zint or manually set LD_LIBRARY_PATH and PATH (ticket #279, props Alexey Dokuchaev) gitlost 2023-01-09 01:14:42 +0000
  • be0d9bc663 manual: fix macOS instructions gitlost 2022-12-26 15:40:46 +0000
  • 9e06845c93 library: alloca local_segs after seg_count check; fix octal comment gitlost 2022-12-21 16:04:53 +0000
  • b0db61efe1 Fix exported target include directories Todor Prokopov 2022-12-19 18:35:16 +0200
  • 2d2b221306 Fix Windows static build Todor Prokopov 2022-12-19 18:34:43 +0200
  • 268fdd7fc2 - BMP/EMF/EPS/GIF/PCX/PNG/SVG/TIF/TXT: check for errors on writing to output file; ZBarcode_Encode_File: check fseek() for errors (ticket #275) - man page: fix Code 11 check digit info - manual/man page: document octal escape; Code 128 subset/mode -> Code Set gitlost 2022-12-19 16:28:15 +0000
  • a54bdc0299 CEPNET: fix no HRT (library: has_hrt()) gitlost 2022-12-16 13:20:44 +0000
  • a437f80d01 Bump version to 2.12.0.9 (dev) gitlost 2022-12-12 21:45:16 +0000
  • 9cfc2a85b0 Version 2.12.0 2.12.0 gitlost 2022-12-12 21:06:08 +0000
  • c50ddc6cd8 out_maybe_mkdir: explicit CreateDirectoryA() & GetFileAttributesA() gitlost 2022-12-09 19:46:53 +0000
  • ab7da62a3a UPU_S10/GS1: properly expose iso3166_alpha2(); add UPU_S10 to tcl gitlost 2022-12-09 15:56:13 +0000
  • 53769c6ed1 - Add new symbology BARCODE_UPU_S10 - PZN: allow check digit to be given; add space after hyphen in HRT; PZN7 option - backend_qt: add encodedHeight() read-only gitlost 2022-12-09 14:51:26 +0000
  • 25dacb2949 - Add new symbology BARCODE_MAILMARK_2D (Royal Mail 2D Mailmark), renaming previous BARCODE_MAILMARK (Royal Mail 4-State Mailmark) to BARCODE_MAILMARK_4S - backend_tcl: update TEA gitlost 2022-12-08 13:48:31 +0000
  • 1daa1ab0ab GS1: add new AI 7011 (GSCN 22-163) gitlost 2022-12-07 10:54:36 +0000
  • c0b4935fb9
    Merge 48d0db7272 into 2230c3a2ec Dustin Bosveld 2022-12-06 13:11:55 -0600
  • 2230c3a2ec test_output BMP/EMF/EPS/GIF/PCX/PNG/SVG/TIF: skip read-only test if root (ticket #274) gitlost 2022-12-06 15:09:06 +0000
  • 831c704b7b CLI: mirror: use -o directory if any (ticket #193) gitlost 2022-12-05 12:55:28 +0000
  • ad1b091ed1 QROCDE/UPNQR: add FAST_MODE (try 4 not 8 masks automatically) gitlost 2022-12-05 10:11:36 +0000
  • 5499e9d71f test_output: fix MSVC warning strlen() -> int gitlost 2022-12-02 22:53:20 +0000
  • ff18ff1cbc test_library: try stripf()ing a few calcs to get github 32-bit CI to pass (although works as was locally) gitlost 2022-12-02 22:42:04 +0000
  • 309c4a5279 test_tif: pixel_plot: disable running identify on 2 datasets for now as failing github CI (although work locally) gitlost 2022-12-02 22:30:47 +0000
  • c8033695d9 - API: add new zint_symbol dpmm field for output resolution (BMP/ EMF/PCX/PNG/TIF only, i.e. excluding EPS, GIF & SVG) - Add support for specifying scale by X-dimension and resolution with new option --scalexdimdp for CLI/Tcl & new API function ZBarcode_Scale_From_XdimDp() (+ ZBarcode_XdimDp_From_Scale() & ZBarcode_Default_Xdim()) and new GUI popup; manual: document - BMP/EMF/PCX/PNG/TIF: use new dpmm resolution field (for EMF following Inkscape) - backend_qt: add dpmm(), vectorWidth(), vectorHeight(), noPng(), getVersion(), takesGS1AIData(), & XdimDp stuff incl. new QZintXdimDp struct for passing around scale vars & use in getAsCLI(); add comments - Raise scale limit to 200 (from 100) to allow for large dpmm - output: create directories & subdirectories as necessary for output path using new function out_fopen() and use in BMP/EMF/ EPS/GIF/PCX/PNG/SVG/TIF - DPLEIT/DPIDENT: format HRT according to (incomplete) documentation, and set default height to 72X (from 50X) - CODE128B renamed to CODE128AB as can use subsets A and/or B - CODABAR: fix minimum height calc - EMF: fix indexing of handles (zero-based not 1-based) - GUI: fix symbology zap (previous technique of clearing and re-loading settings without doing a sync no longer works); fix UPCEAN guard descent enable - MAILMARK: better error message if input < 14 characters - GUI: add "Default" button for DAFT tracker ratio & enable/disable various default buttons; use new takesGS1AIData() to enable/disable GS1-specific checkboxes - CLI: use new validate_float() to parse float options (7 significant digits allowed only, no scientific notation) - DATAMATRIX/GRIDMATRIX/PDF417/QR/ULTRA: micro-optimize structapp ID parse - library/CLI: fiddle with static asserts (make CHAR_BIT sensitive, supposedly) - win32/README: update building libpng (assembly removed) - README.linux: document incompatibility of Qt6 >= 6.3 - manual: expand Barcode Studio waffle - test suite: change range separator to hyphen and allow multiple excludes gitlost 2022-12-02 21:39:01 +0000
  • 6393813cff - cmake: remove zintconfig.h.in for now as incompatible with MSVC project builds (will add back in future if go fully CMake) - NO_PNG -> ZINT_NO_PNG and new API function Zint_NoPng() to determine if no PNG support in libzint; replace use in GUI with backend_qt method noPng() gitlost 2022-11-24 14:18:31 +0000
  • 536a581d9e Install CMake export Todor Prokopov 2022-11-21 16:56:52 +0200
  • 66431d8ec1 Add ZINT_SHARED CMake option Todor Prokopov 2022-11-21 13:41:29 +0200
  • 2f8681b21a - API/CLI/Tcl/GUI: new output option BARCODE_BIND_TOP/--bindtop/ -bindtop/"Bind Top" - DPD: add top boundary (width 3X) by default, using new BARCODE_BIND_TOP; "relabel" option; some compliance checks - GUI: only skip encoded/errored signal processing if active modal ExportDialog (wasn't clearing/setting error text bar correctly for DataDialog) - CODE128: debug print checksum - CODE49/DATAMATRIX/QR/ULTRA: fix uniqueness of errtxt nos - manual: fuller DPD doc; some spelling typos, formatting gitlost 2022-11-10 22:13:41 +0000
  • e515f63fab - PDF417/MICROPDF417: use latch not ps shift for padding when spanning Text segments to avoid affecting 1st char of 2nd segment - PDF417/MICROPDF417: add optimized encoding, FAST_MODE for previous scheme; formatting changes - common.c/h: add cnt_digits(), comments in include and make more consistent, minor code fiddling - DOTCODE: replace dc_n_digits() with new cnt_digits() - test_qr: fix test_qr_perf() - composite: minor code fiddling - library: debug dump HIBC-processed input - BWIPP: update to latest gitlost 2022-11-06 22:25:19 +0000
  • 48d0db7272 Fix formatting Dustin Bosveld 2022-10-21 10:11:56 -0600
  • a56351dcd6 Updat Readme so it renders nicer Dustin Bosveld 2022-10-21 10:04:44 -0600
  • fbfaabf004 CODE128: use int for glyph_count gitlost 2022-10-14 15:05:33 +0100
  • 2c95718d4f ChangeLog: fix some miscategorizing, typos gitlost 2022-10-13 13:44:34 +0100
  • ada19fc079 CODE128: allow for extended latching (double FNC4) spanning intermediate CodeC sequence by setting f_state only if in CodeA/B & checking before adding extended mode switch (cf OkapiBarcode commit [9ce6dcc], props Daniel Gredler) DATAMATRIX: in FAST_MODE re-process any buffered X12 characters when mode changes from X12 (cf OkapiBarcode commit [fb7981e], props Daniel Gredler) CODABLOCKF: allow for FNC4 when estimating no. of rows required CODE16K: make sure row calculation accurate by dispensing with glyph estimate & using actual codeword count CODE16K: ensure initial mode selection allows for extended characters vector.c: add z_alloca() cast for first_row_rects (ticket #272) MSVC project files: remove incorrect "CompileACpp" setting from libzint project files (ticket #272) bwipp_dump.ps: fix 2/4-track processing; update to latest BWIPP manual/man page/GUI: Code 16k -> Code 16K gitlost 2022-10-13 13:33:59 +0100
  • 92a4a25ed2 - DOTCODE, QRCODE, RMQR: return warning if ECI or Structured Append used in GS1 mode, ticket #271 - CLI: improve getopt_long_only() processing, printing own message if bad arg and returning error if so rather than continuing to process - manual: MSE typo -> MSI, a few other changes; adjust SVG scaling for PDF manual; pandoc 2.19.2 gitlost 2022-09-28 21:58:57 +0100
  • 39c47b8927 CLI: allow for d, o and U escapes in mirror; make C89 compat (except for -Woverlength-strings) gitlost 2022-09-14 20:23:47 +0100
  • d0cfabba84 common.h: define ZINT_IS_C89 as __STDC_VERSION__ not defined by MSVC zintconfig.h: edit generator file zintconfig.h.in gitlost 2022-09-14 14:48:57 +0100
  • 102c2f3a69 manual.pmd: fix DataBar Stacked difference from Omnidirectional comment gitlost 2022-09-13 22:19:39 +0100
  • a6cc4f5203 backend: standard lib includes before local (fixes [[e1522e]]) gitlost 2022-09-13 22:08:08 +0100
  • e1522e0808 backend: non-functional code-fiddling: format codablock.c (clang-format + manual); add SPDX to all files; prefix include guards with Z_; move vim comment to bottom; remove some trailing spaces gitlost 2022-09-13 21:16:31 +0100
  • ee23f92151 common.h: only include alloca.h if C89 or NuttX gitlost 2022-09-13 17:29:15 +0100
  • 67fc381198 github ci: add ubuntu debug & 32-bit, Windows 32/64-bit, macOS & sanitize gitlost 2022-09-12 19:49:37 +0100
  • 3a329597e4 Try arm with ninja github_ci gitlost 2022-09-12 22:12:19 +0100
  • 085ff34399 Try arm build (no test) gitlost 2022-09-12 22:06:51 +0100
  • dc213506fa Add macOS sanitize gitlost 2022-09-12 21:42:42 +0100
  • 0071b04fe7 macOS add SDKROOT to build gitlost 2022-09-12 21:10:23 +0100
  • 7c091a79b5 macOS add SDKROOT gitlost 2022-09-12 21:06:37 +0100
  • b7af5fae17 Remove libpng install from macOS gitlost 2022-09-12 21:03:47 +0100
  • 8f1b2a2034 Fix up last commit gitlost 2022-09-12 21:01:47 +0100
  • 3f57ed7e74 Try macOS gitlost 2022-09-12 20:57:05 +0100
  • 2ea56afa28 Er put multilibs install in correct job gitlost 2022-09-12 20:44:05 +0100
  • 48c5ca07a1 Ubuntu 32-bit install multilibs gitlost 2022-09-12 20:42:09 +0100
  • 355b499525 Try Ubuntu 32-bit gitlost 2022-09-12 20:32:33 +0100
  • 70df380b83 Actually try Windows 32-bit build (+ 64-bit) gitlost 2022-09-12 20:22:05 +0100
  • 64498c5a7e Merge branch 'master' into github_ci gitlost 2022-09-12 20:20:36 +0100
  • 3728dd9309 test suite: suppress some Windows warnings (strlen) gitlost 2022-09-12 20:19:41 +0100
  • 1b0f94aa77 Merge branch 'master' into github_ci gitlost 2022-09-12 20:07:38 +0100
  • d2664f8fc0 test suite: remove getopt.h include gitlost 2022-09-12 20:06:16 +0100
  • 515ecb0c6a Try Windows 32-bit gitlost 2022-09-12 20:00:53 +0100
  • e89d6b6bc2 ZINT_STATIC and ubuntu-debug gitlost 2022-09-12 19:49:37 +0100
  • 90dfbdb5d9 test suite: convert to use test context p_ctx instead of individual args; new -x exclude option and ranges; no longer use getopt(); make C89 compat gitlost 2022-09-12 19:26:04 +0100
  • 0d4aa6cce3 common.h: allow for no alloca.h on BSD gitlost 2022-09-12 17:27:42 +0100
  • b4a20b24a2 fix warning: "_MSC_VER" is not defined, evaluates to 0 [-Wundef] Xiang Xiao 2022-09-09 05:06:35 +0800
  • 62f788ce03 fix warning: implicit declaration of function 'alloca' Xiang Xiao 2022-09-09 05:06:01 +0800
  • defb4587de telepen_num: strcpy -> memcpy to ensure temp buffer filled (#270) common: ensure stripf() not inlined to prevent optimizations undoing effect (#269), undo previous volatile temps workaround ([ac80b3]) gitlost 2022-09-06 15:58:53 +0100
  • ac80b33c3c common: set_height() workaround gcc 12.2.1 issue using temp volatiles (#269) test_library: skip test_encode_file_unreadable() if root (#268, #269) test_args: clean up out.gif/png in test_checks/other_opts() (#268, #269) gitlost 2022-09-05 15:11:46 +0100
  • c790f36815 Convert bwipp_dump.ps patch to append (.diff -> .cat) gitlost 2022-09-04 16:31:14 +0100
  • ac421144c9 Bump version to 2.11.1.9 (dev) gitlost 2022-08-25 17:58:13 +0100
  • fd1dc20216 zint.1.pmd: Manual.aspx -> manual/ gitlost 2022-08-25 13:03:04 +0100
  • 8d8abe62cc Update URL for manual (no longer ASPX) In the correct branch this time! Robin Stuart 2022-08-23 10:53:56 +0100
  • 8310a4b938 Release 2.11.1 2.11.1 gitlost 2022-08-22 16:28:22 +0100
  • 25c9582ae2 Update bwipp_dump; README: mention doc; some other tweaks gitlost 2022-08-21 15:15:27 +0100
  • b42f456b88 CEPNET: height/quiet zones, backend_tcl, test suite gitlost 2022-08-20 20:45:51 +0100
  • 400f124a04 Merge branch 'cepnet' gitlost 2022-08-20 17:37:26 +0100
  • d0e5878dce Suppress old gcc -Wpedantic const warnings ([1a2592]) gitlost 2022-08-18 22:33:27 +0100
  • 1a25927b73 PDF417: some tweaks to MR #151 [e8a125], update test suite gitlost 2022-08-18 22:25:09 +0100
  • 35c207edd4 Add Brizilian CEPNet (almost identical to POSTNET) using Symbol #54 Robin Stuart 2022-08-16 16:17:39 +0100
  • e8a125a2e1 PDF417 enhancements: - Switched mode selection to better optimized method listed in Appendix D of the AIM PDF417 specification. - Removed extraneous text latch after a byte shift. - Removed invalid numeric->byte shift transitions. Jeff Skaistis 2022-08-10 13:40:40 -0500
  • c0ec67f99e - vector: ensure separators don't overlap with other rectangles so that they render correctly when have RGBA alpha channel - GUI: update_preview() after Data Dialog return to ensure preview in sync - GUI: add automatic info feedback to "Automatic" combo item of size/row/height comboboxes - backend_qt: always call getMaxRectsRightBottom() for render fudge; use ZBarcode_Clear() instead of ZBarcode_Delete() after 1st call - update BWIPP to latest & add some MICROQR tests to exercise optimize change gitlost 2022-08-07 22:43:49 +0100
  • c0a5c7b125 manual: Deutshe -> Deutsche (#266) gitlost 2022-08-05 23:51:24 +0100
  • 516e4ddd49 manual/GUI: correct MaxiCode space padding description/tooltip (mode 3 only) gitlost 2022-07-28 22:18:16 +0100