1
0
mirror of https://git.code.sf.net/p/zint/code synced 2026-07-31 02:19:50 +00:00

font_wip branch: new WIP font stuff using "stb_truetype.h",

not implemented for EAN/UPC, not fully tested
This commit is contained in:
gitlost
2026-07-27 12:21:19 +01:00
parent d6a4bdfe90
commit a4f0fa0fd2
144 changed files with 8276 additions and 1567 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.
Binary file not shown.
@@ -0,0 +1,23 @@
%!PS-Adobe-3.0 EPSF-3.0
%%Creator: Zint 2.16.0.9
%%Title: Zint Generated Symbol
%%Pages: 0
%%BoundingBox: 0 0 38 118
%%EndComments
/R { newpath 4 1 roll exch moveto 1 index 0 rlineto 0 exch rlineto neg 0 rlineto closepath fill } bind def
/I { 2 copy } bind def
1 1 1 setrgbcolor
117.92 0 0 38 R
0 0 0 setrgbcolor
100 17.92 I 0 2 R
I 4 2 R
I 8 2 R
I 12 2 R
I 16 2 R
I 22 2 R
I 28 2 R
32 6 R
/Helvetica findfont 14 scalefont setfont
19 4.58 moveto
(12) stringwidth pop -2 div 0 rmoveto
(12) show
+5 -5
View File
@@ -1,15 +1,15 @@
%!PS-Adobe-3.0 EPSF-3.0
%%Creator: Zint 2.13.0.9
%%Creator: Zint 2.16.0.9
%%Title: Zint Generated Symbol
%%Pages: 0
%%BoundingBox: 0 0 136 117
%%BoundingBox: 0 0 136 118
%%EndComments
/R { newpath 4 1 roll exch moveto 1 index 0 rlineto 0 exch rlineto neg 0 rlineto closepath fill } bind def
/I { 2 copy } bind def
1 1 1 setrgbcolor
116.28 0 0 136 R
117.92 0 0 136 R
0 0 0 setrgbcolor
100 16.28 I 0 4 R
100 17.92 I 0 4 R
I 6 2 R
I 12 2 R
I 22 2 R
@@ -29,6 +29,6 @@ I 120 6 R
I 128 2 R
132 4 R
/Helvetica findfont 14 scalefont setfont
68 2.94 moveto
68 4.58 moveto
(AIM) stringwidth pop -2 div 0 rmoveto
(AIM) show
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 1014 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 147 B

After

Width:  |  Height:  |  Size: 158 B

@@ -0,0 +1,12 @@
<?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="38" height="118" 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="38" height="118" fill="#FFFFFF"/>
<path d="M0 0h2v100h-2ZM4 0h2v100h-2ZM8 0h2v100h-2ZM12 0h2v100h-2ZM16 0h2v100h-2ZM22 0h2v100h-2ZM28 0h2v100h-2ZM32 0h6v100h-6Z"/>
<text x="19" y="113.34" text-anchor="middle" font-family="Arimo, Arial, sans-serif" font-size="14">
12
</text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 609 B

+2 -2
View File
@@ -1,9 +1,9 @@
<?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="136" height="117" version="1.1" xmlns="http://www.w3.org/2000/svg">
<svg width="136" height="118" 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="136" height="117" fill="#FFFFFF"/>
<rect x="0" y="0" width="136" height="118" fill="#FFFFFF"/>
<path d="M0 0h4v100h-4ZM6 0h2v100h-2ZM12 0h2v100h-2ZM22 0h2v100h-2ZM26 0h2v100h-2ZM34 0h4v100h-4ZM44 0h4v100h-4ZM54 0h2v100h-2ZM62 0h2v100h-2ZM66 0h2v100h-2ZM70 0h6v100h-6ZM78 0h4v100h-4ZM88 0h2v100h-2ZM92 0h6v100h-6ZM100 0h4v100h-4ZM110 0h4v100h-4ZM120 0h6v100h-6ZM128 0h2v100h-2ZM132 0h4v100h-4Z"/>
<text x="68" y="113.34" text-anchor="middle" font-family="Arimo, Arial, sans-serif" font-size="14">
AIM

Before

Width:  |  Height:  |  Size: 783 B

After

Width:  |  Height:  |  Size: 783 B

Binary file not shown.
Binary file not shown.
@@ -0,0 +1 @@
AA 92 E