-
Notifications
You must be signed in to change notification settings - Fork 0
/
i.mf
80 lines (54 loc) · 1.83 KB
/
i.mf
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
%% i.mf
%% * (1) Copyright and License.
%%%% This file is part of the source code for Mariu, a calligraphic font, programmed in METAFONT.
%%%% Copyright (C) 2022 Laurence D. Finston
%%%% Mariu 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 3 of the License, or
%%%% (at your option) any later version.
%%%% Mariu 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 Mariu; if not, write to the Free Software
%%%% Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
%%%% Please send bug reports to Laurence.Finston@gmx.de
%%%% The author can be contacted at:
%%%% Laurence D. Finston
%%%% Laurence.Finston@gmx.de
% This is i.mf
%special "grayfont black";
beginchar("i",3.25pt#,6.125pt#,.5pt#); "The letter i";
clear_vars;
scaling_factor = 22/20;
nom_w = scaling_factor*2.6pt;
nom_h = scaling_factor*5.3pt;
% This does the downstroke:
my_pen(20);
z0 = (9/16 nom_w, 31/32 nom_h);
z1 = (9/16 nom_w,0);
z2 = (dir 20 * whatever) shifted z1;
x2 = .8nom_w;
p0 = z0..tension 4..z1..{dir 20}z2;
draw p0;
% This does the forestroke:
% This finds the point on the downstroke that is the end of the
% forestroke.
z3 = point .3 of p0;
z4 = (3/16 nom_w,29/32 nom_h);
my_pen(50);
p1 = z3..z4;
draw p1;
%do_letter_shift := false;
if do_letter_shift = true:
do_rules := false;
letter_shift (v0,.125pt,0);
else:
penlabels(range 0 thru 20);
input nom_rules;
fi;
endchar;
% Local Variables:
% auto-save-interval:0
% End: