summaryrefslogtreecommitdiff
path: root/macros/generic/diagrams/xypic/mfinputs/xyd2.mf
blob: d4ab6f9c373f36a999d7bfe90a1fe1142c0d0b3e (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
% $Id: xyd2.mf,v 3.10 2010/06/10 18:45:50 krisrose Exp $
%
% XYD2: generate characters of `Xy-pic SemiDirectional' font.
% Copyright (c) 1992  Kristoffer H. Rose  <krisrose@tug.org>
%
% This file is part of the Xy-pic macro package.
%
% The Xy-pic macro package is free software; you can redistribute it and/or
% modify it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2 of the License, or (at your
% option) any later version.
%
% The Xy-pic macro package is distributed in the hope that it will be
% useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
% Public License for more details.
%
% You should have received a copy of the GNU General Public License along
% with this macro package; if not, see http://www.gnu.org/licenses/.
%
% As a special exception, you may use this file and all files derived
% from it without restriction.  This special exception was added with
% version 3.7 of Xy-pic.
% _________________________________________________________________________
%
% CONTENTS: Generate `semidirectional' characters from 0..127 by calling
% `chartowards(Code, Dx, Dy)' with
%
% Code:         0       30       31       63       95      127
% Dx,Dy:   31/32,1  1/32,1      0,-1     1,-1     1,0      1,1
%                /      | 				     /
% Direction:    o       o        o        o        o-       o
%                                |	   \
%
% where the intervening codes are got by interpolating either Dx or Dy as
% appropriate.
% _________________________________________________________________________
%
% Parameters:
%
font_coding_scheme:="xyd2.enc";
%
font_x_height	segx#;
font_quad	segl#;
fontdimen 8:	segw#;			% default_rule_thickness
%
% Characters:
%
for cc =  0 step 1 until  30: chartowards(cc,(31-cc)/32,         1); endfor;
for cc = 31 step 1 until  63: chartowards(cc,(cc-31)/32,        -1); endfor;
for cc = 64 step 1 until 127: chartowards(cc,         1,(cc-95)/32); endfor;
%
% $Log: xyd2.mf,v $
% Revision 3.10  2010/06/10 18:45:50  krisrose
% Reference to GPL by URL.
%
% Revision 3.9  2010/05/17 23:29:21  krisrose
% Experiment: generate all the Type1 fonts with METAPOST.
%
% Revision 3.8  2010/04/16 06:06:52  krisrose
% Preparing for a new release...
%
% Revision 3.7  1999/02/16 15:12:50  krisrose
% Interim release (Y&Y fonts now free).
%
% Revision 3.3  1996/12/19 03:31:56  krisrose
% Maintenance release
%
% Revision 3.0  1995/07/07 20:14:21  kris
% Major release w/new User's Guide!
%
% Revision 2.13  1995/07/04  15:11:17  kris
% Ready to release v3?
%
% Revision 2.12  1994/10/25  11:34:25  kris
% Interim release just before v3 [works with AMS-LaTeX 1.2]...
%
% Revision 2.7  1992/12/14  01:41:26  kris
% Generate all Xy-pic `semidirectionsl' characters.
%
% Extracted from xyline10.mf [Revision 2.1 1992/01/02 14:54:07 kris]