| 1 |
% THIS IS THE OFFICIAL COMPUTER MODERN SOURCE FILE itall.mf BY D E KNUTH. |
| 2 |
% IT MUST NOT BE MODIFIED IN ANY WAY UNLESS THE FILE NAME IS CHANGED! |
| 3 |
|
| 4 |
% Computer Modern Italic lower case: |
| 5 |
% This lowercase italic alphabet was prepared by D. E. Knuth in December, 1979, |
| 6 |
% inspired by the Monotype faces used in {\sl The Art of Computer Programming}. |
| 7 |
% The programs were revised for the new \MF\ conventions in 1985. |
| 8 |
|
| 9 |
% Character codes \0141 through \0172 are generated. |
| 10 |
|
| 11 |
cmchar "Italic letter a"; |
| 12 |
beginchar("a",9u#,x_height#,0); |
| 13 |
italcorr 1/3x_height#*slant+.5hair#+.5u#; |
| 14 |
adjust_fit(0,0); pickup fine.nib; |
| 15 |
pos0(hair,0); pos1(vair,90); pos2(curve,180); pos3(vair,270); |
| 16 |
pos4(stem,0); x4=x0; y4+.5stem=vround .98h; |
| 17 |
x1=x3=.5[x0,x2]; lft x2r=hround(1.5u-.5curve); |
| 18 |
rt x4r=hround(w-2.5u+.5stem); |
| 19 |
top y1r=h+oo; bot y3r=-oo; y0=y2=.5[y1,y3]; |
| 20 |
filldraw stroke super_arc.e(0,1) & pulled_arc.e(1,2) |
| 21 |
& pulled_arc.e(2,3) & super_arc.e(3,0); % bowl |
| 22 |
x5=x4; x7=w; hook_out(5,6,7); % closing hook |
| 23 |
filldraw circ_stroke z4e--z5e; % stem |
| 24 |
math_fit(-.3x_height#*slant+.5curve#-u#,ic#); |
| 25 |
penlabels(0,1,2,3,4,5,6,7); endchar; |
| 26 |
|
| 27 |
cmchar "Italic letter b"; |
| 28 |
beginchar("b",8u#,asc_height#,0); |
| 29 |
italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; |
| 30 |
adjust_fit(0,0); pickup tiny.nib; |
| 31 |
pos1(stem,0); pos2(stem,0); x1=x2; |
| 32 |
lft x1l=hround(1.5u-.5stem); top y1=h; y2=.5x_height; |
| 33 |
filldraw stroke z1e--z2e; % stem |
| 34 |
sloped_serif.l(1,2,a,1/3,jut,serif_drop); % serif |
| 35 |
pickup fine.nib; pos2'(stem,-180); pos3(vair,-90); |
| 36 |
pos4(curve,0); pos5(vair,90); pos0(hair,180); |
| 37 |
z0=z2=z2'; x3=x5=.5[x2,x4]; rt x4r=hround(w-1.5u+.5curve); |
| 38 |
bot y3r=-oo; top y5r=x_height+oo; y4=y2; |
| 39 |
filldraw stroke pulled_arc.e(2',3) & pulled_arc.e(3,4) |
| 40 |
& pulled_arc.e(4,5) & super_arc.e(5,0); % bowl |
| 41 |
math_fit(-.3x_height#*slant+.5curve#-u#,ic#); |
| 42 |
penlabels(0,1,2,3,4,5); endchar; |
| 43 |
|
| 44 |
cmchar "Italic letter c"; |
| 45 |
beginchar("c",8u#,x_height#,0); |
| 46 |
italcorr if math_fitting:1/3x_height#*slant else:x_height#*slant-u# fi; |
| 47 |
adjust_fit(0,0); pickup fine.nib; |
| 48 |
pos0(flare,0); pos1(hair,0); pos2(vair,90); |
| 49 |
pos3(curve,180); pos4(vair,270); pos5(hair,320); |
| 50 |
x2=x4=.5(w+u); rt x1r=max(rt x2,hround(w-u))+eps; |
| 51 |
lft x3r=hround(1.5u-.5curve); x5r=good.x(w-eps); x6=x5; |
| 52 |
y1=.5[bar_height,h]; top y2r=h+oo; bulb(2,1,0); % bulb |
| 53 |
bot y4r=-oo; y3=.5[y2,y4]; top y5l=vround .5bar_height; y6=bar_height; |
| 54 |
path p; p=z4{right}..z5..z6; |
| 55 |
filldraw stroke pulled_arc.e(2,3) |
| 56 |
& pulled_arc.e(3,4)...{direction 1 of p}z5e; % arc |
| 57 |
math_fit(-.3x_height#*slant+.5curve#-u#,ic#); |
| 58 |
penlabels(0,1,2,3,4,5,6); endchar; |
| 59 |
|
| 60 |
cmchar "Italic letter d"; |
| 61 |
beginchar("d",9u#,asc_height#,0); |
| 62 |
italcorr max(1/3x_height#*slant+.5hair#+.5u#, |
| 63 |
h#*slant+.5stem#-2u#) if math_fitting:-.5u# fi; |
| 64 |
adjust_fit(0,0); pickup fine.nib; |
| 65 |
pos0(hair,0); pos1(vair,90); pos2(curve,180); pos3(vair,270); |
| 66 |
x0=x4; x1=x3=.5[x0,x2]; lft x2r=hround(1.5u-.5curve); |
| 67 |
x4+.5stem=hround(w-2.5u+.5stem); |
| 68 |
top y1r=x_height+oo; bot y3r=-oo; y0=y2=.5[y1,y3]; |
| 69 |
filldraw stroke super_arc.e(0,1) & pulled_arc.e(1,2) |
| 70 |
& pulled_arc.e(2,3) & super_arc.e(3,0); % bowl |
| 71 |
x5=x0; x7=w; hook_out(5,6,7); % closing hook |
| 72 |
pickup tiny.nib; pos5'(stem,0); pos4(stem,0); |
| 73 |
z5'=z5; top y4=h; filldraw stroke z4e--z5'e; % stem |
| 74 |
sloped_serif.l(4,5',a,1/3,jut,serif_drop); % serif |
| 75 |
math_fit(-.3x_height#*slant+.5curve#-u#,ic#); |
| 76 |
penlabels(0,1,2,3,4,5,6,7); endchar; |
| 77 |
|
| 78 |
cmchar "Italic letter e"; |
| 79 |
beginchar("e",8u#,x_height#,0); |
| 80 |
italcorr max(1/3x_height#*slant,x_height#*slant+.5(.2[hair#,stem#])-u#); |
| 81 |
adjust_fit(0,0); pickup fine.nib; |
| 82 |
numeric heavy_hair; heavy_hair=hround .2[hair,stem]; |
| 83 |
pos0(vair,-90); pos1(heavy_hair,0); pos2(vair,90); |
| 84 |
pos3(curve,180); pos4(vair,270); pos5(hair,320); |
| 85 |
x0=rt x3l; rt x1r=hround(w-1.5u+.5heavy_hair); x2=x4=.5(w+u); |
| 86 |
lft x3r=hround(1.5u-.5curve); x5r=good.x(w-eps); x6=x5; |
| 87 |
y0=y3=y6=bar_height; y1=.5[y0,y2]; top y2r=h+oo; bot y4r=-oo; |
| 88 |
top y5l=vround .5bar_height; path p; p=z4{right}..z5..z6; |
| 89 |
filldraw stroke z0e{right}...z1e{up}...pulled_arc.e(2,3) |
| 90 |
& pulled_arc.e(3,4)...{direction 1 of p}z5e; % arc |
| 91 |
math_fit(-.3x_height#*slant+.5curve#-u#,ic#); |
| 92 |
penlabels(0,1,2,3,4,5,6); endchar; |
| 93 |
|
| 94 |
cmchar "Italic letter f"; |
| 95 |
beginchar("f",max(1.5u#,stem#)+max(3.5u#,2flare#),asc_height#,desc_depth#); |
| 96 |
italcorr asc_height#*slant+.75u#; |
| 97 |
adjust_fit(if monospace:u#,u# else: 0,0 fi); pickup fine.nib; |
| 98 |
numeric theta; z88=(.5w-.5u,h); z89=(.5w+.5u,-d); theta=angle(z88-z89); |
| 99 |
pos0(flare,0); pos1(hair,0); pos2(vair,90); |
| 100 |
pos3(.5[hair,stem],180); pos4(stem,theta+90); |
| 101 |
pos5(stem,theta-90); pos6(.5[hair,stem],0); |
| 102 |
pos7(vair,-90); pos8(hair,-180); pos9(flare,-180); |
| 103 |
rt x1r=hround(w+.25u); lft x8r=hround-.35u; x2=.6[x1,x4]; x7=.6[x8,x5]; |
| 104 |
y9-.5flare=vround -.85d; y2-y0=y9-y7; top y2r=h+oo; bot y7r=-d-oo; |
| 105 |
y4=.25[x_height,h]; y5=.5[-d,y4]; |
| 106 |
z4=whatever[z88,z89]; z5=whatever[z88,z89]; |
| 107 |
x3=.8[x2+x4-x88,x88]; x6=.8[x7+x5-x89,x89]; y3=.8[y4,y2]; y6=.8[y5,y7]; |
| 108 |
bulb(2,1,0); bulb(7,8,9); % bulbs |
| 109 |
filldraw stroke z2e{left}...z3e...{z89-z88}z4e; % upper arc |
| 110 |
filldraw z4r--z5l--z5r--z4l--cycle; % stem |
| 111 |
filldraw stroke z5e{z89-z88}...z6e...{left}z7e; % lower arc |
| 112 |
pickup crisp.nib; pos20(bar,90); pos21(bar,90); |
| 113 |
top y20r=top y21r=x_height; |
| 114 |
lft x20=lft x4r-.5stem-u; rt x21=rt x4l+.5stem+1.5u; |
| 115 |
filldraw stroke z20e--z21e; % crossbar |
| 116 |
math_fit(desc_depth#*slant+u#,x_height#*slant); |
| 117 |
penlabels(0,1,2,3,4,5,6,7,8,9,20,21,88,89); endchar; |
| 118 |
|
| 119 |
cmchar "Italic letter g"; |
| 120 |
beginchar("g",8u#,x_height#,desc_depth#); |
| 121 |
italcorr x_height#*slant+.5stem#-u#; |
| 122 |
adjust_fit(0,0); pickup fine.nib; |
| 123 |
pos0(hair,0); pos1(vair,90); pos2(curve,180); pos3(vair,270); |
| 124 |
x0=x4; x1=x3=.5[x0,x2]; lft x2r=hround(1.5u-.5curve); |
| 125 |
x4+.5stem=hround(w-1.5u+.5stem); |
| 126 |
top y1r=h+oo; bot y3r=0; y0=y2=.5[y1,y3]; |
| 127 |
filldraw stroke super_arc.e(0,1) & pulled_arc.e(1,2) |
| 128 |
& pulled_arc.e(2,3) & super_arc.e(3,0); % bowl |
| 129 |
pos4(stem,0); y4+.5stem=vround .98h; |
| 130 |
pos5(stem,0); x5=x4; y5=-1/3d; |
| 131 |
pos6(vair,-90); pos7(hair,-180); pos8(flare,-180); |
| 132 |
bot y6r=-d-oo; y8-.5flare=vround -.9d; |
| 133 |
lft x8r=hround(2u-.5flare); x6=x1; bulb(6,7,8); % bulb |
| 134 |
filldraw circ_stroke z4e---z5e...{left}z6e; % stem and arc |
| 135 |
math_fit(-min(.3x_height#*slant+.5curve#-u#,1.5u#-desc_depth#*slant), |
| 136 |
ic#-1/3x_height#*slant); penlabels(0,1,2,3,4,5,6,7,8); endchar; |
| 137 |
|
| 138 |
cmchar "Italic letter h"; |
| 139 |
beginchar("h",9u#,asc_height#,0); |
| 140 |
italcorr 1/3x_height#*slant+.5hair#+.5u#; |
| 141 |
adjust_fit(0,0); pickup tiny.nib; |
| 142 |
pos1(stem,0); pos2(stem,0); x1=x2; |
| 143 |
lft x1l=hround(1.5u-.5stem); top y1=h; y2-.5stem=-oo; |
| 144 |
filldraw circ_stroke z2e--z1e; % left stem |
| 145 |
sloped_serif.l(1,2,a,1/3,jut,serif_drop); % serif |
| 146 |
pickup fine.nib; x4+.5stem=hround(w-2.5u+.5stem); |
| 147 |
x5=x4-.25u; ital_arch(2,3,4); % arch |
| 148 |
x7=w; hook_out(5,6,7)(skewed); % closing hook |
| 149 |
filldraw stroke z4e{down}..{-u,-x_height}z5e; % right stem |
| 150 |
math_fit(0,ic#); penlabels(1,2,3,4,5,6,7); endchar; |
| 151 |
|
| 152 |
cmchar "Italic letter i"; |
| 153 |
beginchar("i",5u#,min(asc_height#,10/7x_height#+.5flare#),0); |
| 154 |
italcorr max(1/3x_height#*slant+.5hair#+.5u#,h#*slant+.5flare#-2u#); |
| 155 |
adjust_fit(if monospace:u#,u# else: 0,0 fi); pickup fine.nib; |
| 156 |
x0=0; x5=w; x2=.5w+.25u; x3=.5w-.25u; |
| 157 |
hook_in(0,1,2)(skewed); hook_out(3,4,5)(skewed); % hooks |
| 158 |
filldraw stroke z2e--z3e; % stem |
| 159 |
pos8(flare,0); pos9(flare,90); |
| 160 |
x8=.5w if not monospace:-.4(h-x_height)*slant fi; top y9r=h+1; |
| 161 |
if bot y9l-top y1<slab: y9l:=min(y9r-eps,y1+fine+slab); fi |
| 162 |
x8=x9; y8=.5[y9l,y9r]; dot(8,9); % dot |
| 163 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#); |
| 164 |
penlabels(0,1,2,3,4,5,8,9); endchar; |
| 165 |
|
| 166 |
cmchar "Italic letter j"; |
| 167 |
beginchar("j",5u#,min(asc_height#,10/7x_height#+.5flare#),desc_depth#); |
| 168 |
italcorr h#*slant+.5stem#-u#; |
| 169 |
adjust_fit(if monospace:2u#,.5u# else: 0,0 fi); pickup fine.nib; |
| 170 |
x0=0; x2=x3; pos3(stem,0); lft x3l=hround(w-1.5u-.5stem); |
| 171 |
hook_in(0,1,2); % opening hook |
| 172 |
pos4(vair,-90); pos5(hair,-180); pos6(flare,-180); |
| 173 |
bot y3=-1/3d; bot y4r=-d-oo; y6-.5flare=-vround.9d; |
| 174 |
x4=1/3(w-u); lft x5r=min(hround-.5u,lft x5r+x4-x5l-eps); |
| 175 |
filldraw stroke z2e---z3e...{left}z4e; % stem and arc |
| 176 |
bulb(4,5,6); % bulb |
| 177 |
pos8(flare,0); pos9(flare,90); |
| 178 |
rt x8r=rt x2r if not monospace:-.6(h-x_height)*slant fi; top y9r=h+1; |
| 179 |
if bot y9l-top y1<slab: y9l:=min(y9r-eps,y1+fine+slab); fi |
| 180 |
x8=x9; y8=.5[y9l,y9r]; dot(8,9); % dot |
| 181 |
math_fit(desc_depth#*slant,x_height#*slant+.5stem#-u#); |
| 182 |
penlabels(0,1,2,3,4,5,6,8,9); endchar; |
| 183 |
|
| 184 |
cmchar "Italic letter k"; |
| 185 |
beginchar("k",8u#,asc_height#,0); |
| 186 |
italcorr x_height#*slant; |
| 187 |
adjust_fit(0,0); pickup tiny.nib; |
| 188 |
pos1(stem,0); pos2(stem,0); x1=x2; |
| 189 |
lft x1l=hround(1.5u-.5stem); top y1=h; y2-.5stem=-oo; |
| 190 |
filldraw circ_stroke z2e--z1e; % left stem |
| 191 |
sloped_serif.l(1,2,a,1/3,jut,serif_drop); % serif |
| 192 |
pickup fine.nib; pos3(vair,90); x3=x1; y3=bar_height; |
| 193 |
pos4(vair,90); x4=w-2u; top y4r=x_height+oo; |
| 194 |
filldraw stroke z3e{right}..{right}z4e; % upper diagonal |
| 195 |
pos5(hair,0); pos6(flare,0); |
| 196 |
rt x5r=hround(w-.5u); y5+.5flare=vround(bot y4l-.03x_height); |
| 197 |
bulb(4,5,6); % bulb |
| 198 |
pos7(stem,0); pos8(vair,90); pos9(hair,180); |
| 199 |
x9+.5hair=hround(w+.5hair-eps); y9=1/3x_height; |
| 200 |
lft x7l=hround(w-2.75u-.5stem); y7=1/2y3; x8=w-1.2u; bot y8l=-oo; |
| 201 |
filldraw stroke z3e{right}...z7e{down} |
| 202 |
...z8e{right}...{up}z9e; % lower diagonal |
| 203 |
math_fit(0,1/3x_height#*slant+.5hair#+.5u#); |
| 204 |
penlabels(1,2,3,4,5,6,7,8,9); endchar; |
| 205 |
|
| 206 |
cmchar "Italic letter l"; |
| 207 |
beginchar("l",4u#,asc_height#,0); l_width#:=4u#; |
| 208 |
italcorr max(1/3x_height#*slant+.5hair#+.5u#, |
| 209 |
asc_height#*slant+.5stem#-2u#) if math_fitting:+.5u# fi; |
| 210 |
adjust_fit(if monospace:u#,u# else: 0,0 fi); pickup fine.nib; |
| 211 |
x2-.5stem=hround(1.5u-.5stem); x4=w; hook_out(2,3,4); % closing hook |
| 212 |
pickup tiny.nib; pos1(stem,0); pos2'(stem,0); z2'=z2; |
| 213 |
top y1=h; x1=x2; filldraw stroke z1e--z2'e; % stem |
| 214 |
sloped_serif.l(1,2,a,1/3,jut,serif_drop); % serif |
| 215 |
math_fit(-.5u#,1/3x_height#*slant+.5hair#+u#); penlabels(1,2,3,4); endchar; |
| 216 |
|
| 217 |
cmchar "Italic letter m"; |
| 218 |
beginchar("m",15u#,x_height#,0); |
| 219 |
italcorr 1/3x_height#*slant+.5hair#+.5u#; |
| 220 |
adjust_fit(if monospace:-1.5u#,-2u# else: 0,0 fi); pickup fine.nib; |
| 221 |
numeric shaved_stem; shaved_stem=mfudged.stem; |
| 222 |
save stem; stem=shaved_stem; |
| 223 |
pos2(stem,0); x1=x2; |
| 224 |
if monospace: pos1(stem,0); lft x1l=hround(2.5u-.5stem); top y1=h; |
| 225 |
else: x0=0; lft x2l=hround(2.5u-.5stem); |
| 226 |
hook_in(0,a,1); fi % opening hook |
| 227 |
y2-.5stem=-oo; filldraw circ_stroke z2e--z1e; % left stem |
| 228 |
x4+.5stem=hround(.5w+.5stem); ital_arch(2,3,4); % left arch |
| 229 |
pos5(stem,0); y5=y2; x5=x4; |
| 230 |
filldraw circ_stroke z5e--z4e; % middle stem |
| 231 |
x7+.5stem=hround(w-2.5u+.5stem); |
| 232 |
x8=x7-.25u; ital_arch(5,6,7); % right arch |
| 233 |
if monospace: pos9(vair,90); x9=good.x .5[x8,w]; bot y9l=0; y8=1/3h; |
| 234 |
pos8(stem,0); filldraw stroke z8e{-u,-x_height}...{right}z9e; % terminal |
| 235 |
else: x9=w; hook_out(8,b,9)(skewed); fi % closing hook |
| 236 |
filldraw stroke z7e{down}..{-u,-x_height}z8e; % right stem |
| 237 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#); |
| 238 |
penlabels(0,a,1,2,3,4,5,6,7,8,9); endchar; |
| 239 |
|
| 240 |
cmchar "Italic letter n"; |
| 241 |
beginchar("n",10u#,x_height#,0); |
| 242 |
italcorr 1/3x_height#*slant+.5hair#+.5u#; |
| 243 |
adjust_fit(0,0); pickup fine.nib; |
| 244 |
x0=0; x1=x2; pos2(stem,0); lft x2l=hround(2.5u-.5stem); y2-.5stem=-oo; |
| 245 |
hook_in(0,a,1); % opening hook |
| 246 |
filldraw circ_stroke z2e--z1e; % left stem |
| 247 |
x4+.5stem=hround(w-2.5u+.5stem); x5=x4-.25u; ital_arch(2,3,4); % arch |
| 248 |
x7=w; hook_out(5,6,7)(skewed); % closing hook |
| 249 |
filldraw stroke z4e{down}..{-u,-x_height}z5e; % right stem |
| 250 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#); |
| 251 |
penlabels(0,a,1,2,3,4,5,6,7); endchar; |
| 252 |
|
| 253 |
cmchar "Italic letter o"; |
| 254 |
beginchar("o",9u#,x_height#,0); |
| 255 |
italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; |
| 256 |
adjust_fit(0,0); pickup fine.nib; |
| 257 |
pos1(vair,90); pos2(curve,180); pos3(vair,270); pos4(curve,360); |
| 258 |
x1=x3=.5w; lft x2r=hround(1.5u-.5curve); x4=w-x2; |
| 259 |
top y1r=h+oo; y2=y4=.5[y1,y3]; bot y3r=-oo; |
| 260 |
filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3) |
| 261 |
& pulled_arc.e(3,4) & pulled_arc.e(4,1); % bowl |
| 262 |
math_fit(-.3x_height#*slant+.5curve#-u#,ic#); penlabels(1,2,3,4); endchar; |
| 263 |
|
| 264 |
cmchar "Italic letter p"; |
| 265 |
beginchar("p",9u#,x_height#,desc_depth#); |
| 266 |
italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; |
| 267 |
adjust_fit(0,0); pickup fine.nib; |
| 268 |
x0=0; x2-.5stem=hround(2.5u-.5stem); hook_in(0,1,2); % opening hook |
| 269 |
pos4(hair,-180); pos5(vair,-90); pos6(curve,0); pos7(vair,90); |
| 270 |
x4=x2; rt x6r=hround(w-1.5u+.5curve); x5=x7=.5[x4,x6]; |
| 271 |
bot y5r=-oo; top y7r=h+oo; y4=y6=.5[y5,y7]; |
| 272 |
filldraw stroke super_arc.e(4,5) & pulled_arc.e(5,6) |
| 273 |
& pulled_arc.e(6,7) & super_arc.e(7,4); % bowl |
| 274 |
pickup tiny.nib; pos2'(stem,0); pos3(stem,0); |
| 275 |
z2=z2'; x3=x2; bot y3=-d; filldraw stroke z2'e--z3e; % stem |
| 276 |
dish_serif(3,2',a,1/3,.75jut,b,1/3,jut); % serif |
| 277 |
math_fit(-min(2/3x_height#*slant-.5hair#-.5u#, |
| 278 |
2u#-.5stem#-desc_depth#*slant),ic#); |
| 279 |
penlabels(0,1,2,3,4,5,6,7); endchar; |
| 280 |
|
| 281 |
cmchar "Italic letter q"; |
| 282 |
beginchar("q",8u#,x_height#,desc_depth#); |
| 283 |
italcorr x_height#*slant+.5stem#-u#; |
| 284 |
adjust_fit(0,0); pickup fine.nib; |
| 285 |
pos0(hair,0); pos1(vair,90); pos2(curve,180); pos3(vair,270); |
| 286 |
x0=x4; x1=x3=.5[x0,x2]; lft x2r=hround(1.5u-.5curve); |
| 287 |
x4+.5stem=hround(w-1.5u+.5stem)+eps; |
| 288 |
top y1r=h+oo; bot y3r=-oo; y0=y2=.5[y1,y3]; |
| 289 |
filldraw stroke super_arc.e(0,1) & pulled_arc.e(1,2) |
| 290 |
& pulled_arc.e(2,3) & super_arc.e(3,0); % bowl |
| 291 |
pickup tiny.nib; pos4(stem,0); pos5(stem,0); |
| 292 |
x4=x5; x6=x5r; top y6=h+oo; bot y4=-d; |
| 293 |
y5=ypart(((x4l,0)--(x4l,y6))intersectionpoint super_arc.r(0,1)); |
| 294 |
filldraw z6{2(x5l-x6),y5-y6}...z5l---z4l--z4r--cycle; % stem |
| 295 |
dish_serif(4,5,a,1/3,jut,b,1/3,jut); % serif |
| 296 |
math_fit(-.3x_height#*slant+.5curve#-u#,ic#-1/3x_height#*slant); |
| 297 |
penlabels(0,1,2,3,4,5,6,7,8); endchar; |
| 298 |
|
| 299 |
cmchar "Italic letter r"; |
| 300 |
beginchar("r",5.5u#+max(1.75u#,flare#),x_height#,0); |
| 301 |
italcorr x_height#*slant; |
| 302 |
adjust_fit(if monospace:.25u#,.5u# else: 0,0 fi); pickup fine.nib; |
| 303 |
x0=0; x2=x3; pos3(stem,0); lft x3l=hround(2.5u-.5stem); y3-.5stem=-oo; |
| 304 |
hook_in(0,1,2); % opening hook |
| 305 |
filldraw circ_stroke z3e--z2e; % left stem |
| 306 |
pos3'(hair,180); z3'=z3; pos4(vair,90); pos5(hair,0); pos6(flare,0); |
| 307 |
x4=w-.5u-max(1.75u,flare); rt x5r=hround(r-.5u); top y4r=h+oo; |
| 308 |
filldraw stroke z3'e{up}...z4e{right}; % link |
| 309 |
y6+.5flare=vround(bot y4l-.03x_height); bulb(4,5,6); % bulb |
| 310 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#-.5u#); |
| 311 |
penlabels(0,1,2,3,4,5,6); endchar; |
| 312 |
|
| 313 |
cmchar "Italic letter s"; |
| 314 |
beginchar("s",5.25u#+max(1.75u#,flare#),x_height#,0); |
| 315 |
italcorr x_height#*slant-.5u#; |
| 316 |
adjust_fit(0,0); pickup fine.nib; |
| 317 |
numeric theta; theta=90-angle(40u,h); slope:=-h/40u; % angle at middle |
| 318 |
pos2(vair,-90); pos0(max(fine.breadth,ess),theta); pos7(vair,-90); |
| 319 |
x2l=x0=x7=.5w; top y2l=h+oo; bot y7r=-oo; |
| 320 |
y0-.5ess=y7l+.55(y2r-y7l-ess); |
| 321 |
lft x3l=hround u-eps; rt x6r=hround(w-.5u)+eps; |
| 322 |
x3r-x3l=x6r-x6l=hround .5[vair,ess]-fine; |
| 323 |
ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r; |
| 324 |
ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r; |
| 325 |
interim superness:=more_super; |
| 326 |
filldraw stroke super_arc.e(2,3) & z3e{down} |
| 327 |
..z4e---z5e..z6e{down} & super_arc.e(6,7); % main stroke |
| 328 |
pos1(hair,0); pos10(hround .75[hair,flare],0); |
| 329 |
pos2'(vair,90); z2'=z2; |
| 330 |
pos8(hair,-180); pos9(flare,-180); |
| 331 |
rt x10r=hround(w-u)+2eps; lft x9r=hround .5u-2eps; y10=.78h; y9=.25h; |
| 332 |
bulb(2',1,10); bulb(7,8,9); % bulbs |
| 333 |
math_fit(0,ic#); penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; |
| 334 |
|
| 335 |
cmchar "Italic letter t"; |
| 336 |
beginchar("t",5.5u#,min(asc_height#,10/7x_height#),0); |
| 337 |
italcorr max(1/3x_height#*slant+.5hair#+.5u#,x_height#*slant-.25u#); |
| 338 |
adjust_fit(if monospace:u#,u# else:0,0 fi); pickup fine.nib; |
| 339 |
pos1(stem,0); lft x1l=hround(2u-.5stem); y1+.5stem=h+oo; |
| 340 |
x2=x1; x4=w; hook_out(2,3,4); % closing hook |
| 341 |
filldraw circ_stroke z1e--z2e; % stem |
| 342 |
pickup crisp.nib; pos5(bar,90); pos6(bar,90); |
| 343 |
lft x5=hround-.75u; rt x6=hround(w-.75u); top y5r=top y6r=x_height; |
| 344 |
filldraw stroke z5e--z6e; % crossbar |
| 345 |
math_fit(1.25u#-x_height#*slant,ic#); penlabels(1,2,3,4,5,6); endchar; |
| 346 |
|
| 347 |
cmchar "Italic letter u"; |
| 348 |
beginchar("u",9.5u#,x_height#,0); |
| 349 |
italcorr 1/3x_height#*slant+.5hair#+.5u#; |
| 350 |
adjust_fit(0,0); pickup fine.nib; interim superness:=more_super; |
| 351 |
x0=0; x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); |
| 352 |
hook_in(0,1,2)(skewed); % opening hook |
| 353 |
pos2'(stem,-180); z2'=z2; |
| 354 |
pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; |
| 355 |
pos6(stem,0); rt x6r=hround(w-2.5u+.5stem); |
| 356 |
x5=x6=x7; x9=w; hook_out(7,8,9); % closing hook |
| 357 |
y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; y6+.5stem=h; |
| 358 |
filldraw stroke z2'e{-u,-x_height} |
| 359 |
...super_arc.e(3,4)...{up}z5e; % left stem and arc |
| 360 |
filldraw circ_stroke z6e--z7e; % right stem |
| 361 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#); |
| 362 |
penlabels(0,1,2,3,4,5,6,7,8,9); endchar; |
| 363 |
|
| 364 |
cmchar "Italic letter v"; |
| 365 |
beginchar("v",8u#,x_height#,0); |
| 366 |
italcorr x_height#*slant; |
| 367 |
adjust_fit(0,0); pickup fine.nib; interim superness:=more_super; |
| 368 |
x0=0; x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); |
| 369 |
hook_in(0,1,2)(skewed); % opening hook |
| 370 |
pos2'(stem,-180); z2'=z2; pos4(vair,-90); pos5(hair,0); |
| 371 |
x4=.5w+u; rt x5r=hround(w-.5u); y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; |
| 372 |
filldraw stroke z2'e{-u,-x_height}...super_arc.e(3,4) |
| 373 |
..tension atleast 1.05..{up}z5e; % left stem and arc |
| 374 |
v_bulb(5,6); % closing bulb |
| 375 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,2/3ic#); |
| 376 |
penlabels(0,1,2,3,4,5,6); endchar; |
| 377 |
|
| 378 |
cmchar "Italic letter w"; |
| 379 |
beginchar("w",12u#,x_height#,0); |
| 380 |
italcorr x_height#*slant; |
| 381 |
adjust_fit(if monospace:-1.5u#,-u# else: 0,0 fi); |
| 382 |
pickup fine.nib; interim superness:=more_super; begingroup |
| 383 |
forsuffixes $=hair,stem: shaved$:=mfudged$; save $; $=shaved$; endfor |
| 384 |
x0=0; x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); |
| 385 |
if monospace: pos1(vair,90); x1=good.x .5[x0,x2]; top y1r=h; y2=2/3h; |
| 386 |
pos2(stem,0); filldraw stroke z1e{right}...{-u,-x_height}z2e; |
| 387 |
else: hook_in(0,1,2)(skewed); fi % opening hook |
| 388 |
pos2'(stem,-180); z2'=z2; |
| 389 |
pos4(vair,-90); pos5(hair,0); |
| 390 |
x4=.6[x2,x5]; x5=x6=x7; pos6(stem,-180); pos7(stem,-180); |
| 391 |
y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; |
| 392 |
rt x6l=hround(rt x6l+.5w+.75u-x6); y6+.5stem=h; y7=y3; |
| 393 |
pos8(vair,-90); pos9(hair,0); |
| 394 |
x8=w-2.75u; rt x9r=hround(w-.5u); bot y8r=-oo; y9=y5; |
| 395 |
filldraw stroke z2'e{-u,-x_height} |
| 396 |
...super_arc.e(3,4)...{up}z5e; % left stem and arc |
| 397 |
filldraw circ_stroke z6e..super_arc.e(7,8)...{up}z9e; % middle stem and arc |
| 398 |
v_bulb(9,10); % closing bulb |
| 399 |
endgroup; math_fit(-2/3x_height#*slant+.5hair#+.5u#,3/4ic#); |
| 400 |
penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; |
| 401 |
|
| 402 |
cmchar "Italic letter x"; |
| 403 |
beginchar("x",6.5u#+max(1.5u#,flare#),x_height#,0); |
| 404 |
italcorr max(1/3x_height#*slant+.5hair#+.5u#,x_height#*slant+.25u#); |
| 405 |
adjust_fit(0,0); pickup fine.nib; |
| 406 |
pos0(hair,180); pos1(vair,90); pos2(stem,0); |
| 407 |
pos3(stem,-180); pos4(vair,-90); pos5(hair,0); |
| 408 |
y0=y2=2/3h; y3=y5=1/3h; top y1r=h+oo; bot y4r=-oo; |
| 409 |
rt x2r=hround(.5w+.5stem-eps); x2=x3; |
| 410 |
x0-.5hair=hround-.5hair; x5+.5hair=hround(w+.5hair-eps); |
| 411 |
x1=.5[x0,x2]; x4=.5[x3,x5]; |
| 412 |
filldraw stroke z0e{up}...pulled_arc.e(1,2); % opening hook |
| 413 |
filldraw z2l--z3r--z3l--z2r--cycle; % stem |
| 414 |
filldraw stroke pulled_arc.e(3,4)...{up}z5e; % closing hook |
| 415 |
pos3'(hair,180); pos6(hair,180); pos7(vair,90); |
| 416 |
pos8(hair,0); pos9(flare,0); |
| 417 |
x3'l=x6l=x3l; y3'=y3; y6=3/4h; x7=.5[x8,x2]; top y7r=h+oo; |
| 418 |
rt x8r=hround(w-.25u); y8+.5flare=vround(bot y7l-.03x_height); |
| 419 |
filldraw stroke z3'e---z6e...{right}z7e; bulb(7,8,9); % upper link and bulb |
| 420 |
pos2'(hair,0); pos16(hair,0); pos17(vair,-90); |
| 421 |
pos18(hair,-180); pos19(flare,-180); |
| 422 |
x2'l=x16l=x2l; y2'=y2; y16=1/4h; x17=.5[x18,x3]; bot y17r=-oo; |
| 423 |
lft x18r=hround.25u; y18-.5flare=vround(top y17l+.03x_height); |
| 424 |
filldraw stroke z2'e---z16e...{left}z17e; bulb(17,18,19); % lower link and bulb |
| 425 |
math_fit(0,ic#); penlabels(0,1,2,3,4,5,6,7,8,9,16,17,18,19); endchar; |
| 426 |
|
| 427 |
cmchar "Italic letter y"; |
| 428 |
beginchar("y",8.5u#,x_height#,desc_depth#); |
| 429 |
italcorr x_height#*slant+.5stem#-u#; |
| 430 |
adjust_fit(0,0); pickup fine.nib; interim superness:=more_super; |
| 431 |
x0=0; x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); |
| 432 |
hook_in(0,1,2)(skewed); % opening hook |
| 433 |
pos2'(stem,-180); z2'=z2; |
| 434 |
pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; |
| 435 |
pos6(stem,0); rt x6r=hround(w-1.5u+.5stem); |
| 436 |
pos7(stem,0); pos8(vair,-90); |
| 437 |
y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; y6+.5stem=h; |
| 438 |
y7=0; bot y8r=-d-oo; x5=x6=x7; x8=.5w; |
| 439 |
pos9(hair,-180); pos10(flare,-180); y9=-.5d; |
| 440 |
lft x9r=hround(2.75u-.5flare); bulb(8,9,10); % bulb |
| 441 |
filldraw stroke z2'e{-u,-x_height} |
| 442 |
...super_arc.e(3,4)...{up}z5e; % left stem and arc |
| 443 |
filldraw circ_stroke z6e---z7e...{left}z8e; % right stem and link |
| 444 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#-1/3x_height#*slant); |
| 445 |
penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; |
| 446 |
|
| 447 |
cmchar "Italic letter z"; |
| 448 |
beginchar("z",5.5u#+max(1.5u#,stem#),x_height#,0); |
| 449 |
italcorr x_height#*slant+.5hair#; |
| 450 |
adjust_fit(if monospace:.5u#,.5u# else: 0,0 fi); pickup fine.nib; |
| 451 |
pos1(hair,0); pos2(stem,-90); pos3(vair,-90); pos4(hair,0); |
| 452 |
lft x1l=hround(u-.5hair); x2=2.5u; x3=w-2u; rt x4r=hround(w-.5u); |
| 453 |
top y1=.78h; top y2l=top y4=h+oo; y3=.825h; |
| 454 |
pos5(hair,0); pos6(vair,-90); pos7(stem,-90); pos8(hair,0); |
| 455 |
x5=x1; x6=2.5u; x7=w-2u; x8+.5hair=hround(w+.5hair-eps); |
| 456 |
bot y5=bot y7r=-oo; y6=.175h; bot y8=.31h; |
| 457 |
pair p; p=(z4-z5) yscaled 2; |
| 458 |
filldraw stroke z1e{up}...z2e{right}..z3e{right}...{p}z4e; % upper bar |
| 459 |
filldraw stroke z5e{p}...z6e{right}..{right}z7e...{up}z8e; % lower bar |
| 460 |
filldraw stroke z5e{p}..{p}z4e; % diagonal |
| 461 |
math_fit(0,1/3x_height#*slant+.5hair#+.5u#); |
| 462 |
penlabels(1,2,3,4,5,6,7,8); endchar; |