Debian Codegraph @

texmf-dist/fonts/source/public/xypic/xymisc10.mf

raw
1 % $Id: xymisc10.mf,v 3.5 2010/06/10 18:45:50 krisrose Exp $ -*-tex-*-
2 %
3 % XYMISC10: miscellaneous characters for XY mode at 10 point.
4 % Copyright (c) 1991,1992 Kristoffer H. Rose <[email protected]>
5 %
6 % This file is part of the XY-pic macro package.
7 %
8 % The XY-pic macro package is free software; you can redistribute it and/or
9 % modify it under the terms of the GNU General Public License as published by
10 % the Free Software Foundation; either version 2 of the License, or (at your
11 % option) any later version.
12 %
13 % The XY-pic macro package is distributed in the hope that it will be
14 % useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
15 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
16 % Public License for more details.
17 %
18 % You should have received a copy of the GNU General Public License along
19 % with this macro package; if not, see http://www.gnu.org/licenses/.
20 %
21 % CONTENTS:
22 % Metaness.
23 % Testing...
24 % Font.
25 % Dot fitting the rule width.
26 % Quarter circles with radii from 1 to 10 and 12 to 30 pt; all have
27 % height = depth = .5width = radius and are centered such that they
28 % enter and leave the box in the middle of the sides.
29 %
30 font_identifier "XYMISC"; font_size 10pt#;
31 font_coding_scheme:="XY miscellaneous";
32 mode_setup;
33
34 % METANESS...
35 %
36 rulew# = .4pt#; define_whole_blacker_pixels(rulew); % line thickness
37 %
38 def pickuppen = pickup pencircle scaled rulew enddef;
39
40 % TESTING...we redefine openit because the characters extend far to the
41 % left of the bounding box!
42 %
43 def openit = %%let echar = endchar; def endchar = echar; stop ". " enddef;
44 openwindow currentwindow
45 from origin to (1000,800) at (-200,300)
46 enddef;
47
48 % FONT.
49 %
50 % Font dimension 8 is the rule thickness (cf. The TeXbook, app.G)
51 fontdimen 8: rulew#;
52
53 % DOT FOR DOTTED LINES AND DUMMY CIRCLE...
54 %
55 beginchar(0,0,0,0); pickuppen; drawdot (0,0); endchar;
56 beginchar(1,0,0,0); pickuppen; drawdot (0,0); endchar;
57 beginchar(2,0,0,0); pickuppen; drawdot (0,0); endchar;
58 beginchar(3,0,0,0); pickuppen; drawdot (0,0); endchar;
59
60 % QUARTER CIRCLES... The four circles with radius N pt, 0 < N <= 10, are
61 % located at N*4 + QUADRANT, where 1 <= QUADRANT <= 4. All have width as
62 % their radius with reference point at the level of the horizontal end of the
63 % arc and height, depth as the extent of the arc.
64 %
65 for radius = 1 step 1 until 10:
66 beginchar(radius*4,2radius*pt#,radius*pt#,radius*pt#);
67 pickuppen;
68 draw quartercircle rotated 180 shifted (1,.5) scaled (radius*2pt);
69 endchar;
70 beginchar(radius*4+1,2radius*pt#,radius*pt#,radius*pt#);
71 pickuppen;
72 draw quartercircle rotated -90 shifted (0,.5) scaled (radius*2pt);
73 endchar;
74 beginchar(radius*4+2,2radius*pt#,radius*pt#,radius*pt#);
75 pickuppen;
76 draw quartercircle shifted (0,-.5) scaled (radius*2pt);
77 endchar;
78 beginchar(radius*4+3,2radius*pt#,radius*pt#,radius*pt#);
79 pickuppen;
80 draw quartercircle rotated 90 shifted (1,-.5) scaled (radius*2pt);
81 endchar;
82 endfor;
83 %
84 % For 12 <= N <= 40 we step in 2pt increments... so for 10 <= N <= 40 the
85 % quarter circle with radius N is located at (N div 2 + 20 + QUADRANT).
86 %
87 for radius = 12 step 2 until 40:
88 beginchar(radius*2+20,2radius*pt#,radius*pt#,radius*pt#);
89 pickuppen;
90 draw quartercircle rotated 180 shifted (1,.5) scaled (radius*2pt);
91 endchar;
92 beginchar(radius*2+21,2radius*pt#,radius*pt#,radius*pt#);
93 pickuppen;
94 draw quartercircle rotated -90 shifted (0,.5) scaled (radius*2pt);
95 endchar;
96 beginchar(radius*2+22,2radius*pt#,radius*pt#,radius*pt#);
97 pickuppen;
98 draw quartercircle shifted (0,-.5) scaled (radius*2pt);
99 endchar;
100 beginchar(radius*2+23,2radius*pt#,radius*pt#,radius*pt#);
101 pickuppen;
102 draw quartercircle rotated 90 shifted (1,-.5) scaled (radius*2pt);
103 endchar;
104 endfor;
105
106 bye.
107 %
108 % $Log: xymisc10.mf,v $
109 % Revision 3.5 2010/06/10 18:45:50 krisrose
110 % Reference to GPL by URL.
111 %
112 % Revision 3.4 2010/04/16 06:06:52 krisrose
113 % Preparing for a new release...
114 %
115 % Revision 3.3 1996/12/19 03:31:56 krisrose
116 % Maintenance release
117 %
118 % Revision 3.0 1995/07/07 20:14:21 kris
119 % Major release w/new User's Guide!
120 %
121 % Revision 2.6 1992/06/24 01:23:34 kris
122 % Cleaned up.
123 %
124 % Revision 2.1 1992/01/02 14:54:07 kris
125 % Release version.
126 %
127 % Revision 1.6 1991/11/27 06:54:21 kris
128 % \beta-test on DIKU.
129 %
130 % Revision 1.5 1991/10/21 23:19:08 kris
131 % Version described in DIKU student report 91-7-10.
132 %
133 % Revision 1.4 1991/08/22 01:07:46 kris
134 % Now has quarter circles to radius 40pt as required for xy.doc[1.28].
135 %
136 % Revision 1.3 1991/07/21 21:04:35 kris
137 % Tested with xy.doc[1.19].
138 %
139 % Revision 1.2 1991/07/19 14:52:26 kris
140 % Changed quarter circles to fit xy.doc[1.19?].
141 %
142 % Revision 1.1 1991/06/24 20:57:37 kris
143 % Works with xy.doc [1.6] :-)