-
Notifications
You must be signed in to change notification settings - Fork 0
/
l.mf
113 lines (70 loc) · 2.23 KB
/
l.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
%% l.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 [email protected]
%%%% The author can be contacted at:
%%%% Laurence D. Finston
%%%% [email protected]
%% This is l.mf
%% Revised Oct 30, 1996.
beginchar("l",2.9pt#,9pt#,.4pt#); "The letter l";
%special "grayfont black";
%do_fill:=true;
do_fill:=false;
clear_vars;
scaling_factor = 28/20;
nom_w = scaling_factor*1.7pt;
nom_h = scaling_factor*6.2pt;
% This does the downstroke:
pickup my_fill_pen;
begingroup save a,b,c;
a = 35;
pos0(nib,40);pos1(nib,37.5);pos2(nib,a);pos3(nib,a);
top rt z0r = (61/64 nom_w, nom_h);
lft z1l = (4/16 nom_w, 11/16 nom_h);
bot lft z2l = (5/32 nom_w, 0);
z3 = (dir a * whatever) shifted z2;
rt x3r = 62/64 nom_w;
convert_path.p0 (z0e..z1e{z2-z1}..z2e);
filldraw p0;
b = 90;
z6 = (dir (35 + 180) * whatever) shifted z2;
x6 = x2 - 9/512 nom_w;
p1 = z6{dir (a-b)}..{dir a}z3;
my_pen(a);
draw p1;
endgroup;
% This does the forestroke:
begingroup save a,b,c;
a = 40;
pickup my_fill_pen;
pos4(nib,a);pos5(nib,a);
bot lft z4l = (-2/64 nom_w,53/64 nom_h);
z5 = (dir (a-90) * whatever) shifted z4;
x5 = x4 + 1/4 nom_w;
my_pen(a); draw z4..z5;
endgroup;
%do_letter_shift := false;
if do_letter_shift = true:
do_rules := false;
letter_shift (v0,.35pt,0);
else:
input l_rules;
penlabels(range 0 thru 20);
fi;
endchar;
% Local Variables:
% auto-save-interval:0
% End: