Debian Codegraph @

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

raw
1 % $Id: xyd.mf,v 3.10 2010/06/10 18:45:50 krisrose Exp $
2 %
3 % XYD: generate characters of `Xy-pic Directional' font.
4 % Copyright (c) 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 % As a special exception, you may use this file and all files derived
22 % from it without restriction. This special exception was added with
23 % version 3.7 of Xy-pic.
24 % _________________________________________________________________________
25 %
26 % CONTENTS: Generate `directional' characters from 0..127 by calling
27 % `chartowards(Code, Dx, Dy)' with
28 %
29 % Code: 0 15 31 47 63 79 95 111 127
30 % Dx,Dy: -15/16,-1 0,-1 1,-1 1,0 1,1 0,1 -1,1 -1,0 -1,-1
31 % / | \
32 % Direction: o o o o- o o o -o o
33 % / | \ /
34 %
35 % where the intervening codes are got by interpolating either Dx or Dy as
36 % appropriate.
37 % _________________________________________________________________________
38 %
39 % Parameters:
40 %
41 font_coding_scheme:="xyd.enc";
42 %
43 font_x_height segx#;
44 font_quad segl#;
45 fontdimen 8: segw#; % default_rule_thickness
46 %
47 % Characters:
48 %
49 for cc = 0 step 1 until 31: chartowards(cc,(cc-15)/16, -1); endfor;
50 for cc = 32 step 1 until 63: chartowards(cc, 1, (cc-47)/16); endfor;
51 for cc = 64 step 1 until 95: chartowards(cc,(79-cc)/16, 1); endfor;
52 for cc = 96 step 1 until 127: chartowards(cc, -1,(111-cc)/16); endfor;
53 %
54 % $Log: xyd.mf,v $
55 % Revision 3.10 2010/06/10 18:45:50 krisrose
56 % Reference to GPL by URL.
57 %
58 % Revision 3.9 2010/05/17 23:29:21 krisrose
59 % Experiment: generate all the Type1 fonts with METAPOST.
60 %
61 % Revision 3.8 2010/04/16 06:06:52 krisrose
62 % Preparing for a new release...
63 %
64 % Revision 3.7 1999/02/16 15:12:50 krisrose
65 % Interim release (Y&Y fonts now free).
66 %
67 % Revision 3.3 1996/12/19 03:31:56 krisrose
68 % Maintenance release
69 %
70 % Revision 3.0 1995/07/07 20:14:21 kris
71 % Major release w/new User's Guide!
72 %
73 % Revision 2.13 1995/07/04 15:11:17 kris
74 % Ready to release v3?
75 %
76 % Revision 2.7 1992/12/14 01:41:26 kris
77 % Generate all Xy-pic `directional' characters.
78 %
79 % Extracted from xyatip10.mf [Revision 2.1 1992/01/02 14:54:07 kris]