mirror of
https://git.code.sf.net/p/zint/code
synced 2025-05-30 14:55:20 -04:00
- 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
This commit is contained in:
parent
48eaa0cc4e
commit
ab2abccdb6
55 changed files with 1439 additions and 886 deletions
BIN
backend/tests/data/emf/upu_s10_cmyk_nobg.emf
Normal file
BIN
backend/tests/data/emf/upu_s10_cmyk_nobg.emf
Normal file
Binary file not shown.
|
@ -1,5 +1,5 @@
|
|||
%!PS-Adobe-3.0 EPSF-3.0
|
||||
%%Creator: Zint 2.10.0.9
|
||||
%%Creator: Zint 2.12.0.9
|
||||
%%Title: Zint Generated Symbol
|
||||
%%Pages: 0
|
||||
%%BoundingBox: 0 0 128 119
|
||||
|
@ -8,10 +8,10 @@
|
|||
/TR { newpath 4 1 roll exch moveto 1 index 0 rlineto 0 exch rlineto neg 0 rlineto closepath fill } bind def
|
||||
/TE { pop pop } bind def
|
||||
newpath
|
||||
0.98 0.59 0.19 setrgbcolor
|
||||
0.99 0.59 0.19 setrgbcolor
|
||||
118.90 0.00 TB 0.00 128.00 TR
|
||||
TE
|
||||
0.08 0.48 0.81 setrgbcolor
|
||||
0.08 0.48 0.82 setrgbcolor
|
||||
100.00 18.90 TB 0.00 2.00 TR
|
||||
TE
|
||||
100.00 18.90 TB 6.00 2.00 TR
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
%!PS-Adobe-3.0 EPSF-3.0
|
||||
%%Creator: Zint 2.10.0.9
|
||||
%%Creator: Zint 2.12.0.9
|
||||
%%Title: Zint Generated Symbol
|
||||
%%Pages: 0
|
||||
%%BoundingBox: 0 0 128 119
|
||||
|
@ -8,10 +8,10 @@
|
|||
/TR { newpath 4 1 roll exch moveto 1 index 0 rlineto 0 exch rlineto neg 0 rlineto closepath fill } bind def
|
||||
/TE { pop pop } bind def
|
||||
newpath
|
||||
0.00 0.40 0.81 0.02 setcmykcolor
|
||||
0.00 0.40 0.81 0.01 setcmykcolor
|
||||
118.90 0.00 TB 0.00 128.00 TR
|
||||
TE
|
||||
0.90 0.41 0.00 0.19 setcmykcolor
|
||||
0.90 0.41 0.00 0.18 setcmykcolor
|
||||
100.00 18.90 TB 0.00 2.00 TR
|
||||
TE
|
||||
100.00 18.90 TB 6.00 2.00 TR
|
||||
|
|
70
backend/tests/data/eps/code39_nobg_cmyk.eps
Normal file
70
backend/tests/data/eps/code39_nobg_cmyk.eps
Normal file
|
@ -0,0 +1,70 @@
|
|||
%!PS-Adobe-3.0 EPSF-3.0
|
||||
%%Creator: Zint 2.12.0.9
|
||||
%%Title: Zint Generated Symbol
|
||||
%%Pages: 0
|
||||
%%BoundingBox: 0 0 128 119
|
||||
%%EndComments
|
||||
/TB { 2 copy } bind def
|
||||
/TR { newpath 4 1 roll exch moveto 1 index 0 rlineto 0 exch rlineto neg 0 rlineto closepath fill } bind def
|
||||
/TE { pop pop } bind def
|
||||
newpath
|
||||
0.90 0.40 0.00 0.09 setcmykcolor
|
||||
100.00 18.90 TB 0.00 2.00 TR
|
||||
TE
|
||||
100.00 18.90 TB 6.00 2.00 TR
|
||||
TE
|
||||
100.00 18.90 TB 10.00 4.00 TR
|
||||
TE
|
||||
100.00 18.90 TB 16.00 4.00 TR
|
||||
TE
|
||||
100.00 18.90 TB 22.00 2.00 TR
|
||||
TE
|
||||
100.00 18.90 TB 26.00 4.00 TR
|
||||
TE
|
||||
100.00 18.90 TB 32.00 2.00 TR
|
||||
TE
|
||||
100.00 18.90 TB 38.00 2.00 TR
|
||||
TE
|
||||
100.00 18.90 TB 42.00 2.00 TR
|
||||
TE
|
||||
100.00 18.90 TB 46.00 4.00 TR
|
||||
TE
|
||||
100.00 18.90 TB 52.00 2.00 TR
|
||||
TE
|
||||
100.00 18.90 TB 56.00 4.00 TR
|
||||
TE
|
||||
100.00 18.90 TB 64.00 2.00 TR
|
||||
TE
|
||||
100.00 18.90 TB 68.00 2.00 TR
|
||||
TE
|
||||
100.00 18.90 TB 72.00 4.00 TR
|
||||
TE
|
||||
100.00 18.90 TB 78.00 4.00 TR
|
||||
TE
|
||||
100.00 18.90 TB 84.00 4.00 TR
|
||||
TE
|
||||
100.00 18.90 TB 92.00 2.00 TR
|
||||
TE
|
||||
100.00 18.90 TB 96.00 2.00 TR
|
||||
TE
|
||||
100.00 18.90 TB 100.00 2.00 TR
|
||||
TE
|
||||
100.00 18.90 TB 104.00 2.00 TR
|
||||
TE
|
||||
100.00 18.90 TB 110.00 2.00 TR
|
||||
TE
|
||||
100.00 18.90 TB 114.00 4.00 TR
|
||||
TE
|
||||
100.00 18.90 TB 120.00 4.00 TR
|
||||
TE
|
||||
100.00 18.90 TB 126.00 2.00 TR
|
||||
TE
|
||||
matrix currentmatrix
|
||||
/Helvetica findfont
|
||||
14.00 scalefont setfont
|
||||
0 0 moveto 64.00 3.50 translate 0.00 rotate 0 0 moveto
|
||||
(*123*) stringwidth
|
||||
pop
|
||||
-2 div 0 rmoveto
|
||||
(*123*) show
|
||||
setmatrix
|
|
@ -1,5 +1,5 @@
|
|||
%!PS-Adobe-3.0 EPSF-3.0
|
||||
%%Creator: Zint 2.10.0.9
|
||||
%%Creator: Zint 2.12.0.9
|
||||
%%Title: Zint Generated Symbol
|
||||
%%Pages: 0
|
||||
%%BoundingBox: 0 0 28 26
|
||||
|
@ -8,7 +8,7 @@
|
|||
/TR { newpath 4 1 roll exch moveto 1 index 0 rlineto 0 exch rlineto neg 0 rlineto closepath fill } bind def
|
||||
/TE { pop pop } bind def
|
||||
newpath
|
||||
0.98 0.59 0.19 setrgbcolor
|
||||
0.99 0.59 0.19 setrgbcolor
|
||||
26.00 0.00 TB 0.00 28.00 TR
|
||||
TE
|
||||
0.00 1.00 1.00 setrgbcolor
|
||||
|
|
BIN
backend/tests/data/gif/dotcode_bgtrans.gif
Normal file
BIN
backend/tests/data/gif/dotcode_bgtrans.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 78 B |
BIN
backend/tests/data/gif/dotcode_cmyk_fg.gif
Normal file
BIN
backend/tests/data/gif/dotcode_cmyk_fg.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 70 B |
BIN
backend/tests/data/gif/dotcode_fgtrans.gif
Normal file
BIN
backend/tests/data/gif/dotcode_fgtrans.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 78 B |
BIN
backend/tests/data/pcx/code11_fgbgtrans.pcx
Normal file
BIN
backend/tests/data/pcx/code11_fgbgtrans.pcx
Normal file
Binary file not shown.
BIN
backend/tests/data/png/channel_cmyk_nobg.png
Normal file
BIN
backend/tests/data/png/channel_cmyk_nobg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 161 B |
24
backend/tests/data/svg/channel_cmyk_nobg.svg
Normal file
24
backend/tests/data/svg/channel_cmyk_nobg.svg
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?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="46" height="59" version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg">
|
||||
<desc>Zint Generated Symbol
|
||||
</desc>
|
||||
|
||||
<g id="barcode" fill="#001FCC">
|
||||
<rect x="0.00" y="0.00" width="2.00" height="40.00" />
|
||||
<rect x="4.00" y="0.00" width="2.00" height="40.00" />
|
||||
<rect x="8.00" y="0.00" width="2.00" height="40.00" />
|
||||
<rect x="12.00" y="0.00" width="2.00" height="40.00" />
|
||||
<rect x="16.00" y="0.00" width="2.00" height="40.00" />
|
||||
<rect x="22.00" y="0.00" width="2.00" height="40.00" />
|
||||
<rect x="26.00" y="0.00" width="6.00" height="40.00" />
|
||||
<rect x="38.00" y="0.00" width="2.00" height="40.00" />
|
||||
<rect x="42.00" y="0.00" width="4.00" height="40.00" />
|
||||
<text x="23.00" y="55.40" text-anchor="middle"
|
||||
font-family="Helvetica, sans-serif" font-size="14.0" >
|
||||
123
|
||||
</text>
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1,013 B |
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
backend/tests/data/tif/code128_cmyk_fgbgcmyk.tif
Normal file
BIN
backend/tests/data/tif/code128_cmyk_fgbgcmyk.tif
Normal file
Binary file not shown.
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue