Debian Codegraph @

texmf-dist/fonts/source/public/skak/skakf10b.mf

raw
1 % This is `skakf10b.mf' version 1.0 as of 6/99
2 % based on original work by Piet Tutelaers
3
4 % Informator symbols added
5 % by Dirk Baechle, [email protected] <2002-11-06>
6
7 % generates a font consisting of chess figurines
8
9 mode_setup;
10 font_size 10pt#;
11
12 u#:=10pt#;
13
14 input skakbase;
15
16 def figurine(expr code) =
17 beginchar(code, 1.0d#, .8d#, .2d#);
18 pickup pencircle scaled fine;
19 hairline_pen:=savepen;
20 pickup pencircle scaled thin;
21 thin_pen:=savepen ; % for drawing pieces
22 pickup pencircle scaled thick;
23 thick_pen:=savepen; % for drawing inside pieces
24 define_whole_pixels(d);
25 figshift:=0;
26 scantokens code(d, 0, -.2);
27 currentpicture:=currentpicture shifted (0,liftfig#);
28 endchar;
29 enddef;
30
31 def narrow_figurine(expr code) =
32 beginchar(code, 0.8d#, .8d#, .2d#);
33 pickup pencircle scaled fine;
34 hairline_pen:=savepen;
35 pickup pencircle scaled thin;
36 thin_pen:=savepen ; % for drawing pieces
37 pickup pencircle scaled thick;
38 thick_pen:=savepen; % for drawing inside pieces
39 define_whole_pixels(d);
40 figshift:=-0.1;
41 scantokens code(d, 0, -.2);
42 currentpicture:=currentpicture shifted (0,liftfig#);
43 endchar;
44 enddef;
45
46 M=1; % number of squares
47 d#:=10pt#/M; % size per square
48 lift=0.08;
49 thin#:=.47pt#;
50 middle#:=.7pt#;
51 fine#:=9/10thin#;
52 thick#:=5/6pt#;
53 define_blacker_pixels(fine, thin, middle, thick);
54 light=0; dark=1; white=0; black=1;
55 background:=light; color:=white;
56
57 liftfig#:=0d#;
58
59 narrow_figurine("K");
60 narrow_figurine("R");
61 narrow_figurine("B");
62 figurine("N");
63 figurine("p");
64 figurine("Q");
65
66 input skakinf;
67
68 end;
69