Debian Codegraph @

texmf-dist/fonts/source/public/cm/romspu.mf

raw
1 % THIS IS THE OFFICIAL COMPUTER MODERN SOURCE FILE romspu.mf BY D E KNUTH.
2 % IT MUST NOT BE MODIFIED IN ANY WAY UNLESS THE FILE NAME IS CHANGED!
3
4 % This file contains special letters and letter combinations,
5 % compatible with the alphabet `{\tt romanu}'.
6
7 % Codes \0035--\0037 are generated.
8
9 cmchar "The ligature AE";
10 beginchar(oct"035",16u#,cap_height#,0);
11 italcorr cap_height#*slant-beak_jut#-.5u#;
12 adjust_fit(cap_serif_fit#,0);
13 numeric left_stem,mid_stem,outer_jut,alpha;
14 mid_stem=max(tiny.breadth,hround .9[mfudged.hair,mfudged.cap_stem]);
15 pickup tiny.nib; pos1(mid_stem,0); pos2(mid_stem,0);
16 lft x1l=lft x2l=hround(if monospace or hefty:.55 else:.5 fi\\w-.75u);
17 top y1=h; bot y2=0;
18 filldraw stroke z1e--z2e; % stem
19 pickup crisp.nib; pos3(slab,90); pos4(mfudged.hair,0);
20 top y3r=h; x3=x1; rt x4r=hround(w-u); y4=good.y(y3l-beak)-eps;
21 arm(3,4,e,beak_darkness,beak_jut); % upper arm and beak
22 pos5(cap_bar,-90); pos6(mfudged.hair,0); x5=x1;
23 top y5l=vround(if hefty:.52 else:.48 fi\\[y2,y1]+.5cap_bar);
24 pos0(cap_bar,90); pos7(mfudged.hair,0);
25 z0=z5; x6=x7; y6-y5l=y0l-y7;
26 if serifs and not(monospace and hefty): rt x6r=hround(w-3.65u+.5mfudged.hair);
27 y6=good.y(y5l+.6beak)+eps; rt x9r=hround(w-.5u);
28 else: rt x6r=hround(w-1.5u); y6=y5l+eps; rt x9r=hround(w-.75u); fi
29 arm(5,6,f,beak_darkness,0); arm(0,7,g,beak_darkness,0); % middle arm and serif
30 pos8(slab if not serifs:+2stem_corr fi,-90);
31 pos9(mfudged.hair,0); bot y8r=0; x8=x2; y9=good.y(y8l+7/6beak)+eps;
32 arm(8,9,h,beak_darkness,1.5beak_jut); % lower arm and beak
33 left_stem=if monospace:fudged.hair else: cap_hair fi if hefty: -3stem_corr fi;
34 outer_jut=.8cap_jut; x11l=l+letter_fit+outer_jut+.5u; y11=0;
35 x12=x1l-apex_corr-if monospace:2 fi\\u; y12=h;
36 alpha=diag_ratio(1,.5left_stem,y12-y11,x12-x11l);
37 penpos11(alpha*left_stem,0); penpos12(alpha*left_stem,0);
38 fill diag_end(12l,11l,1,1,11r,12r)
39 --diag_end(11r,12r,1,1,12l,11l)--cycle; % diagonal
40 y10=h-slab; z10=whatever[z11,z12];
41 fill z10--(x1,y10)--(x1,h)--z12--cycle; % link
42 penpos13(whatever,angle(z2-z1)); z13=whatever[z11,z12];
43 penpos14(cap_band,90); x14=x0; y13l=y14l; y13r=y14r;
44 if hefty: y14r=.4h; else: y14=y0; fi
45 penstroke z13e--z14e; % bar line
46 if serifs: numeric inner_jut; pickup tiny.nib;
47 prime_points_inside(11,12);
48 if rt x11'r+cap_jut+.5u+1<=lft x2l-.75cap_jut: inner_jut=cap_jut;
49 else: rt x11'r+inner_jut+.5u+1=lft x2l-.75inner_jut; fi
50 dish_serif(11',12,i,1/2,outer_jut,j,.6,inner_jut)(dark); % lower left serif
51 nodish_serif(1,2,a,1/3,cap_jut+x1l-x12,b,1/3,.5cap_jut); % upper serif
52 nodish_serif(2,1,c,1/3,.75inner_jut,d,1/3,.5cap_jut); fi % lower middle serif
53 penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14); endchar;
54
55 cmchar "The ligature OE";
56 beginchar(oct"036",18u#,cap_height#,0);
57 italcorr cap_height#*slant-beak_jut#-.5u#;
58 adjust_fit(cap_serif_fit#,0);
59 numeric light_stem;
60 light_stem=max(tiny.breadth,hround .8[mfudged.hair,mfudged.cap_stem]);
61 pickup tiny.nib; pos1(light_stem,0); pos2(light_stem,0);
62 lft x1l=lft x2l=hround .5w; top y1=h; bot y2=0;
63 filldraw stroke z1e--z2e; % stem
64 pickup crisp.nib; pos3(slab,90); pos4(mfudged.hair,0);
65 top y3r=h; x3=x1; rt x4r=hround(w-u); y4=good.y(y3l-beak)-eps;
66 arm(3,4,e,beak_darkness,beak_jut); % upper arm and beak
67 pos5(cap_bar,-90); pos6(mfudged.hair,0);
68 top y5l=vround(.52[y2,y1]+.5cap_bar); x5=x1;
69 pos0(cap_bar,90); pos7(mfudged.hair,0);
70 z0=z5; x6=x7; y6-y5l=y0l-y7;
71 if serifs and not(monospace and hefty): rt x6r=hround(w-3.4u+.5mfudged.hair);
72 y6=good.y(y5l+.6beak)+eps; rt x9r=hround(w-.5u);
73 else: rt x6r=hround(w-1.5u); y6=y5l+eps; rt x9r=hround(w-.75u); fi
74 arm(5,6,f,beak_darkness,0); arm(0,7,g,beak_darkness,0); % middle arm and serif
75 pos8(slab if not serifs:+2stem_corr fi,-90);
76 pos9(mfudged.hair,0); bot y8r=0; x8=x2; y9=good.y(y8l+7/6beak)+eps;
77 arm(8,9,h,beak_darkness,1.5beak_jut); % lower arm and beak
78 penpos11(vair,90); penpos13(vair,-90);
79 if monospace: penpos12(fudged.cap_stem,180);
80 interim superness:=sqrt superness; % make |"O"|, not |"0"|
81 else: penpos12(hround(cap_curve-stem_corr),180); fi
82 x11=x13=.5w-2u; y11r=h+o; y13r=-o; y12=.5h-vair_corr; x12r=hround u;
83 x14=x15=.5w; y14=2/3h; y15=1/3h; y12l:=.52h;
84 penstroke super_arc.e(11,12) & super_arc.e(12,13); % left half of bowl
85 fill z13r{right}..{right}(x2,0)--(x1,h){left}..{left}z11r
86 --z11l{right}...{z14-z11l}(.82[x11l,x14],.82[y14,y11l])
87 ...z14---z15...{z13l-z15}(.82[x13l,x15],.82[y15,y13l])
88 ...{left}z13l--cycle; % right half of bowl
89 if serifs: serif(1,2,a,1/3,.5cap_jut); % upper serif
90 serif(2,1,b,1/3,.5cap_jut); fi % lower serif
91 penlabels(0,1,2,3,4,5,6,7,8,9,11,12,13,14,15); endchar;
92
93 cmchar "Scandinavian letter O/slash";
94 beginchar(oct"037",14u#,cap_height#+.25desc_depth#,.25desc_depth#);
95 italcorr .7cap_height#*slant-.5u#;
96 adjust_fit(0,0);
97 penpos1(vair,90); penpos3(vair,-90);
98 penpos2(fudged.cap_stem,180); penpos4(fudged.cap_stem,0);
99 if monospace: x2r=hround 1.5u;
100 interim superness:=sqrt superness; % make |"O"| not |"0"|
101 else: x2r=hround u; fi
102 x4r=w-x2r; x1=x3=.5w;
103 y1r=cap_height+o; y2=y4=.5cap_height-vair_corr; y3r=-o;
104 penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3)
105 & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl
106 x5=x4-vair; x6=x2+vair; y5=h; y6=-d;
107 numeric theta; theta=angle(z5-z6)-90;
108 pickup crisp.nib; pos5(vair',theta); pos6(vair',theta);
109 filldraw stroke z5e--z6e; % diagonal
110 penlabels(1,2,3,4,5,6); endchar;