Debian Codegraph @

texmf-dist/fonts/source/public/barcodes/wlcr39.mf

raw
1 %%
2 %% This is file `wlcr39.mf',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% barcodes.dtx (with options: `wlcr39mf')
8 %% As this is a generated file, you may perhaps not want to edit it.
9 %% This file belongs to the barcode package.
10 %% It may be of no great use without the rest of the barcode package.
11 %% \CharacterTable
12 %% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
13 %% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
14 %% Digits \0\1\2\3\4\5\6\7\8\9
15 %% Exclamation \! Double quote \" Hash (number) \#
16 %% Dollar \$ Percent \% Ampersand \&
17 %% Acute accent \' Left paren \( Right paren \)
18 %% Asterisk \* Plus \+ Comma \,
19 %% Minus \- Point \. Solidus \/
20 %% Colon \: Semicolon \; Less than \<
21 %% Equals \= Greater than \> Question mark \?
22 %% Commercial at \@ Left bracket \[ Backslash \\
23 %% Right bracket \] Circumflex \^ Underscore \_
24 %% Grave accent \` Left brace \{ Vertical bar \|
25 %% Right brace \} Tilde \~}
26 %%
27 mode_setup;
28
29 bwidth#:=5mm#;
30
31
32 bheight# :=.3mm#;
33
34 designsize :=13*bheight#;
35 font_slant :=0;
36 font_normal_space :=bwidth#;
37 font_extra_space :=0;
38 font_normal_stretch:=0;
39 font_normal_shrink :=0;
40 font_quad :=bwidth#;
41
42 define_pixels(bheight, bwidth);
43
44 def thirtyninechar(expr charnum, spex) =
45 beginchar(charnum, bwidth#,12*bheight#,bheight#);
46 numeric mytop,mybot;
47 numeric asval, i;
48 mytop:=12*bheight;mybot:=mytop;
49 x1=x2=0;x3=x4=bwidth;
50 for i=0 upto 11:
51 asval:=ASCII(substring(i,i+1) of spex);
52 exitif asval=-1;
53 asval:=asval-ASCII("0");
54 mybot:=mybot-asval*bheight;
55 if not odd (i):
56 y1:=mytop+blacker;
57 y4:=y1;
58 y2:=mybot-blacker;
59 y3:=y2;
60 fill (z1)--(z2)--(z3)--(z4)--cycle;
61 fi
62 mytop:=mybot;
63 endfor;
64 endchar;
65 enddef;
66
67 \thirtyninechar("0")("1112212111");
68 \thirtyninechar("1")("2112111121");
69 \thirtyninechar("2")("1122111121");
70 \thirtyninechar("3")("2122111111");
71 \thirtyninechar("4")("1112211121");
72 \thirtyninechar("5")("2112211111");
73 \thirtyninechar("6")("1122211111");
74 \thirtyninechar("7")("1112112121");
75 \thirtyninechar("8")("2112112111");
76 \thirtyninechar("9")("1122112111");
77 \thirtyninechar( 64)("1211212111"); % start = @
78 \thirtyninechar("-")("1211112121");
79 \thirtyninechar("+")("1211121211");
80 \thirtyninechar("$")("1212121111");
81 \thirtyninechar("/")("1212111211");
82 \thirtyninechar(".")("2211112111");
83 \thirtyninechar( 37)("1112121211"); % percent
84 \thirtyninechar( 32)("1221112111"); % space
85 \thirtyninechar("A")("2111121121");
86 \thirtyninechar("B")("1121121121");
87 \thirtyninechar("C")("2121121111");
88 \thirtyninechar("D")("1111221121");
89 \thirtyninechar("E")("2111221111");
90 \thirtyninechar("F")("1121221111");
91 \thirtyninechar("G")("1111122121");
92 \thirtyninechar("H")("2111122111");
93 \thirtyninechar("I")("1121122111");
94 \thirtyninechar("J")("1111222111");
95 \thirtyninechar("K")("2111111221");
96 \thirtyninechar("L")("1121111221");
97 \thirtyninechar("M")("2121111211");
98 \thirtyninechar("N")("1111211221");
99 \thirtyninechar("O")("2111211211");
100 \thirtyninechar("P")("1121211211");
101 \thirtyninechar("Q")("1111112221");
102 \thirtyninechar("R")("2111112211");
103 \thirtyninechar("S")("1121112211");
104 \thirtyninechar("T")("1111212211");
105 \thirtyninechar("U")("2211111121");
106 \thirtyninechar("V")("1221111121");
107 \thirtyninechar("W")("2221111111");
108 \thirtyninechar("X")("1211211121");
109 \thirtyninechar("Y")("2211211111");
110 \thirtyninechar("Z")("1221211111");
111
112 \end;
113 \endinput
114 %%
115 %% End of file `wlcr39.mf'.