summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/fonts/source/public/chess/chesspieces.mf
blob: 31ccf6d67705c9d7905b604a3b7915e8a8ba6ca7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
% This is `chesspieces.mf' version 1.0 as of 8/90
% METAfounded by Piet Tutelaers (internet: rcpt@urc.tue.nl)

% this file generates the final chess font

background:=light; color:=white;

beginchar("0", d#, d#, 0); "0: light square";
endchar;

background:=dark;

beginchar("Z", d#, d#, 0); "Z: dark square";
   define_whole_pixels(d);
   dark_square(d);
endchar;

background:=light; color:=white;

beginchar("K", d#, d#, 0); "K: white king on light square";
   define_whole_pixels(d);
   K(d, 0, 0);
endchar;

color:=black;

beginchar("k", d#, d#, 0); "k: black king on light square";
   define_whole_pixels(d);
   K(d, 0, 0);
endchar;

background:=dark; color:=white;

beginchar("J", d#, d#, 0); "J: white king on dark square";
   define_whole_pixels(d);
   dark_square(d);
   K(d, 0, 0);
endchar;

color:=black;

beginchar("j", d#, d#, 0); "j: black king on dark square";
   define_whole_pixels(d);
   dark_square(d);
   K(d, 0, 0);
endchar;

background:=light; color:=white;

beginchar("Q", d#, d#, 0); "Q: white queen on light square";
   define_whole_pixels(d);
   Q(d, 0, 0);
endchar;

color:=black;

beginchar("q", d#, d#, 0); "q: black queen on light square";
   define_whole_pixels(d);
   Q(d, 0, 0);
endchar;

background:=dark; color:=white;

beginchar("L", d#, d#, 0); "L: white queen on dark square";
   define_whole_pixels(d);
   dark_square(d);
   Q(d, 0, 0);
endchar;

color:=black;

beginchar("l", d#, d#, 0); "l: black queen on dark square";
   define_whole_pixels(d);
   dark_square(d);
   Q(d, 0, 0);
endchar;

background:=light; color:=white;

beginchar("R", d#, d#, 0); "R: white rook on light square";
   define_whole_pixels(d);
   R(d, 0, 0);
endchar;

color:=black;

beginchar("r", d#, d#, 0); "r: black rook on light square";
   define_whole_pixels(d);
   R(d, 0, 0);
endchar;

background:=dark; color:=white;

beginchar("S", d#, d#, 0); "S: white rook on dark square";
   define_whole_pixels(d);
   dark_square(d);
   R(d, 0, 0);
endchar;

color:=black;

beginchar("s", d#, d#, 0); "s: black rook on dark square";
   define_whole_pixels(d);
   dark_square(d);
   R(d, 0, 0);
endchar;

background:=light; color:=white;

beginchar("B", d#, d#, 0); "B: white bishop on light square";
   define_whole_pixels(d);
   B(d, 0, 0);
endchar;

color:=black;

beginchar("b", d#, d#, 0); "b: black bishop on light square";
   define_whole_pixels(d);
   B(d, 0, 0);
endchar;

background:=dark; color:=white;

beginchar("A", d#, d#, 0); "A: white bishop on dark square";
   define_whole_pixels(d);
   dark_square(d);
   B(d, 0, 0);
endchar;

color:=black;

beginchar("a", d#, d#, 0); "a: black bishop on dark square";
   define_whole_pixels(d);
   dark_square(d);
   B(d, 0, 0);
endchar;

background:=light; color:=white;

beginchar("N", d#, d#, 0); "N: white knight on light square";
   define_whole_pixels(d);
   N(d, 0, 0);
endchar;

color:=black;

beginchar("n", d#, d#, 0); "n: black knight on light square";
   define_whole_pixels(d);
   N(d, 0, 0);
endchar;

background:=dark; color:=white;

beginchar("M", d#, d#, 0); "M: white knight on dark square";
   define_whole_pixels(d);
   dark_square(d);
   N(d, 0, 0);
endchar;

color:=black;

beginchar("m", d#, d#, 0); "m: black knight on dark square";
   define_whole_pixels(d);
   dark_square(d);
   N(d, 0, 0);
endchar;

background:=light; color:=white;

beginchar("P", d#, d#, 0); "P: white pawn on light square";
   define_whole_pixels(d);
   p(d, 0, 0);
endchar;

color:=black;

beginchar("p", d#, d#, 0); "p: black pawn on light square";
   define_whole_pixels(d);
   p(d, 0, 0);
endchar;

background:=dark; color:=white;

beginchar("O", d#, d#, 0); "O: white pawn on dark square";
   define_whole_pixels(d);
   dark_square(d);
   p(d, 0, 0);
endchar;

color:=black;

beginchar("o", d#, d#, 0); "o: black pawn on dark square";
   define_whole_pixels(d);
   dark_square(d);
   p(d, 0, 0);
endchar;