Commit Graph

936 Commits

Author SHA1 Message Date
gitlost
5a272d17ce raster: reduce UPCEAN letter_gap to 4 (too close to guards at 5) 2020-09-14 23:24:49 +01:00
gitlost
1adba12fce raster: fix text not scaling for half_int_scaling; UPCEAN font 2020-09-13 13:37:15 +01:00
gitlost
e41cb71fd1 DBAR_LTD: add 5 right guard spaces (ISO/IEC 24723:2010 6.2 (e)) 2020-09-11 08:07:21 +01:00
gitlost
ac7b5dd282 #206 build: version to 2.9.1.9; ZINT_VERSION_BUILD (9 dev); tools/update_version.php 2020-09-04 16:38:11 +01:00
gitlost
caf46ed69b #205 library: Make dpd_parcel() signature consistent, props Pierre Y. 2020-09-03 16:36:57 +01:00
Robin Stuart
9f5ae4cbb2 First stage at creating ZPL compatability mode
Partly resolves #142 and relates to discussion in #197
2020-08-22 11:09:57 +01:00
gitlost
4853b4d851 test_bmp/emf/print/ultra: update after pixel/colour changes, new test_ps 2020-08-12 22:16:11 +01:00
Git Lost
09e6d09e6b Merge /u/gitlost/zint/ branch out_buffer_intermediate into master
https://sourceforge.net/p/zint/code/merge-requests/84/
2020-08-12 19:07:56 +00:00
Robin Stuart
bc63b21cb4 Bugfix: Ultra colours not displayed in EMF 2020-08-12 15:10:48 +01:00
Robin Stuart
b5e27d3e0b Better compression for Ultracode in BMP
Also corrects colour shifting bug
File size is still bigger than it needs to be for Ultracode, but now uses 4bpp
2020-08-12 13:19:56 +01:00
Robin Stuart
20f767c4b6 Force white squares (not same as bgcolour) in Ultracode 2020-08-12 12:19:26 +01:00
gitlost
50ecc5bbe4 raster: #197 OUT_BUFFER_INTERMEDIATE fix memory leak (caught by clang-tidy) 2020-08-12 11:20:24 +01:00
gitlost
2153ed416c test_print: refresh BMPs after 1 bit per pixel change 2020-08-12 08:37:11 +01:00
Robin Stuart
37fccf1c03 Use 1 bit per pixel for BMP files (Except Ultracode)
Needs more work to reduce Ultracode file size too
2020-08-12 00:18:10 +01:00
gitlost
d063263432 raster: #197 OUT_BUFFER_INTERMEDIATE output option 2020-08-11 16:11:38 +01:00
gitlost
6579efd271 raster: #197 optimize scaling for half-int vals, scale >= 0.5 only 2020-08-10 19:40:10 +01:00
gitlost
121f89581b raster/vector: revert to floats for performance, doubles ([2a19b8]) unnecessary 2020-08-09 20:20:16 +01:00
Robin Stuart
43ab13f7e5 Remove extra printf() 2020-08-05 21:32:21 +01:00
Robin Stuart
79aaa5304d Allow image rotation for SVG and EPS files 2020-08-05 21:23:11 +01:00
gitlost
980e039743 command line: avoid arg_opts buffer overflow if -d/i used without space before arg 2020-08-05 15:58:21 +01:00
Robin Stuart
ea76c82efe Update GS1 fixed-length field note 2020-08-05 06:53:06 +01:00
gitlost
b440692ee3 composite: EANX/UPCA/UPCE_CC addongap (option_2) not being passed to linear 2020-08-05 00:14:11 +01:00
gitlost
736bc76f66 command line: allow data/input args anywhere on line; frontend tests 2020-08-04 22:22:26 +01:00
gitlost
2fcf622754 emf: refresh test data after text colour fix 2020-08-04 18:41:30 +01:00
Harald Oehlmann
b78fa8cf2f - Compile-able with MS-VC6
- Compile-able with MS-VC2015+QT5.18
- transbarency in TCL backend
- correct TCL demo
- README changes
2020-08-04 15:49:25 +02:00
Robin Stuart
398b1aba2b Correct EMF bug: text does not change colour 2020-08-04 13:12:47 +01:00
Robin Stuart
04f6f81e68 Accept input of escaped 16-bit Unicode characters 2020-08-04 11:48:43 +01:00
gitlost
4ddcfb3613 dpd/gif suppress warnings; tests refresh svgs, dpd examples 2020-08-04 00:36:27 +01:00
Robin Stuart
fa0c89a43a Allow transparency in GIF images
Thanks to preperation work done by Harald
2020-08-03 17:13:25 +01:00
Robin Stuart
13f4a3547d New symbology: DPD Code (variation of Code 128) 2020-08-03 12:13:05 +01:00
Robin Stuart
42e866c889 Make alpha channel available in direct plotting 2020-08-03 07:53:54 +01:00
Robin Stuart
382a051cb5 Extend no background option to EPS 2020-08-03 07:37:27 +01:00
Robin Stuart
47cac63e7f Add alpha channel support and --nobackground option
Alpha channel for PNG and SVG and option to remove background from EMF
2020-08-02 22:26:39 +01:00
gitlost
18e3b41e0f #201 raster/vector: bind/box check border_width > 0 2020-07-31 22:56:41 +01:00
Harald Oehlmann
b856990d4a Set Version 2.9.0 at some hidden places 2020-07-30 17:27:31 +02:00
Robin Stuart
1f57c58e0c Allow explicit bind option for ITF-14
Allows for 'printing methods that do not require printing plates' as highlighted by Adham Elrayyes (Ticket #201)
2020-07-30 10:09:17 +01:00
Robin Stuart
e9652df70c Change PDF417TRUNC -> PDF417COMP and version 2.8 -> 2.9 2020-07-29 22:35:31 +01:00
Robin Stuart
0004cfb35a Change symbol names e.g. RSS > GS-1 DataBar
Preserves old names in zint.h to retain backwards compatability.
2020-07-29 20:43:08 +01:00
gitlost
7c4ddcfc52 raster: fix scaling, broken by [2a19b8] 2020-07-20 12:06:14 +01:00
gitlost
52d08fd9b9 #191 clang-tidy reduce NOLINTs using asserts, remove DeadStores 2020-07-19 10:31:12 +01:00
gitlost
dd2bdb4335 CODE128: hrt always UTF-8; CODE128/EXCODE39/CODE93: blank same NUL/ctrl/DEL chars 2020-07-19 00:13:03 +01:00
gitlost
020a125de6 raster: fix UTF-8 hrt, restoring to_latin1(), broken by [2a19b8] 2020-07-18 09:15:54 +01:00
gitlost
74ad80976e PDF417TRUNC: stop pattern; PDF417: no default mode codeword 900 if 1st 2020-07-17 16:39:01 +01:00
gitlost
2a19b883a5 UPC/EAN, ITF14: quiet zones, addongap; raster/vector: sync code, use double 2020-07-15 19:00:12 +01:00
gitlost
e90c273165 RSS_EXPSTACK: #200 use num_columns logic for right-to-left logic 2020-07-15 11:41:09 +01:00
gitlost
c1fb51ba42 rss.c: some fixes for separators, allow check digit, refactoring; bwipp_dump.ps 2020-07-10 19:39:32 +01:00
gitlost
d921cb11fb Windows: #196 MinGW/MSYS instructions; INTERNAL and printf %zu Windows-compat fixes 2020-06-18 15:51:57 +01:00
gitlost
34d3319cc6 Windows: cast _allocas/mallocs, update DLL version, props Pierre Y. 2020-06-15 16:06:11 +01:00
gitlost
e8a238aad1 large.c: replace binary_load/add() etc with uint64_t based large_load/add() etc for performance 2020-06-14 14:42:40 +01:00
gitlost
3690c19749 CHANNEL: use nested loops (CHNCHK) and pre-calculated values for performance 2020-06-10 18:41:36 +01:00
gitlost
6242e02638 CODEONE/ULTRA overrun fixes; TELEPEN fixes; CODEONE/LOGMARS/VIN/CODABAR options; GUI updates; tests 2020-06-04 18:45:25 +01:00
gitlost
8131471573 Last commit 7be63a messed up raster/vector text offset with border_width set - fix 2020-05-23 00:31:22 +01:00
gitlost
7be63a00b6 CODE16K fixes; separator default 1; raster/vector.c quiet_zones, output.c; #191 2020-05-21 18:22:28 +01:00
gitlost
8dcd09406c CODABLOCKF and CODE128 fixes; row separator height option_3; #191 2020-05-16 10:22:33 +01:00
gitlost
23bbe81cb5 test_gs1 reindex gs1_verify dataset 2020-05-15 20:09:05 +01:00
gitlost
d7b98d29f6 gs1: #194 Fix 253 & 255 min 14 -> 13 2020-05-15 19:27:37 +01:00
gitlost
4b049f7154 tif.c: allow strip_count 1 & specially handle; #191 clang-tidy warning 2020-05-06 19:57:27 +01:00
gitlost
4391fb6a1d gif.c: #191 suppress clang-tidy warning; very small bitmap fix 2020-05-06 01:33:56 +01:00
gitlost
d88d5906fd emf.c: #191 suppress clang-tidy warnings 2020-05-05 22:51:04 +01:00
gitlost
5eafa2e094 Test suite: add testRun allowing args; testSkip; haveIdentify/etc; general tidy-up 2020-05-05 22:28:25 +01:00
gitlost
729b55b607 _MSC_VER malloc.h missing from common.c, gb18030.c, gb2312.c, sjis.c 2020-05-02 01:02:37 +01:00
gitlost
3bda3b6213 DOTCODE: score_array Rev 4; initial HT/FS/GS/RS, macro fixes; CR/LF; #191 clang-tidy warnings; gs1 DEL 2020-05-02 00:38:35 +01:00
gitlost
0aa55f8945 composite.c: #191 suppress clang-tidy warnings 2020-04-28 22:41:05 +01:00
gitlost
2189201e95 raster.c: #191 suppress clang-tidy warnings 2020-04-28 22:19:32 +01:00
gitlost
74beb5c50a QRCODE: #191 suppress clang-tidy warnings 2020-04-28 21:10:54 +01:00
gitlost
344ec06723 ULTRA: #191 suppress clang-tidy 11.0.0 warning 2020-04-28 21:00:43 +01:00
gitlost
107d64b5de ULTRA: #191 suppress clang-tidy warnings 2020-04-28 14:11:49 +01:00
gitlost
194a30e6c5 AZTEC #190 count only B-1 bits; #191 suppress valgrind, clang-tidy warnings 2020-04-28 13:45:36 +01:00
Robin Stuart
737ffd4ce0 Improved method for avoiding illegal codewords in Aztec
Fixes #190 reported by Milton Neal
2020-04-26 14:39:44 +01:00
gitlost
27e211f9d3 ULTRA: C43 latch, shift; double digit; ECI; tests, refresh EMFs 2020-04-20 19:17:15 +01:00
Robin Stuart
99cd6a3391 Set font only once in EMF
Correct fault which led to wrong bytecount - multiple declarations of font not needed
Also included HeaderExtension1 and HeaderExtension2 objects for better compatability with GDI
As suggested by Alex Roy in #185
2020-04-19 18:46:14 +01:00
gitlost
bd654647c0 ULTRA: include secondary vertical clock track in DCC; ECC count, maxsize adjustment 2020-04-16 01:35:37 +01:00
gitlost
9e2b6716f4 ULTRA: fix tests (update expected, remove duplicate, some mode comments) 2020-04-11 10:37:39 +01:00
Harald Oehlmann
ff8d8d3fb1 Call to "debug_test_codeword_dump_init" does not resolve without ZINT_TEST defined 2020-04-10 11:28:45 +02:00
gitlost
e04f662dc0 ULTRA: enable compression for GS1_MODE; compression changes; fixes; tests 2020-04-09 22:08:54 +01:00
gitlost
e01d73a2ee Tests: fix README (Robin); refresh print GIFs after palette optimize 2020-04-08 21:19:30 +01:00
Robin Stuart
752b1511b6 Allow user to select bgcolour in Ultracode 2020-04-08 20:53:58 +01:00
Harald Oehlmann
d99bda9385 GIF palette optimization added. 2020-04-08 21:36:22 +02:00
gitlost
22570f6c73 Tests: add extra examples #189 aztec; refresh gifs print test 2020-04-08 11:22:01 +01:00
gitlost
9795ffe641 Ultracode missing parens around alloca length * sizeof 2020-04-08 10:42:05 +01:00
Harald Oehlmann
327d6ec88b Add 10 colours plus transparency ("T") to gif export. 2020-04-07 20:36:49 +02:00
Harald Oehlmann
6d9c8e2b04 Merge branch 'master' of ssh://git.code.sf.net/p/zint/code 2020-04-07 18:44:00 +02:00
Robin Stuart
92cfd65b56 Allow GS1 mode in Ultracode symbols 2020-04-07 17:41:21 +01:00
Harald Oehlmann
15eb21944c Merge branch 'master' of ssh://git.code.sf.net/p/zint/code 2020-04-07 18:39:45 +02:00
Harald Oehlmann
f23e13b09d Add error message when PNG is called but disabled on compile time. 2020-04-07 18:39:02 +02:00
Robin Stuart
0628e3ee4d Update version 2.7.1 > 2.8.0 2020-04-07 17:27:45 +01:00
Harald Oehlmann
fe517a7a58 Make ultra.c compile on MS-VC 6 2020-04-07 17:54:21 +02:00
gitlost
111c819e43 ULTRA_COMPRESSION option_1 -> option_3 typo 2020-04-07 12:48:29 +01:00
gitlost
129fa81c41 Fix PCX issue with odd bitmap width; tests; comment GRIDMATRIX byte count 2020-04-06 21:26:13 +01:00
Robin Stuart
0d26948baa Merge branch Ultra 2020-04-06 17:05:22 +01:00
Git Lost
6205878b1f Merge /u/gitlost/zint/ branch full_multibyte into master
https://sourceforge.net/p/zint/code/merge-requests/48/
2020-04-05 22:38:08 +00:00
gitlost
9199a51a75 #189 AZTEC gs1 FLG(0) missing after FLG(n) fix from Milton Neal; tests 2020-04-05 23:32:08 +01:00
gitlost
5d60d67a84 emf free malloc bufs; tif don't free alloca bufs (Win); -Wextra; tests 2020-04-04 16:53:29 +01:00
gitlost
2d0b966de6 CODABLOCKF inter-row bindings too short fix; -Wextra; tests 2020-04-03 19:40:59 +01:00
gitlost
dc56c5ed0f CODE128 Fix/suppress -Wextra warnings (signedness); tests 2020-04-02 21:55:58 +01:00
gitlost
61cd413fe4 Full multibyte option_3 for QR, HANXIN, GRIDMATRIX 2020-04-02 14:41:13 +01:00
Robin Stuart
94fe73ebfd Adjust size of Maxicode symbols when output as EMF
Size and position of elements in EMF files is stored as an integer, therefore Maxicode does not render properly
Increasing scale for these images ensures proper rendering
Fixes #185 reported by Alex Roy
2020-04-01 20:01:02 +01:00
Robin Stuart
b4182cbc19 Remove unneccessary length checks in Code1
Revokes commit #024490 and re-establishes commit #0c00ec
Relating to #184 thanks to Milton Neal and Git Lost
2020-04-01 19:27:49 +01:00
gitlost
f5149990eb #181 OSS-Fuzz DOTCODE codeword_array buffer overrun fix 2020-03-31 13:02:53 +01:00
gitlost
22354a81f1 HANXIN fix wrong func call gb2312_utf8tosb() -> gb18030_utf8tosb() 2020-03-30 11:59:16 +01:00