| 1 |
% THIS IS THE OFFICIAL COMPUTER MODERN SOURCE FILE greekl.mf BY D E KNUTH. |
| 2 |
% IT MUST NOT BE MODIFIED IN ANY WAY UNLESS THE FILE NAME IS CHANGED! |
| 3 |
|
| 4 |
% This lowercase Greek alphabet was prepared by D. E. Knuth in December, 1979, |
| 5 |
% inspired by the Monotype faces used in {\sl The Art of Computer Programming}. |
| 6 |
% (It has been designed for math formulas, not Greek texts.) |
| 7 |
% The programs were revised for the new \MF\ conventions in 1985. |
| 8 |
|
| 9 |
% Character codes \0013--\0047 are generated. |
| 10 |
|
| 11 |
cmchar "Lowercase Greek alpha"; |
| 12 |
beginchar(oct"013",11u#,x_height#,0); |
| 13 |
italcorr max(1/3x_height#*slant+.5hair#+.5u#,x_height#*slant-.5u#); |
| 14 |
adjust_fit(0,0); pickup fine.nib; |
| 15 |
pos0(hair,0); pos1(vair,-90); pos2(curve,-180); pos3(vair,-270); |
| 16 |
z4=(w-3.25u,9/16h); z5=(w-2.75u,.5[vair,y4]); |
| 17 |
numeric theta; theta=angle(z4-z5)-90; |
| 18 |
pos4(stem,theta); pos5(stem,theta); |
| 19 |
pos6(vair,90); pos7(hair,180); |
| 20 |
rt x0r=hround(w-u); x1=x3=.5w-u; lft x2r=hround(1.5u-.5curve); |
| 21 |
x6=w-u; x7+.5hair=hround(w+.5hair-epsilon); |
| 22 |
top y0=vround .8[bar_height,h]; bot y1r=bot y6l=-oo; |
| 23 |
y2=.5[y1,y3]; top y3r=h+oo; y7=1/4bar_height; |
| 24 |
filldraw stroke z0e{down}...pulled_arc.e(1,2) & pulled_arc.e(2,3) |
| 25 |
...z4e---z5e...z6e{right}...{up}z7e; % diagonal, bowl, and hook |
| 26 |
math_fit(-.3x_height#*slant+.5curve#-u#,1/3x_height#*slant+.5hair#+.5u#); |
| 27 |
penlabels(0,1,2,3,4,5,6,7); endchar; |
| 28 |
|
| 29 |
cmchar "Lowercase Greek beta"; |
| 30 |
beginchar(oct"014",9.5u#,asc_height#,desc_depth#); |
| 31 |
italcorr .5[x_height#,asc_height#]*slant-u#; |
| 32 |
adjust_fit(0,0); pickup fine.nib; |
| 33 |
pos0(hair,180); pos1(hair,180); pos2(vair,90); |
| 34 |
pos3(.8[hair,stem],0); pos4(vair,-90); pos5(hair,-180); |
| 35 |
pos6(vair,-270); pos7(stem,-360); pos8(vair,-450); pos9(hair,-540); |
| 36 |
x0=x1=x9; lft x0r=hround(1.5u-.5hair); x2=x4=x6=x8=.5w-.25u; |
| 37 |
rt x3r=hround(w-1.75u); rt x7r=hround(w-u); rt x5l=hround(x4-u); |
| 38 |
bot y0=-d; y1=top y6r=x_height; top y2r=h+oo; y3=.5[y2,y4]; |
| 39 |
y5=.5[y4,y6]; top y6r-bot y4r=vstem+eps; bot y8r=-oo; y7=y9=.55[y6,y8]; |
| 40 |
if y6l<y4l: y6l:=y4l:=y5; fi |
| 41 |
filldraw stroke z0e---z1e...pulled_arc.e(2,3) |
| 42 |
& pulled_arc.e(3,4)...{up}z5e; % stem and upper bowl |
| 43 |
filldraw stroke z5e{up}...pulled_arc.e(6,7) |
| 44 |
& pulled_arc.e(7,8)...{up}z9e; % lower bowl |
| 45 |
math_fit(desc_depth#*slant+.5hair#-u#,.7x_height#*slant+.5curve#-1.5u#); |
| 46 |
penlabels(0,1,2,3,4,5,6,7,8,9); endchar; |
| 47 |
|
| 48 |
cmchar "Lowercase Greek gamma"; |
| 49 |
beginchar(oct"015",10u#,x_height#,desc_depth#); |
| 50 |
italcorr x_height#*slant-.5u#; |
| 51 |
adjust_fit(0,0); pickup fine.nib; |
| 52 |
pos1(hair,180); pos2(vstem+dw,90); |
| 53 |
pos4(hair,0); pos5(vair,-90); pos6(hair,-180); pos7(hair,-180); |
| 54 |
bot y1=.5772156649h; top y2r=h+oo; y4=y6=-.5d; |
| 55 |
bot y5r=-d-o; top y7=h; |
| 56 |
lft x1r=hround(.5u-.5hair); x2=3u; rt x4r=hround(w-2u); x5=.5[x4,x6]; |
| 57 |
rt x4r-lft x6r=hround 1/3[hair,stem]+eps; rt x7l=hround(w-u); |
| 58 |
if x4l<x6l: x4l:=x6l:=x5; fi |
| 59 |
pos3(hair,angle(z4-z2)+90); x3=superness[x2,x4]; y3=superness[y4,y2]; |
| 60 |
filldraw stroke z1e{up}...z2e{right}...z3e{z4-z2} |
| 61 |
...z4e{down}...{left}z5e; % arc |
| 62 |
filldraw stroke z5e{left}...z6e{up}..{2(x7-x6),y7-y6}z7e; % stem |
| 63 |
math_fit(-.5772156649x_height#*slant,ic#-u#); |
| 64 |
penlabels(1,2,3,4,5,6,7); endchar; |
| 65 |
|
| 66 |
cmchar "Lowercase Greek delta"; |
| 67 |
beginchar(oct"016",8u#,asc_height#,0); |
| 68 |
italcorr .9asc_height#*slant+.5hair#-1.5u#; |
| 69 |
adjust_fit(0,0); pickup fine.nib; |
| 70 |
x0=-u; y0=1.1h; |
| 71 |
numeric light_flare; light_flare=2/3[vair,flare]; |
| 72 |
x1=w-2u-.5light_flare; y1=h-.5light_flare; |
| 73 |
numeric theta; theta=angle (z1-z0); |
| 74 |
pos1(light_flare,theta-90); pos2(.2[vair,light_flare],-90); pos3(vair,theta); |
| 75 |
x2=x3+u; y2=h; |
| 76 |
x4=x6=.5w+.5u; top y8r=x_height+oo; z4=z8; |
| 77 |
pos6(vair,-90); pos7(stem,-180); pos8(vair,-270); |
| 78 |
pos4(stem,angle(z4-z0)+90); pos5(stem,30); |
| 79 |
z3=.5[.5[z1,z4],z0]; |
| 80 |
y5+.1x_height=y7=.5[y6,y8]; bot y6r=-oo; |
| 81 |
lft x7r=hround(1.4u-.5stem); rt x5r=hround(w-u); |
| 82 |
filldraw stroke z1e{z0-z1e}....z2e....z3e{(z0-z1)rotated 90} |
| 83 |
...z4e{z4e-.8[z4,z0]} |
| 84 |
....z5e{down}...pulled_arc.e(6,7) & pulled_arc.e(7,8); % hook and bowl |
| 85 |
filldraw z1r{z1r-z0}...z1l{z0-z1l}--cycle; % bulb |
| 86 |
math_fit(-.3x_height#*slant+.5curve#-u#,.7x_height#*slant-.5u#); |
| 87 |
penlabels(0,1,2,3,4,5,6,7,8); endchar; |
| 88 |
|
| 89 |
cmchar "Lowercase Greek epsilon"; |
| 90 |
beginchar(oct"017",8u#,x_height#,0); |
| 91 |
italcorr x_height#*slant+.5hair#-2u#; |
| 92 |
adjust_fit(0,0); pickup fine.nib; |
| 93 |
pos0(bar,90); pos1(bar,90); pos2(curve,180); |
| 94 |
pos3(vair,270); pos4(hair,300); pos6(bar,90); pos7(bar,90); |
| 95 |
x1=.5w+.5u; x0=x1+u; lft x2r=hround(1.5u-.5curve); x3=.5[x0,x1]; |
| 96 |
x4r=good.x(w-u); x5=w+.5u; x6=x0; z7=z2l; |
| 97 |
top y0r=top y1r=h; y2=y5=y6=bar_height; bot y3r=-oo; |
| 98 |
path p; p=z3r{right}...{up}z5; |
| 99 |
numeric t; t=ypart(((x4r,y3r)--(x4r,y5))intersectiontimes p); |
| 100 |
y4r=ypart point t of p; |
| 101 |
filldraw circ_stroke z0e..pulled_arc.e(1,2) & pulled_arc.e(2,3) |
| 102 |
...z4e{direction t of p}; % arc |
| 103 |
filldraw circ_stroke z6e--z7e; % bar |
| 104 |
math_fit(-.3x_height#*slant+.5curve#-u#,ic#); |
| 105 |
penlabels(0,1,2,3,4,5,6,7); endchar; |
| 106 |
|
| 107 |
cmchar "Lowercase Greek zeta"; |
| 108 |
beginchar(oct"020",9u#,asc_height#,desc_depth#); |
| 109 |
italcorr .75[x_height#,asc_height#]*slant-1.5u#; |
| 110 |
adjust_fit(0,0); pickup fine.nib; |
| 111 |
pos0(hair,-360); pos1(vair,-270); pos2(hair,-180); pos3(vair,-90); |
| 112 |
numeric theta; theta=90-angle(25u,x_height); slope:=-x_height/25u; |
| 113 |
pos6(stem,theta); pos7(vair,-90); pos8(vair,-135); |
| 114 |
lft x0l=hround 3.5u; x1=x3=.5[x0,x2]; rt x2l=hround max(rt x0r,w-2u)+eps; |
| 115 |
top y0=h; top y3l=bot y1l+vstem+eps=vround(y0-.25(h-x_height)); y2=.5[y1,y3]; |
| 116 |
if y1r>y3r: y1r:=y3r:=y2; fi |
| 117 |
lft x4l=hround u; x4r-x4l=(hround .6[vair,stem])-fine; |
| 118 |
x6+.5u=x7=w-2u; x8=.5w+.75u; |
| 119 |
y6=-.1d; y8=-3/4d-oo; bot y7r=-d-oo; |
| 120 |
ellipse_set(3l,4l,5l,6l); ellipse_set(3r,4r,5r,6r); |
| 121 |
y4l:=.9[y6,y4l]; y4=y4r:=.9[y6,y4r]; |
| 122 |
filldraw circ_stroke z0e{down}...z1e{right}...{up}z2e; % opening hook |
| 123 |
filldraw circ_stroke z8e{x7-x8,2(y7-y8)}...z7e{right} |
| 124 |
...z6e---z5e....{up}z4e |
| 125 |
..tension 1 and atleast1.5..{right}z3e...{down}z2e; % main stroke |
| 126 |
math_fit(-.2asc_height#*slant-.5u#,0); |
| 127 |
penlabels(0,1,2,3,4,5,6,7,8); endchar; |
| 128 |
|
| 129 |
cmchar "Lowercase Greek eta"; |
| 130 |
beginchar(oct"021",9u#,x_height#,desc_depth#); |
| 131 |
italcorr .8x_height#*slant+.5stem#-u#; |
| 132 |
adjust_fit(0,0); pickup fine.nib; |
| 133 |
x0=0; x1=x2; pos2(stem,0); lft x2l=hround(2.5u-.5stem); y2-.5stem=-oo; |
| 134 |
hook_in(0,a,1); % opening hook |
| 135 |
filldraw circ_stroke z2e--z1e; % left stem |
| 136 |
x4+.5stem=hround(w-1.5u+.5stem); ital_arch(2,3,4); % arch |
| 137 |
pos5(stem,0); x5=x4; y5-.5stem=-d-o; |
| 138 |
filldraw circ_stroke z5e--z4e; % right stem |
| 139 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#-1/3x_height#*slant); |
| 140 |
penlabels(0,a,1,2,3,4,5); endchar; |
| 141 |
|
| 142 |
cmchar "Lowercase Greek theta"; |
| 143 |
beginchar(oct"022",8.25u#,asc_height#,0); |
| 144 |
italcorr .7asc_height#*slant+.5curve#-u#; |
| 145 |
adjust_fit(0,0); pickup fine.nib; |
| 146 |
pos1(vair,90); pos2(curve,180); pos3(vair,270); pos4(curve,360); |
| 147 |
x1=x3=.5w; lft x2r=hround(1.5u-.5curve); x4=w-x2; |
| 148 |
top y1r=h+oo; y2=y4=.5[y1,y3]; bot y3r=-oo; |
| 149 |
filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3) |
| 150 |
& pulled_arc.e(3,4) & pulled_arc.e(4,1); % bowl |
| 151 |
pos2'(bar,90); pos4'(bar,90); z2'=z2l; z4'=z4l; |
| 152 |
filldraw stroke z2'e--z4'e; % bar |
| 153 |
math_fit(-.3asc_height#*slant-u#+.5curve#,ic#-.5u#); |
| 154 |
penlabels(1,2,3,4); endchar; |
| 155 |
|
| 156 |
cmchar "Lowercase Greek iota"; |
| 157 |
beginchar(oct"023",5u#,x_height#,0); |
| 158 |
italcorr 1/3x_height#*slant+.5hair#+.5u#; |
| 159 |
adjust_fit(if monospace: u#,u# else: 0,0 fi); pickup fine.nib; |
| 160 |
pos1(stem,0); lft x1l=hround(1.5u-.5stem); y1+.5stem=h+oo; |
| 161 |
x2=x1-.25u; x4=w; hook_out(2,3,4)(skewed); % closing hook |
| 162 |
filldraw circ_stroke z1e{down}...{-u,-x_height}z2e; % stem |
| 163 |
math_fit(0,ic#); penlabels(1,2,3,4); endchar; |
| 164 |
|
| 165 |
cmchar "Lowercase Greek kappa"; |
| 166 |
beginchar(oct"024",9u#,x_height#,0); |
| 167 |
italcorr 1/3x_height#*slant+.5hair#+.5u#; |
| 168 |
adjust_fit(0,0); pickup fine.nib; |
| 169 |
pos1(stem,0); pos2(stem,0); pos3(vair,90); pos4(vair,90); pos5(flare,90); |
| 170 |
x1=x2=x3; lft x1l=hround(1.5u-.5stem); y1+.5stem=h+oo; y2-.5stem=-oo; |
| 171 |
filldraw z1l---z2l..z2r---z1r..cycle; % stem |
| 172 |
y3=bar_height; top y4r=h; x4+.5flare=hround(w-1.5u); z5r=z4r; |
| 173 |
path p,q; p=z3l{right}..{right}z4l; q=z5r{right}..z5l{left}...cycle; |
| 174 |
numeric t; t=ypart(p intersectiontimes q); |
| 175 |
filldraw stroke z3e{right}..{right}z4e; % upper diagonal |
| 176 |
filldraw subpath(0,t) of q--cycle; % bulb |
| 177 |
pos7(stem,0); pos8(vair,90); pos9(hair,180); |
| 178 |
x9+.5hair=hround(w+.5hair-epsilon); y9=1/3x_height; |
| 179 |
lft x7l=hround(w-2.75u-.5stem); y7=1/2y3; x8=w-1.2u; bot y8l=-oo; |
| 180 |
filldraw stroke z3e{right}...z7e{down} |
| 181 |
...z8e{right}...{up}z9e; % lower diagonal |
| 182 |
math_fit(0,ic#); penlabels(1,2,3,4,5,7,8,9); endchar; |
| 183 |
|
| 184 |
cmchar "Lowercase Greek lambda"; |
| 185 |
beginchar(oct"025",10.5u#,asc_height#,0); |
| 186 |
adjust_fit(0,0); pickup fine.nib; |
| 187 |
pos1(vair,90); lft x1=hround .1u; top y1r=h; |
| 188 |
x2=x1+2u; y2=.7[x_height,h]; x3=w-2u; bot y4=-oo; y3=max(.07h,y4+eps); |
| 189 |
z4-(.25u,0)=whatever[z2,z3]; numeric theta; theta=angle(z2-z3)-90; |
| 190 |
pos2(stem,theta); pos3(stem,theta); pos4(stem,0); |
| 191 |
filldraw circ_stroke z1e{right}...z2e---z3e |
| 192 |
...{2(x4e-x3e),y4e-y3e}z4e; % long diagonal |
| 193 |
y5=.5[bar_height,x_height]; z5=whatever[z2,z3]; |
| 194 |
x6=1.5u; y6-.5stem=-oo; pos5(hair,theta-90); pos6(stem,angle(z5-z6)-90); |
| 195 |
filldraw circ_stroke z6e--z5e; % short diagonal |
| 196 |
penlabels(1,2,3,4,5,6); endchar; |
| 197 |
|
| 198 |
cmchar "Lowercase Greek mu"; |
| 199 |
beginchar(oct"026",9u#,x_height#,desc_depth#); |
| 200 |
italcorr 1/3x_height#*slant+.5hair#+.5u#; |
| 201 |
adjust_fit(0,0); pickup fine.nib; interim superness:=more_super; |
| 202 |
pos1(stem,-180); pos2(stem,-180); x1=x2=x3; lft x1r=hround(1.5u-.5stem); |
| 203 |
y1+.5stem=h+oo; y2-.5stem=-d-o; |
| 204 |
filldraw z1r---z2r..z2l---z1l..cycle; % left stem |
| 205 |
pos3(stem,-180); pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; |
| 206 |
pos6(stem,0); rt x6r=hround(w-2.5u+.5stem); |
| 207 |
x5=x6=x7; x9=w; hook_out(7,8,9); % closing hook |
| 208 |
y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; y6+.5stem=h; |
| 209 |
filldraw stroke super_arc.e(3,4)...{up}z5e; % left stem and arc |
| 210 |
filldraw circ_stroke z6e--z7e; % right stem |
| 211 |
math_fit(desc_depth#*slant+.5stem#-u#,ic#); |
| 212 |
penlabels(1,2,3,4,5,6,7,8,9); endchar; |
| 213 |
|
| 214 |
cmchar "Lowercase Greek nu"; |
| 215 |
beginchar(oct"027",8.5u#,x_height#,0); |
| 216 |
italcorr x_height#*slant+.5stem#-u#; |
| 217 |
adjust_fit(0,0); pickup fine.nib; |
| 218 |
pos3(vair,-90); pos4(stem,0); bot y3r=0; y4+.5stem=h+oo; |
| 219 |
x3-.5stem=hround(1.5u-.5stem); x4+.5stem=hround(w-1.5u+.5stem); |
| 220 |
filldraw circ_stroke z4e{down}...{-36u,-h}z3e; % diagonal |
| 221 |
pickup tiny.nib; pos1(stem,0); pos2(stem,0); |
| 222 |
top y1=h+min(oo,serif_drop); bot y2=0; x1=x2=x3; |
| 223 |
z=((z4{down}...{-36u,-h}z3)intersectionpoint((x2r,0)--(x2r,h))); |
| 224 |
filldraw z1l--z2l...(x3,y2l)...z--z1r--cycle; % stem |
| 225 |
sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper left serif |
| 226 |
math_fit(0,ic#-1/3x_height#*slant-.5u#); penlabels(1,2,3,4); endchar; |
| 227 |
|
| 228 |
cmchar "Lowercase Greek xi"; |
| 229 |
beginchar(oct"030",9u#,asc_height#,desc_depth#); |
| 230 |
italcorr .75[x_height#,asc_height#]*slant-2u#; |
| 231 |
adjust_fit(0,0); pickup fine.nib; |
| 232 |
pos10(hair,-720); pos11(vair,-630); pos12(hair,-540); pos13(vair,-450); |
| 233 |
lft x10l=hround 1/3w; x11=x13=.5[x10,x12]; rt x12l=hround(w-2.5u); |
| 234 |
top y10=h; top y13l=bot y11l+vstem+eps=vround(y10-.25(h-x_height)); |
| 235 |
y12=.5[y11,y13]; if y11r>y13r: y11r:=y13r:=y12; fi |
| 236 |
pos0(curve,-360); pos1(vair,-270); pos2(hair,-180); pos3(vair,-90); |
| 237 |
numeric theta; theta=90-angle(22u,x_height); slope:=-x_height/22u; |
| 238 |
pos6(stem,theta); pos7(vair,-90); pos8(vair,-135); |
| 239 |
lft x0l=hround u; x1=x3=x11; x2=x12; |
| 240 |
y0=.5[y13,y1]; top y3l=vround .5h=bot y1l+vstem+eps; y2=.5[y1,y3]; |
| 241 |
if y1r>y3r: y1r:=y3r:=y2; fi |
| 242 |
lft x4l=hround u; x4r-x4l=hround .5[vair,stem]-fine; |
| 243 |
x6=x7=w-2u; x8=.5w+.5u; y6=-.3d; bot y7r=-d-oo; y8=max(-3/4d-oo,y7l); |
| 244 |
ellipse_set(3l,4l,5l,6l); ellipse_set(3r,4r,5r,6r); |
| 245 |
y4l:=.9[y6,y4l]; y4=y4r:=.9[y6,y4r]; |
| 246 |
filldraw circ_stroke z10e{down}...z11e{right}...{up}z12e; % opening hook |
| 247 |
filldraw stroke z12e{up}...z13e{left}...z0e{down} |
| 248 |
...z1e{right}...{up}z2e; % upper arc |
| 249 |
filldraw circ_stroke z8e{x7-x8,2(y7-y8)}...z7e{right}...z6e |
| 250 |
---z5e...{up}z4e...{right}z3e...{down}z2e; % main stroke |
| 251 |
math_fit(-.2asc_height#*slant-.5u#,0); |
| 252 |
penlabels(0,1,2,3,4,5,6,7,8,10,11,12,13); endchar; |
| 253 |
|
| 254 |
cmchar "Lowercase Greek pi"; |
| 255 |
beginchar(oct"031",10u#,x_height#,0); |
| 256 |
italcorr x_height#*slant+.5stem#-u#; |
| 257 |
adjust_fit(0,0); pi_stroke; % hook and bar |
| 258 |
pos4(hair,0); pos6(hair,0); x4=3.5u; x6=w-4u; y4=y6=y2; |
| 259 |
x5=3u; x7=w-2.5u; y5=y7=.5stem-oo; |
| 260 |
pair v[]; v1=(z4-z5) xscaled 3.14159; v2=(z6-z7) xscaled 3.14159; |
| 261 |
pos5(stem,angle v1-90); pos7(stem,angle v2-90); |
| 262 |
filldraw circ_stroke z5e{v1}...{up}z4e; % left stem |
| 263 |
filldraw circ_stroke z7e{v2}...{up}z6e; % right stem |
| 264 |
math_fit(-.7x_height#*slant+.5hair#+.5u#,ic#-1/3x_height#*slant); |
| 265 |
penlabels(1,2,3,4,5,6,7); endchar; |
| 266 |
|
| 267 |
cmchar "Lowercase Greek rho"; |
| 268 |
beginchar(oct"032",8.25u#,x_height#,desc_depth#); |
| 269 |
italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; |
| 270 |
adjust_fit(0,0); pickup fine.nib; |
| 271 |
pos1(stem,180); pos2(stem,180); pos3(vair,90); |
| 272 |
pos4(curve,0); pos5(vair,-90); pos6(hair,-180); |
| 273 |
lft x2r=hround(1.5u-.5stem); x1=x2=x6; x3=x5=.5[x2,x4]; |
| 274 |
rt x4r=hround(w-1.5u+.5curve); |
| 275 |
y1-.5stem=-d-o; y2=y4=y6=.5[y3,y5]; top y3r=h+oo; bot y5r=-oo; |
| 276 |
filldraw circ_stroke z1e..pulled_arc.e(2,3) & pulled_arc.e(3,4) |
| 277 |
& pulled_arc.e(4,5) & pulled_arc.e(5,6); % stem and bowl |
| 278 |
math_fit(desc_depth#*slant+.5stem#-u#,ic#); |
| 279 |
penlabels(1,2,3,4,5,6); endchar; |
| 280 |
|
| 281 |
cmchar "Lowercase Greek sigma"; |
| 282 |
beginchar(oct"033",10.25u#,x_height#,0); |
| 283 |
italcorr x_height#*slant+.5stem#-u#; |
| 284 |
adjust_fit(0,0); pickup fine.nib; |
| 285 |
pos1(vstem,90); pos2(stem,0); pos3(vair,-90); |
| 286 |
pos4(stem,-180); pos5(vstem,-270); pos6(vstem,-270); |
| 287 |
x1=x3=x5=.5[x2,x4]; rt x2r=hround(w-2.5u); |
| 288 |
lft x4r=hround(1.5u-.5curve);x6=w-1.5u; |
| 289 |
top y1r=h; y2=y4=.5[y1,y3]; bot y3r=-oo; y5=y6=y1; |
| 290 |
filldraw circ_stroke z6e..pulled_arc.e(5,4) & pulled_arc.e(4,3) |
| 291 |
& pulled_arc.e(3,2) & pulled_arc.e(2,1); % ear and bowl |
| 292 |
math_fit(-.3x_height#*slant+.5curve#-u#,ic#-1/3x_height#*slant); |
| 293 |
penlabels(1,2,3,4,5,6); endchar; |
| 294 |
|
| 295 |
cmchar "Lowercase Greek tau"; |
| 296 |
beginchar(oct"034",9u#,x_height#,0); |
| 297 |
italcorr x_height#*slant+.5stem#-u#; |
| 298 |
adjust_fit(0,0); pi_stroke; % hook and bar |
| 299 |
pos4(hair,0); pos5(stem,0); |
| 300 |
x4=x5; x5-.5stem=hround(.5w-.5u-.5stem); y4=y2; y5-.5stem=-oo; |
| 301 |
filldraw circ_stroke z5e--z4e; % stem |
| 302 |
math_fit(-.7x_height#*slant+.5hair#+.5u#,-.5u#); |
| 303 |
penlabels(1,2,3,4,5); endchar; |
| 304 |
|
| 305 |
cmchar "Lowercase Greek upsilon"; |
| 306 |
beginchar(oct"035",9u#,x_height#,0); |
| 307 |
italcorr x_height#*slant; |
| 308 |
adjust_fit(0,0); pickup fine.nib; interim superness:=more_super; |
| 309 |
x0=0; x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); |
| 310 |
hook_in(0,1,2)(skewed); % opening hook |
| 311 |
pos2'(stem,-180); z2'=z2; pos4(vair,-90); pos5(hair,0); |
| 312 |
x4=.5w+u; rt x5r=hround(w-.5u); y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; |
| 313 |
filldraw stroke z2'e{-u,-x_height}...super_arc.e(3,4) |
| 314 |
..tension atleast 1.05..{up}z5e; % left stem and arc |
| 315 |
v_bulb(5,6); % closing bulb |
| 316 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,2/3ic#); |
| 317 |
penlabels(0,1,2,3,4,5,6); endchar; |
| 318 |
|
| 319 |
cmchar "Lowercase Greek phi"; |
| 320 |
beginchar(oct"036",11u#,asc_height#,desc_depth#); |
| 321 |
italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; |
| 322 |
adjust_fit(0,0); pickup fine.nib; |
| 323 |
numeric light_curve; light_curve=hround(.5[stem,curve]-2stem_corr); |
| 324 |
pos1(vair,90); pos2(light_curve,180); pos3(vair,270); pos4(light_curve,360); |
| 325 |
x1=x3=.5w; lft x2r=hround(1.5u-.5light_curve); x4=w-x2; |
| 326 |
top y1r=x_height+oo; y2=y4=.5[y1,y3]; bot y3r=-oo; |
| 327 |
filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3) |
| 328 |
& pulled_arc.e(3,4) & pulled_arc.e(4,1); % bowl |
| 329 |
pos5(hair,0); pos6(hair,0); x5=x6=.5w; top y5=h; bot y6=-d-oo; |
| 330 |
filldraw stroke z5e--z6e; % stem |
| 331 |
math_fit(-.3x_height#*slant+.5curve#-u#,ic#); |
| 332 |
penlabels(1,2,3,4,5,6); endchar; |
| 333 |
|
| 334 |
cmchar "Lowercase Greek chi"; |
| 335 |
beginchar(oct"037",11u#,x_height#,desc_depth#); |
| 336 |
italcorr x_height#*slant+.5hair#-1.5u#; |
| 337 |
adjust_fit(0,0); pickup fine.nib; |
| 338 |
pos1(hair,180); pos2(vair,80); pos5(vair,80); pos6(hair,180); |
| 339 |
x1-.5hair=hround-.5hair; x6=w-x1; x2=w-x5=u; |
| 340 |
y1=y2l-h/8; top y2r=h+oo; bot y5l=-d-oo; y6=y5r+h/8; |
| 341 |
z0=.5[z2,z5]; z2'=z2l+(.5u,0); z5'=z5r-(.5u,0); |
| 342 |
numeric theta; theta=angle(z5'-z2')+90; |
| 343 |
pos3(stem,theta); pos4(stem,theta); |
| 344 |
y3r=y2r-h/8; y4l=y5l+h/8; z3l=whatever[z2',z0]; z4r=whatever[z0,z5']; |
| 345 |
filldraw stroke z1e{up}...z2e{right}...z3e{z4r-z3l} |
| 346 |
..z4e{z4r-z3l}...{right}z5e...{up}z6e; % major diagonal and hooks |
| 347 |
x8=w-x7=2u; y7+.5hair=h; y8-.5hair=-d; |
| 348 |
numeric theta; theta=angle(z7-z8)-90; |
| 349 |
pos7(hair,theta); pos8(hair,theta); |
| 350 |
filldraw z7l---z8l..z8r---z7r..cycle; % minor diagonal |
| 351 |
math_fit((desc_depth#-x_height#)*slant+ic#,ic#); |
| 352 |
penlabels(0,1,2,2',3,4,5',5,6,7,8); endchar; |
| 353 |
|
| 354 |
cmchar "Lowercase Greek psi"; |
| 355 |
beginchar(oct"040",11u#,asc_height#,desc_depth#); |
| 356 |
italcorr x_height#*slant; |
| 357 |
adjust_fit(0,0); pickup fine.nib; interim superness:=more_super; |
| 358 |
x0=0; x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); |
| 359 |
hook_in(0,1,2)(skewed); % opening hook |
| 360 |
pos2'(stem,-180); z2'=z2; pos4(vair,-90); pos5(hair,0); |
| 361 |
x4=.5w+u; rt x5r=hround(w-.5u); |
| 362 |
y3=.7[y4,y5]; bot y4r=-oo; y5=.57x_height; |
| 363 |
filldraw stroke z2'e{-u,-x_height}...super_arc.e(3,4) |
| 364 |
..tension atleast 1.05..{up}z5e; % left stem and arc |
| 365 |
v_bulb(5,6); % closing bulb |
| 366 |
pos7(hair,0); pos8(hair,0); x7=x8=.5w+.5u; top y7=h; bot y8=-d-oo; |
| 367 |
filldraw stroke z7e--z8e; % stem |
| 368 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,2/3ic#); |
| 369 |
penlabels(0,1,2,3,4,5,6,7,8); endchar; |
| 370 |
|
| 371 |
cmchar "Lowercase Greek omega"; |
| 372 |
beginchar(oct"041",11u#,x_height#,0); |
| 373 |
italcorr x_height#*slant; |
| 374 |
adjust_fit(0,0); pickup fine.nib; |
| 375 |
pos2(hair,-180); lft x2r=hround.5u; y2=y4=y6=y8=bar_height; |
| 376 |
y1+.5hair=h; x1=x2+.75u; pos1(hair+dw,angle(2(x1-x2),y1-y2)+90); |
| 377 |
pos3(vstem+dw,-90); pos4(hair,0); pos5(vair,90); |
| 378 |
pos6(hair,180); pos7(vstem+dw,270); pos8(hair,360); |
| 379 |
bot y3r=bot y7r=-oo; top y5r=vround(.2[y4,h]+.5vair); |
| 380 |
x3=.5[x2,x4]; x7-.25u=.5[x6,x8]; rt x8r=hround(w-.5u); |
| 381 |
x5+.5stem=hround(.5w+.5stem)+eps; |
| 382 |
x5=.5[x4,x6]; rt x4r-lft x6r=min(stem,2hair)+2eps; |
| 383 |
if x4l<x6l: x4l:=x6l:=x5; fi |
| 384 |
filldraw circ_stroke z1e{2(x2-x1),y2-y1}...z2e{down}...z3e{right} |
| 385 |
...{up}z4e...{left}z5e; % left arc |
| 386 |
filldraw stroke z5e{left}...z6e{down}...z7e{right}...{up}z8e; % right arc |
| 387 |
v_bulb(8,9); % closing bulb |
| 388 |
math_fit(-bar_height#*slant,2/3ic#); penlabels(1,2,3,4,5,6,7,8,9); endchar; |
| 389 |
|
| 390 |
cmchar "Variant lowercase Greek epsilon"; |
| 391 |
beginchar(oct"042",8u#,x_height#,0); |
| 392 |
italcorr x_height#*slant-.5u#; |
| 393 |
adjust_fit(0,0); pickup fine.nib; |
| 394 |
numeric light_vstem; light_vstem=Vround 2/3[vair,vstem]; |
| 395 |
pos2(light_vstem,90); x2=x8=.5w+.5u; top y2r=h+o; |
| 396 |
x1+.5light_vstem=hround(w-u); y1=.2[y2,bar_height]; |
| 397 |
pos1(light_vstem,angle(x1-x2,2(y1-y2))+90); pos3(hair,180); pos4(vair,270); |
| 398 |
pos5(hair,360); pos6(vair,450); pos7(hair,540); pos8(light_vstem,630); |
| 399 |
lft x3r=hround u; x4=x6=.5w; rt x5r=hround(w-2.5u); x7=x3; |
| 400 |
y3=.5[y2,y4]; y5=bar_height=.5[y4,y6]; y7=.5[y6,y8]; bot y8r=-o; |
| 401 |
top y6r-bot y4r=vstem+eps; if y6l<y4l: y6l:=y4l:=y5; fi |
| 402 |
x9+.5vair=hround(w-.5u); y9=1/3[y8,bar_height]; |
| 403 |
pos9(vair,angle(x8-x9,2(y8-y9))+90); |
| 404 |
filldraw circ_stroke z1e{x2-x1,2(y2-y1)}...pulled_super_arc.e(2,3)(.5superpull) |
| 405 |
& super_arc.e(3,4)...{up}z5e; % upper arc |
| 406 |
filldraw circ_stroke z9e{x8-x9,8(y8-y9)}...pulled_arc.e(8,7) |
| 407 |
& super_arc.e(7,6)...{down}z5e; % lower arc |
| 408 |
math_fit(-.5bar_height#*slant-.5u#,ic#); |
| 409 |
penlabels(1,2,3,4,5,6,7,8,9); endchar; |
| 410 |
|
| 411 |
cmchar "Variant lowercase Greek theta"; |
| 412 |
beginchar(oct"043",9u#,asc_height#,0); |
| 413 |
italcorr .5[bar_height#,x_height#]*slant+.5vair#+.5u#; |
| 414 |
adjust_fit(0,0); pickup fine.nib; |
| 415 |
numeric light_curve; light_curve=hround .5[stem,curve]; |
| 416 |
x0=0; x2-.5stem=hround(2.5u-.5stem); hook_in(0,1,2); % opening hook |
| 417 |
pos2'(stem,-180); z2'=z2; pos3(stem,-180); pos4(vair,-90); |
| 418 |
pos5(light_curve,0); pos6(vair,90); pos7(hair,180); pos8(vair,270); |
| 419 |
x3=x2; x4=x6=.5[x3,x5]; rt x5r=hround(w-1.5u+.5light_curve); |
| 420 |
lft x7r=hround(3.25u-.5hair); x8+.5vair=hround(w+.5vair-epsilon); |
| 421 |
y3=.4x_height; bot y4r=-oo; y5=.5[y4,y6]; top y6r=h+oo; |
| 422 |
y7=.5[x_height,h]; y8=.5[bar_height,x_height]; |
| 423 |
filldraw stroke z2'e..{{interim superness:=hein_super; super_arc.e(3,4)}} |
| 424 |
& pulled_arc.e(4,5) & pulled_arc.e(5,6) |
| 425 |
...{down}z7e...{4(x8-x7),y8-y7}z8e; % bowl and loop |
| 426 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#); |
| 427 |
penlabels(0,a,1,2,3,4,5,6,7,8); endchar; |
| 428 |
|
| 429 |
cmchar "Variant lowercase Greek pi"; |
| 430 |
beginchar(oct"044",14.5u#,x_height#,0); |
| 431 |
italcorr x_height#*slant+.5stem#-u#; |
| 432 |
adjust_fit(0,0); pi_stroke; % hook and bar |
| 433 |
pos4(hair,-180); pos5(hair,-180); pos6(vstem,-90); |
| 434 |
pos7(hair,0); pos7'(hair,-180); z7'=z7; |
| 435 |
pos8(vstem,-90); pos9(hair,0); pos0(hair,0); |
| 436 |
x4=x5+1.5u; lft x5r=hround 2u; x6=x4+.5u; lft x7l=hround(.5w+.25u-.5hair); |
| 437 |
x8=w-4.5u; rt x9r=hround(w-1.5u); x0=x9-1.25u; |
| 438 |
top y4=top y0=h; y5+.1h=y7-.1h=y9=bar_height; bot y6r=bot y8r=-oo; |
| 439 |
filldraw stroke z4e{2(x5-x4),y5-y4}...z5e{down} |
| 440 |
...z6e{right}...z7e{up}; % left bowl |
| 441 |
filldraw stroke z0e{2(x9-x0),y9-y0}...z9e{down} |
| 442 |
...z8e{left}...z7'e{up}; % right bowl |
| 443 |
math_fit(-.7x_height#*slant+.5hair#+.5u#,ic#-.5u#); |
| 444 |
penlabels(0,1,2,3,4,5,6,7,8,9); endchar; |
| 445 |
|
| 446 |
cmchar "Variant lowercase Greek rho"; |
| 447 |
beginchar(oct"045",8.25u#,x_height#,desc_depth#); |
| 448 |
italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; |
| 449 |
adjust_fit(0,0); pickup fine.nib; |
| 450 |
pos2(stem,180); pos3(vair,90); pos4(curve,0); pos5(vair,-90); pos6(stem,-180); |
| 451 |
lft x2r=hround(1.5u-.5stem); x2=x6; x3=x5=.5[x2,x4]; |
| 452 |
rt x4r=hround(w-1.5u+.5curve); |
| 453 |
y2=y4=y6=.5[y3,y5]; top y3r=h+oo; bot y5r=-oo; |
| 454 |
filldraw circ_stroke pulled_arc.e(2,3) & pulled_arc.e(3,4) |
| 455 |
& pulled_arc.e(4,5) & pulled_arc.e(5,6); % bowl |
| 456 |
pos2'(hair,-180); z2'r=z2r; pos1(vstem,-90); pos1'(vstem,90); z1'=z1; |
| 457 |
pos0(hair,0); rt x0r=hround(w-u); bot y0=-d; bot y1r=vround-.9d; x1=x5; |
| 458 |
interim superness:=sqrt superness; |
| 459 |
filldraw stroke pulled_arc.e(0,1'); filldraw stroke pulled_arc.e(1,2'); % tail |
| 460 |
math_fit(desc_depth#*slant+.5stem#-u#,ic#); |
| 461 |
penlabels(0,1,2,3,4,5,6); endchar; |
| 462 |
|
| 463 |
cmchar "Variant lowercase Greek sigma"; |
| 464 |
beginchar(oct"046",8u#,x_height#,.5min(desc_depth#,.5x_height#)); |
| 465 |
italcorr x_height#*slant-.5u#; |
| 466 |
adjust_fit(0,0); pickup fine.nib; |
| 467 |
numeric heavy_vair; heavy_vair=.25[vair,vstem]; |
| 468 |
pos1(heavy_vair,-110); pos2(vair,-90); |
| 469 |
x1+.5heavy_vair=hround(w-u); y1=.1[y2r,bar_height]; |
| 470 |
x2=min(.5w+u,x1r-eps); top y2l=h+oo; |
| 471 |
filldraw circ_stroke z1e{x2-x1,2(y2-y1)}...{left}z2e; % upper bulb |
| 472 |
numeric theta; theta=90-angle(16u,x_height); slope:=-x_height/16u; |
| 473 |
pos6(stem,theta); pos7(vair,-90); pos8(vair,-135); |
| 474 |
lft x4l=hround u; x4r-x4l=(hround .5[vair,stem])-fine; |
| 475 |
x6=x7=w-2u; x8=.5w+u; y6=.25[y8,y2]; y8=y7+1/8d; bot y7r=-d-oo; |
| 476 |
ellipse_set(2l,4l,5l,6l); ellipse_set(2r,4r,5r,6r); y4=y4r; |
| 477 |
filldraw circ_stroke z8e{x7-x8,2(y7-y8)}...z7e{right}...z6e |
| 478 |
---z5e...{up}z4e...{right}z2e; % main stroke |
| 479 |
math_fit(-.5x_height#*slant-.5u#,0); penlabels(1,2,4,5,6,7,8); endchar; |
| 480 |
|
| 481 |
cmchar "Variant lowercase Greek phi"; |
| 482 |
beginchar(oct"047",11u#,x_height#,desc_depth#); |
| 483 |
italcorr .7x_height#*slant; |
| 484 |
adjust_fit(0,0); pickup fine.nib; |
| 485 |
pos1(hair,-180); x1=x2+.75u; top y1=h; |
| 486 |
pos2(hair,-180); lft x2r=hround .5u; y2=bar_height; |
| 487 |
pos3(vstem,-90); x3=.5(w+u); bot y3r=-oo; |
| 488 |
pos4(hair,0); rt x4r=hround(w-.5u); y4=y2; |
| 489 |
pos5(vstem,90); x5=.52[x6,x4]; top y5r=h+oo; |
| 490 |
pos6(hair,180); x6=x7; y6=1/3h; |
| 491 |
pos7(stem,180); lft x7r=hround(.5w-.5u-.5stem); y7-.5stem=-d-o; |
| 492 |
filldraw circ_stroke z7e---z6e...{right}z5e...{down}z4e...{left}z3e |
| 493 |
...{up}z2e...{3(x1-x2),y1-y2}z1e; % bowl and stem |
| 494 |
math_fit(-.3x_height#*slant,ic#); penlabels(1,2,3,4,5,6,7); endchar; |