Debian Codegraph @

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

raw
1 % THIS IS THE OFFICIAL COMPUTER MODERN SOURCE FILE romspl.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 romanl}'.
6
7 % Codes \0020--\0021 and \0031--\0034 are generated.
8
9 cmchar "Dotless letter i";
10 beginchar(oct"020",5u#,x_height#,0);
11 italcorr x_height#*slant-serif_fit#+.5stem#-2u#;
12 adjust_fit(serif_fit#+stem_shift# if monospace:+.25u#fi,serif_fit#-stem_shift#);
13 pickup tiny.nib; pos1(stem',0); pos2(stem',0);
14 if odd(w-stem'): change_width; fi
15 lft x1l=hround(.5w-.5stem'); x1=x2;
16 top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=0;
17 filldraw stroke z1e--z2e; % stem
18 if serifs: sloped_serif.l(1,2,a,1/3,.95jut,serif_drop); % upper serif
19 dish_serif(2,1,b,1/3,jut,c,1/3,.9jut); fi % lower serif
20 penlabels(1,2); endchar;
21
22 cmchar "Dotless letter j";
23 beginchar(oct"021",5.5u#,x_height#,desc_depth#);
24 italcorr x_height#*slant-serif_fit#+.5stem#-2u#;
25 adjust_fit(serif_fit#+2stem_shift# if monospace:+.5u# fi,
26 serif_fit#-2stem_shift# if monospace:-.5u# fi);
27 pickup tiny.nib; pos1(stem',0); pos2(stem',0);
28 rt x1r=hround(.5w+.25u+.5stem'); x1=x2;
29 top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=-1/3d;
30 filldraw stroke z1e--z2e; % stem
31 if serifs: sloped_serif.l(1,2,a,1/3,1.1jut,serif_drop); % upper serif
32 pickup tiny.nib; pos5(vair,-90); pos6(hair,-180); pos7(flare,-180);
33 x5=.5[x2,x6r]; bot y5r=-d-oo; y6-.5flare=-.88d;
34 if monospace: lft x6r=0 else: z6r=z7r; rt x7l=floor .75u fi;
35 (x,y5r)=whatever[z5l,z2l]; x5r:=max(x,.5[x6r,x5]);
36 filldraw stroke z2e{down}...z5e{left}; bulb(5,6,7); % arc and bulb
37 else: pickup fine.nib; pos2'(stem',0); z2'=z2;
38 pos6(.2[vair,stem'],-90); pos7(vair,-90);
39 lft x7r=hround -.75u; bot y7r=vround 5/6(-d-oo);
40 x3r=x1r; top y4r=min(2x_height,h+1);
41 (x,y7l)=whatever[z7r,(x1,min(h,asc_height))]; x7l:=x;
42 z5r=z2'r; (x2'l,y5l)=whatever[z7l,z5r]; x5l=x2'l; y5=y5r;
43 x6r=.5[x7r,x5r]; x6l:=.5[x7l,x5l]; bot y6r=-d-oo;
44 filldraw stroke z2'e..{down}z5e & super_arc.e(5,6)
45 & term.e(6,7,left,1,4); fi % arc and terminal
46 penlabels(1,2,5,6,7); endchar;
47
48 cmchar "German letter es-zet (sharp s)";
49 beginchar(oct"031",4.5u#+max(4.5u#,.5stem#+flare#+curve#),asc_height#,0);
50 italcorr asc_height#*slant-u#;
51 adjust_fit(serif_fit#,0);
52 pickup tiny.nib; pos1(stem',0); pos2(stem',0);
53 lft x1l=lft x2l=hround(2.5u-.5stem'); bot y1=0; y2=y4=.5[x_height,y3];
54 penpos3(vair-fine,90); fine.top y3r=h+oo;
55 filldraw stroke z1e--z2e; % stem
56 numeric stem_edge,curve'; stem_edge=rt x1r; curve'=hround .5[stem',curve];
57 pickup fine.nib; pos4(curve',0); pos5(vair,-90);
58 pos2'(stem',180); z2'=z2; x3=.5[x2,x4]; rt x4r=hround(w-u);
59 top y5l=x_height; lft x5=min(lft x4l,hround(stem_edge+u));
60 filldraw stroke pulled_super_arc.e(2',3)(.5superpull)
61 & pulled_super_arc.e(3,4)(.5superpull)
62 & pulled_super_arc.e(4,5)(.5superpull); % upper bowl
63 pos5'(vair,90); z5'=z5; pos6(curve',0); pos7(vair,-90);
64 rt x6r=hround(w-.5u)+3eps; y6=.4x_height; bot y7r=-oo;
65 if serifs: pos8(hair,-180) else: pos8(vair,-110) fi;
66 lft x8r=min(hround(stem_edge+.5u+1),lft x8r+x6r-2eps-x8l);
67 x7=max(x8l+eps,.4[lft x8r,x6]);
68 filldraw stroke pulled_super_arc.e(5',6)(.5superpull)
69 & pulled_super_arc.e(6,7)(.5superpull); % lower bowl
70 if serifs: pos9(5/7[vair,flare],-180);
71 y9-(x9-lft x9r)=vround .07x_height; bulb(7,8,9); % bulb
72 penpos0(stem'-tiny,0); x0=x1; tiny.top y0=x_height;
73 serif(0,1,a,0,-jut); % bar
74 dish_serif(1,2,b,1/3,jut,c,0,epsilon); % serif
75 else: bot y8r=vround .01h; x8l:=good.x x8l; y8l:=good.y(y8l+.5);
76 filldraw stroke term.e(7,8,left,1,4); fi % terminal
77 penlabels(0,1,2,3,4,5,6,7,8,9); endchar;
78
79 cmchar "The ligature ae";
80 beginchar(oct"032",13u#,x_height#,0);
81 italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0);
82 adjust_fit(0,0);
83 numeric left_curve,right_curve;
84 if monospace: right_curve=left_curve=fudged.stem;
85 else: left_curve=max(tiny.breadth,hround(curve-2stem_corr));
86 right_curve=max(tiny.breadth,hround(curve-if serifs:6 else:8 fi\\stem_corr));fi
87 pickup tiny.nib; pos11(right_curve,0);
88 pos12(vair,90); pos13(mfudged.stem,180);
89 y11=good.y bar_height; top y12r=h+vround 1.5oo; y10l=bot y11;
90 rt x11r=hround min(w-.5u,w-u+.5right_curve);
91 lft x13r=hround (.5w-.5mfudged.stem); x12=.55[x13,x11];
92 {{interim superness:=more_super;
93 filldraw stroke super_arc.e(11,12)}}; % right bowl of e
94 y13=.5[y12,y14]; bot y14r=-oo; x14=x12+.25u;
95 if serifs: pos14(vair',270); pos15(mfudged.hair,360);
96 y15=max(good.y(.5bar_height-.9),y14l+vair); x15r=x11r;
97 (x,y14l)=whatever[z14r,z15]; x14l:=min(x,x14l+.5u);
98 filldraw stroke pulled_arc.e(12,13)
99 & pulled_super_arc.e(13,14)(.8superpull)
100 ...{x15-x14,5(y15-y14)}z15e; % left bowl, arc, and terminal of e
101 else: pos14(vair,270);
102 filldraw stroke super_arc.e(12,13)
103 & super_arc.e(13,14); % left bowl and arc of e
104 pickup fine.nib; pos14'(vair,270); z14=z14';
105 pos15(.5[vair,flare],275); rt x15r=hround(w-.6u);
106 y15r=good.y(y15r+1/3bar_height-y15); y15l:=good.y y15l; x15l:=good.x x15l;
107 filldraw stroke term.e(14',15,right,1,4); fi % right terminal
108 y11'r=y10r=y10l+.6[thin_join,vair]; y11'l=y10l; x11'l=x11'r=x11; x10l=x10r=x13;
109 fill stroke z10e--z11'e; % crossbar
110 pickup fine.nib; top y3r=h+vround 1.5oo;
111 if serifs: pos1(flare,180); pos2(mfudged.hair,180);
112 pos3(vair,90); lft x1r=hround max(u,2.1u-.5flare); x3=4u;
113 y1=min(bar_height+.5flare+2vair+2,.9[bar_height,h]-.5flare);
114 bulb(3,2,1); % bulb
115 else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r;
116 pos3(1/8[vair,thin_join],90);
117 x3=4.3u; top y1r=vround .82[bar_height,top y3r];
118 filldraw stroke term.e(3,1,left,.9,4); fi % left terminal
119 pos4(mfudged.stem,0); x4=x13; y4=1/3[bar_height,h];
120 pos5(mfudged.stem,0); x5=x4; y5=min(y4,y13);
121 filldraw stroke super_arc.e(3,4)&z4e--z5e; % arc and stem
122 pos6(.6[thin_join,vair],90); x6=x4; bot y6=y10l;
123 pos7(left_curve,180);
124 lft x7r=hround max(.5u,1.5u-.5left_curve); y7=1/3[top y8l,top y6r];
125 pos8(vair,270); x8l=3.75u; bot y8r=-oo;
126 pos9(.5[vair,fudged.stem],360); x9=x5; y9=.55bar_height;
127 (x',y8r)=whatever[z8l,z9l]; x8r:=max(x',x8-u);
128 {{interim superness:=more_super;
129 filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl
130 if y9<y5: filldraw stroke z5e{down}..{down}z9e; fi % link (usually hidden)
131 penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15); endchar;
132
133 cmchar "The ligature oe";
134 beginchar(oct"033",14u#,x_height#,0);
135 italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0);
136 adjust_fit(0,0);
137 numeric left_curve,right_curve;
138 if monospace: right_curve=left_curve=fudged.stem;
139 else: left_curve=max(fine.breadth,hround(curve-2stem_corr));
140 right_curve=max(tiny.breadth,hround(curve-if serifs:6 else:8 fi\\stem_corr));fi
141 pickup tiny.nib; pos11(right_curve,0);
142 pos12(vair,90); pos13(mfudged.stem,180);
143 y11=good.y bar_height; top y12r=h+vround 1.5oo; y10l=bot y11;
144 rt x11r=hround min(w-.5u,w-u+.5right_curve);
145 lft x13r=hround (.5(w+u)-.5mfudged.stem); x12=.55[x13,x11];
146 {{interim superness:=more_super;
147 filldraw stroke super_arc.e(11,12)}}; % right bowl of e
148 y13=.5[y12,y14]; bot y14r=-oo; x14=x12+.25u;
149 if serifs: pos14(vair',270); pos15(mfudged.hair,360);
150 y15=max(good.y(.5bar_height-.9),y14l+vair); x15r=x11r;
151 (x,y14l)=whatever[z14r,z15]; x14l:=min(x,x14l+.5u);
152 filldraw stroke pulled_arc.e(12,13)
153 & pulled_super_arc.e(13,14)(.8superpull)
154 ...{x15-x14,5(y15-y14)}z15e; % left bowl, arc, and terminal of e
155 else: pos14(vair,270);
156 filldraw stroke super_arc.e(12,13)
157 & super_arc.e(13,14); % left bowl and arc of e
158 pickup fine.nib; pos14'(vair,270); z14=z14';
159 pos15(.5[vair,flare],275); rt x15r=hround(w-.6u);
160 y15r=good.y(y15r+1/3bar_height-y15); y15l:=good.y y15l; x15l:=good.x x15l;
161 filldraw stroke term.e(14',15,right,1,4); fi % terminal
162 y11'r=y10r=y10l+.6[thin_join,vair]; y11'l=y10l; x11'l=x11'r=x11; x10l=x10r=x13;
163 fill stroke z10e--z11'e; % crossbar
164 pickup fine.nib; pos1(vair,90); pos3(vair,-90);
165 pos2(left_curve,180); pos4(mfudged.stem,0);
166 lft x2r=hround max(.5u,1.25u-.5curve);
167 z4=z13; x1=x3=.5[x2,x4]; top y1r=h+vround 1.5oo; bot y3r=-oo;
168 y2=y4; y2l:=y4l:=.52h;
169 filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3); % left half of left bowl
170 filldraw stroke pulled_arc.e(3,4) & pulled_arc.e(4,1); % right half of left bowl
171 penlabels(1,2,3,4,10,11,12,13,14,15); endchar;
172
173 cmchar "Scandinavian letter o/slash";
174 beginchar(oct"034",9u#,x_height#+.5desc_depth#,.5desc_depth#);
175 italcorr h#*slant-u#-max(.5fudge*stem#,.75u#)+.5vair#;
176 adjust_fit(0,0);
177 penpos1(vair,90); penpos3(vair,-90);
178 penpos2(fudged.stem,180); penpos4(fudged.stem,0);
179 x2r=hround max(.5u,1.25u-.5fudged.stem);
180 x4r=w-x2r; x1=x3=.5w;
181 y1r=x_height+vround 1.5oo; y2=y4=.5x_height-vair_corr; y3r=-oo;
182 penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3)
183 & pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl
184 x5=x4; x6=x2; y5=h; y6=-d;
185 numeric theta; theta=angle(z5-z6)-90;
186 pickup crisp.nib; pos5(vair,theta); pos6(vair,theta);
187 filldraw stroke z5e--z6e; % diagonal
188 penlabels(1,2,3,4,5,6); endchar;