Debian Codegraph @

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

raw
1 %%
2 %% This is file `wlc39.mf',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% barcodes.dtx (with options: `code39mf')
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 %% Code 39, in Metafont mode
28 %% Willadt 1997-08-17
29 mode_setup;
30
31 bheight#:=5mm#;
32
33 %% high res .2 mm,
34 %% med res .3 mm,
35 %% lo res .4 mm.
36
37 bwidth# :=.3mm#;
38
39 designsize :=bheight#;
40 font_slant :=0;
41 font_normal_space :=13*bwidth#;
42 font_extra_space :=0;
43 font_normal_stretch:=0;
44 font_normal_shrink :=0;
45 font_quad :=13*bwidth#;
46
47 define_pixels(bheight, bwidth);
48
49 def thirtyninechar(expr charnum, spex) =
50 beginchar(charnum, 13*bwidth#,bheight#,0);
51 numeric myright,myleft;
52 numeric asval, i;
53 myright:=0;myleft:=0;
54 y1=y2=0;y3=y4=bheight;
55 for i=0 upto 11:
56 asval:=ASCII(substring(i,i+1) of spex);
57 exitif asval=-1;
58 asval:=asval-ASCII("0");
59 myright:=myright+asval*bwidth;
60 if not odd (i):
61 x1:=myleft-blacker;
62 x4:=x1;
63 x2:=myright+blacker;
64 x3:=x2;
65 fill (z1)--(z2)--(z3)--(z4)--cycle;
66 fi
67 myleft:=myright;
68 endfor;
69 endchar;
70 enddef;
71
72 \thirtyninechar("0")("1112212111");
73 \thirtyninechar("1")("2112111121");
74 \thirtyninechar("2")("1122111121");
75 \thirtyninechar("3")("2122111111");
76 \thirtyninechar("4")("1112211121");
77 \thirtyninechar("5")("2112211111");
78 \thirtyninechar("6")("1122211111");
79 \thirtyninechar("7")("1112112121");
80 \thirtyninechar("8")("2112112111");
81 \thirtyninechar("9")("1122112111");
82 \thirtyninechar( 64)("1211212111"); % start = @
83 \thirtyninechar("-")("1211112121");
84 \thirtyninechar("+")("1211121211");
85 \thirtyninechar("$")("1212121111");
86 \thirtyninechar("/")("1212111211");
87 \thirtyninechar(".")("2211112111");
88 \thirtyninechar( 37)("1112121211"); % percent
89 \thirtyninechar( 32)("1221112111"); % space
90 \thirtyninechar("A")("2111121121");
91 \thirtyninechar("B")("1121121121");
92 \thirtyninechar("C")("2121121111");
93 \thirtyninechar("D")("1111221121");
94 \thirtyninechar("E")("2111221111");
95 \thirtyninechar("F")("1121221111");
96 \thirtyninechar("G")("1111122121");
97 \thirtyninechar("H")("2111122111");
98 \thirtyninechar("I")("1121122111");
99 \thirtyninechar("J")("1111222111");
100 \thirtyninechar("K")("2111111221");
101 \thirtyninechar("L")("1121111221");
102 \thirtyninechar("M")("2121111211");
103 \thirtyninechar("N")("1111211221");
104 \thirtyninechar("O")("2111211211");
105 \thirtyninechar("P")("1121211211");
106 \thirtyninechar("Q")("1111112221");
107 \thirtyninechar("R")("2111112211");
108 \thirtyninechar("S")("1121112211");
109 \thirtyninechar("T")("1111212211");
110 \thirtyninechar("U")("2211111121");
111 \thirtyninechar("V")("1221111121");
112 \thirtyninechar("W")("2221111111");
113 \thirtyninechar("X")("1211211121");
114 \thirtyninechar("Y")("2211211111");
115 \thirtyninechar("Z")("1221211111");
116
117 \end;
118
119 \endinput
120 %%
121 %% End of file `wlc39.mf'.