Debian Codegraph @

texmf-dist/fonts/source/public/sansmathfonts/sans-romanu.mf

raw
1 % Based on the Computer Modern source file romanu.mf by D E Knuth.
2
3 % Edited by Ariel Barton
4
5 % Date: 2013/03/22
6
7 % CM-style Roman upper case:
8 % These letters were originally coded by D. E. Knuth in November, 1979,
9 % inspired by the Monotype faces used in {\sl The Art of Computer Programming}.
10 % Sans serif designs by Richard Southall were added in April, 1982.
11 % The programs were revised for the new \MF\ conventions in 1985.
12
13 % Serifs were added to the uppercase sans serif I
14 % by Ariel Barton for reasons of clarity in 2012.
15
16 % Character codes \0101 through \0132 are generated.
17
18 input romanu; % Generate A-Z as Knuth did
19
20 % then redo the letter I
21
22 cmchar "The letter I"; % Added serifs
23 beginchar("I",
24 if known I_cap_jut: (cap_stem#+2I_cap_jut#+2u#),
25 else: max(6u#,4u#+cap_stem#), fi
26 cap_height#,0);
27 italcorr cap_height#*slant-.25u#;
28 adjust_fit(cap_serif_fit#,cap_serif_fit#);
29 pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0);
30 lft x1l=lft x2l=hround(.5w-.5cap_stem); top y1=h; bot y2=0;
31 filldraw stroke z1e--z2e; % stem
32 if serifs: dish_serif(1,2,a,1/3,1.05cap_jut,b,1/3,1.05cap_jut); % upper serif
33 dish_serif(2,1,c,1/3,1.05cap_jut,d,1/3,1.05cap_jut); fi % lower serif
34 if known I_cap_jut: if I_cap_jut > 0:
35 pos3(slab,90); pos4(slab,90);
36 rt x4r=(w-u); x3=w-x4;
37 top y4r = top y3r = h;
38 filldraw stroke z4e--z3e;
39 pos5(slab,90); pos6(slab,90);
40 x5=x3; x6=x4; y5=y6; bot y5l=0;
41 filldraw stroke z5e--z6e;
42 fi fi
43 math_fit(0,.5ic#); penlabels(1,2,3,4,5,6); endchar;
44
45