Debian Codegraph @

texmf-dist/doc/fonts/bartel-chess-fonts/other-sources/chess.mf

raw
1 %======================================================================
2 % This is
3 % chess.mf
4 %
5 % Copyright (C) 19895 by Elmar Bartel.
6 %
7 % This program is free software; you can redistribute it and/or modify
8 % it under the terms of the GNU General Public License as published by
9 % the Free Software Foundation; either version 1, or (at your option)
10 % any later version.
11 %
12 % This program is distributed in the hope that it will be useful,
13 % but WITHOUT ANY WARRANTY; without even the implied warranty of
14 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 % GNU General Public License for more details.
16 %
17 % You should have received a copy of the GNU General Public License
18 % along with this program; if not, write to the Free Software
19 % Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 %======================================================================
21 %
22
23 % This file is only for testing purposes
24 %mode_setup;
25 qs#:= 30pt#;
26
27 %%
28 %% what follows is a testing version of
29 %% fselch.mf;
30
31 % The following values should match the values given
32 % to the Xresources:
33 % mf*width: 700
34 % mf*height: 700
35 %
36 screen_rows:= 700;
37 screen_cols:= 700;
38
39 def openit = openwindow currentwindow
40 from origin to (screen_rows, screen_cols) at (-20, qs+20)
41 enddef;
42
43
44 thin#=0.03qs#;
45 inner_thin# = .66thin#;
46 frame_thin# = 4thin#;
47
48 SideSpace# = .11qs#;
49 BottomWidth# = qs# - 2SideSpace#;
50 BottomSpace# = .12qs#;
51 TopSpace# = .12qs#;
52
53 %-----------------------------------------------------------------------
54 % Now define our pixels
55 define_whole_pixels(qs,thin,inner_thin,frame_thin);
56 define_pixels(SideSpace,BottomWidth,BottomSpace,TopSpace);
57
58 %-----------------------------------------------------------------------
59 % defining our pens
60 pen chess_pen; chess_pen = pencircle scaled thin;
61 pen inner_pen; inner_pen = pencircle scaled inner_thin;
62 pen frame_pen; frame_pen = pencircle scaled frame_thin;
63 pickup chess_pen;
64
65 %-----------------------------------------------------------------------
66 % get our base
67 input chbase.mf;
68
69 %-----------------------------------------------------------------------
70 % now generate the figures
71 pickup chess_pen; input blackfield.mf;
72 %pickup chess_pen; input pawn.mf;
73 %pickup chess_pen; input knight.mf;
74 %Pickup chess_pen; input queen.mf;
75 %pickup chess_pen; input king.mf;
76 pickup chess_pen; input bishop.mf;
77 %pickup chess_pen; input rook.mf;
78 %pickup chess_pen; input geo.mf;
79 %pickup chess_pen; input equi.mf;
80
81 %----------------------------------------------------------------------
82 % Now the fontdimension parameters
83 font_normal_space qs#;
84 font_normal_stretch 0;
85 font_normal_shrink 0;
86 font_x_height qs#;
87 font_quad qs#;
88 font_extra_space 0;
89
90
91
92 %end;