Unit tests for metafont
[ohcount] / test / src_dir / metafont.mf
1 % The (not really) first 20 or so lines from the plain METAFONT base
2
3 % Unlimited copying and redistribution of this file are permitted as long
4 % as this file is not modified. Modifications are permitted, but only if
5 % the resulting file is not named plain.mf.
6
7 string base_name, base_version; base_name="plain"; base_version="2.71";
8
9 message "Preloading the plain base, version "&base_version&": preliminaries,";
10
11 delimiters ();  % this makes parentheses behave like parentheses
12 def upto = step 1 until enddef; % syntactic sugar
13 def downto = step -1 until enddef;
14 def exitunless expr c = exitif not c enddef;
15 let relax = \;  % ignore the word `relax', as in TeX
16 let \\ = \; % double relaxation is like single
17 def ]] = ] ] enddef; % right brackets should be loners
18 def -- = {curl 1}..{curl 1} enddef;
19 def --- = .. tension infinity .. enddef;
20 def ... = .. tension atleast 1 .. enddef;
21
22 def gobble primary g = enddef; def killtext text t = enddef;