| 1 |
%% File LXBCAPS copied and modified from AMSYB by American Mathematical Society |
| 2 |
%% in order to cope with the necessities of the slides fonts |
| 3 |
%% |
| 4 |
%% Claudio Beccari 2007 |
| 5 |
% |
| 6 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 7 |
|
| 8 |
|
| 9 |
% Changes made by Stefan Lindner for version 2.1 to fix some |
| 10 |
% rounding problems at low resolutions 03-Mar-1991 |
| 11 |
% ru defined and substituted for u in drawings of characters. |
| 12 |
|
| 13 |
def ru(expr A)= |
| 14 |
begingroup |
| 15 |
save rounded_u; rounded_u#:=A*u#; |
| 16 |
define_whole_vertical_pixels(rounded_u); |
| 17 |
rounded_u |
| 18 |
endgroup |
| 19 |
enddef; |
| 20 |
|
| 21 |
iff OK "A": "The letter A"; beginchar("A",13unit#,cap#,0); |
| 22 |
|
| 23 |
top z20=(.48w,h+Aapex); pos20(Atip,0); |
| 24 |
bot y3=0; z3l=whatever[z20l,(1.5unit,0)]; |
| 25 |
bot y6=0; z6r=whatever[z20r,(w-round(unit+u),0)]; |
| 26 |
z20l=z1l; z20r=z4r; |
| 27 |
mpos(1,3)(Athin,constant_angle(z20l,(1.5unit,0),0)); |
| 28 |
mpos(4,6)(stem,constant_angle(z20r,(w-round(unit+u),0),0)); |
| 29 |
onaline(1l,3l)(2l); y2l=c_round_bracket; |
| 30 |
onaline(1r,3r)(2r); y2r=c_inner_bracket; |
| 31 |
onaline(4l,6l)(5l); y5l=c_inner_bracket; |
| 32 |
onaline(4r,6r)(5r); y5r=c_thick_stem_bracket; |
| 33 |
z40=whatever[.8[z1l,z1r],z2r]; z40=whatever[.8[z4r,z4l],z5l]; |
| 34 |
y41=round(.4[serif_thickness,y40]-Abar); % bar bottom |
| 35 |
y42=y41+Abar; |
| 36 |
ref1=rightserif(z3,z1,z2l,z40,ru(7),bracket0)--z40; |
| 37 |
ref2=z40--leftserif(z6,z4,z40,z5r,ru(7),bracket32); |
| 38 |
ref3=(0,y41)--(w,y41); |
| 39 |
ref4=(0,y42)--(w,y42); |
| 40 |
x11=xpart (ref1 intersectionpoint ref3); |
| 41 |
x12=xpart (ref2 intersectionpoint ref3); |
| 42 |
x13=xpart (ref2 intersectionpoint ref4); |
| 43 |
x14=xpart (ref1 intersectionpoint ref4); |
| 44 |
y11=y12=y41; y13=y14=y42; |
| 45 |
|
| 46 |
p1=z20l--leftserif(z3,z1,z2l,z1r,ru(3),bracket0)--ref1--ref2-- |
| 47 |
rightserif(z6,z4,z5l,z5r,ru(2.5),bracket0)--z20r--cycle; |
| 48 |
p2=z11--z12--z13--z14--cycle; |
| 49 |
|
| 50 |
showpoints(1,2,3,4,5,6,11,12,13,14,20,40,41,42); |
| 51 |
draw_outlines; |
| 52 |
endchar; |
| 53 |
|
| 54 |
|
| 55 |
iff OK "B": "The letter B"; beginchar("B",12unit#,cap#,0); |
| 56 |
|
| 57 |
top lft z1l=(round(ru(5)+2smallu),h); |
| 58 |
z2l=(x1l,h-c_thick_stem_bracket); |
| 59 |
z2r=(x1r,h-c_round_bracket); |
| 60 |
z3l=(x1l,c_thick_stem_bracket); |
| 61 |
z3r=(x1r,c_round_bracket); |
| 62 |
bot z4l=(x1l,0); |
| 63 |
mpos(1,4)(Bstem,0); |
| 64 |
z5l=(rt x1r+ru(4),y1); |
| 65 |
z5r=(rt x1r+ru(3),y1-Btopthin); |
| 66 |
onaline(1r,4r)(8l); |
| 67 |
bot y8l=.5h-smallu; pos8(Bmidthin,90); |
| 68 |
rt z6l=(w-round(1.5unit),.5[y5l,y8l]); pos6(Btopcurve,180); |
| 69 |
rt z9l=(w-round(ru(2.5)),.5[y10l,y8r]); pos9(Bbotcurve,180); |
| 70 |
z10l=(rt x1r+ru(4),y4); |
| 71 |
z10r=(rt x1r+ru(3),y4+Bbotthin); |
| 72 |
z7l=(rt x1r+ru(3),y8l); |
| 73 |
rt z7=(lft x9r-ru(3),.5[top y8l,y8r]); |
| 74 |
|
| 75 |
p1=leftserif(z1,z4,z2l,z2r,ru(5.2),bracket4)-- |
| 76 |
leftserif(z4,z1,z3l,z3r,ru(5.2),bracket4)-- |
| 77 |
curve.br(z10l,.5,z9l,.7)--curve.tr(z9l,.7,z7,.5)-- |
| 78 |
curve.br(z7,.5,z6l,.5)--curve.tr(z6l,.8,z5l,.6)--cycle; |
| 79 |
p1'=z8l--z8r; |
| 80 |
p1''=curve.br(z8r,.6,z6r,.85)--curve.tr(z6r,.7,z5r,.5)... |
| 81 |
{left}z5r...{down}z2r--cycle; |
| 82 |
p2''=z8l--z3r{down}...{right}z10r-- |
| 83 |
curve.br(z10r,.6,z9r,.7)--curve.tr(z9r,.8,z7l,.6)--cycle; |
| 84 |
|
| 85 |
showpoints(1,2,3,4,5,6,7,8,9,10); |
| 86 |
draw_outlines; |
| 87 |
endchar; |
| 88 |
|
| 89 |
|
| 90 |
iff OK "C": "The letter C"; beginchar("C",(1+12)*unit#,cap#,0); |
| 91 |
|
| 92 |
bot z2l=(max(7unit,.5w),-Cover); |
| 93 |
y2r=y2l+Cbotthin; |
| 94 |
x2r=x2l+(min(Cbotthin,abs(y2r-y2l))); |
| 95 |
bot rt z1l=(w-ru(2),2unit); |
| 96 |
ref1=z2l{right}...z1l; |
| 97 |
pos1(Ctip,angle(z1l-precontrol 1 of ref1)+ 90); |
| 98 |
lft z3l=(round ru(2),.5h); pos3(Ccurve,0); |
| 99 |
top z4l=(x2l,h+Cover); |
| 100 |
y4r=y4l-Ctopthin; |
| 101 |
x4r=x4l+(min(ru(.5),abs(y4r-y4l))); |
| 102 |
bot rt z5=(w-round(unit+ru(.5)),h-3unit-ru(2.5)); |
| 103 |
z6=(x5,y4l); |
| 104 |
z7=z6-(ru(2.5),ru(2.5)); |
| 105 |
p1=curve.tl(z4l,.5,z3l,.7)--curve.bl(z3l,.7,z2l,.5)...z1l-- |
| 106 |
z1r...reversecurve.bl(z3r,.7,z2r,.6)--reversecurve.tl(z4r,.6,z3r,.6)-- |
| 107 |
beak(z4r,z5,z6,z7,z4l,1.2)--cycle; |
| 108 |
|
| 109 |
showpoints(1,2,3,4,5,6,7); |
| 110 |
draw_outlines; |
| 111 |
endchar; |
| 112 |
|
| 113 |
|
| 114 |
iff OK "D": "The letter D"; beginchar("D",13unit#,cap#,0); |
| 115 |
|
| 116 |
top lft z1l=(round(ru(5)+smallu),h); |
| 117 |
z2l=(x1l,h-c_thick_stem_bracket); |
| 118 |
z2r=(x1r,h-c_round_bracket); |
| 119 |
z3l=(x1l,c_thick_stem_bracket); |
| 120 |
z3r=(x1r,c_round_bracket); |
| 121 |
bot z4l=(x1l,0); |
| 122 |
mpos(1,4)(stem,0); |
| 123 |
z5l=(rt x1r+ru(4),y4); |
| 124 |
z5r=(rt x1r+ru(3),y5l+Dbotthin); |
| 125 |
rt z6l=(w-u-2smallu,.52h); pos6(Dcurve,180); |
| 126 |
z7l=(rt x1r+ru(4),y1); |
| 127 |
z7r=(rt x1r+ru(3.5),y7l-Dtopthin); |
| 128 |
|
| 129 |
p1=leftserif(z1,z4,z2l,z2r,ru(4.5),bracket4)-- |
| 130 |
leftserif(z4,z1,z3l,z3r,ru(4.5),bracket4)-- |
| 131 |
curve.br(z5l,.5,z6l,.7)--curve.tr(z6l,.7,z7l,.5)--cycle; |
| 132 |
p1''=curve.br(z5r,.5,z6r,.8)--curve.tr(z6r,.7,z7r,.5)... |
| 133 |
{down}z2r...z3r{down}...{right}z5r--cycle; |
| 134 |
|
| 135 |
showpoints(1,2,3,4,5,6,7); |
| 136 |
draw_outlines; |
| 137 |
endchar; |
| 138 |
|
| 139 |
|
| 140 |
iff OK "E": "The letter E"; beginchar("E",(1+11)*unit#,cap#,0); |
| 141 |
|
| 142 |
top lft z1l=(round(ru(5.5)),h); |
| 143 |
z2l=(x1l,h-c_thick_stem_bracket); |
| 144 |
z2r=(x1r,h-c_inner_bracket); |
| 145 |
z3l=(x1l,c_thick_stem_bracket); |
| 146 |
z3r=(x1r,c_inner_bracket); |
| 147 |
bot z4l=(x1l,0); |
| 148 |
mpos(1,4)(Estem,0); |
| 149 |
bot rt z11=(w-unit,0); |
| 150 |
top rt z12=(w-.5unit,3unit+ru(2)); |
| 151 |
z13=(.5w+.5unit,y4+Ebotarm); |
| 152 |
z14=(min(x13,rt x4r+.5unit),y13); |
| 153 |
rt z21=(w-ru(4),y1); |
| 154 |
bot z22=(x21,top y1-3.5unit); |
| 155 |
z23=(ru(19),y1-Etoparm); |
| 156 |
z24=(rt x1r+.5unit,y23); |
| 157 |
onaline(1r,4r)(31,35); |
| 158 |
bot y31=.5h-smallu; |
| 159 |
y35=y31+Emidarm; |
| 160 |
rt z33=(w-(3.8unit),.5[y31,y35]); |
| 161 |
x32=x34=x33; |
| 162 |
bot y32=bot y31-2.5unit; |
| 163 |
top y34=bot y32+6unit; |
| 164 |
|
| 165 |
p1=leftserif(z4,z1,z3l,z3r,ru(4.75),.4)-- |
| 166 |
straightarm.br(z13,z12,z11,Ebot_tip,pullout)--z14{left}...{up}z3r-- |
| 167 |
z2r{up}...{right}z24--straightarm.tr(z23,z22,z21,Emid_tip,pulleven)-- |
| 168 |
leftserif(z1,z4,z2l,z2r,ru(4.75),.4)--cycle; |
| 169 |
p1'=straightarm.br(z31,z32,z33,Emid_tip,pullin)-- |
| 170 |
straightarm.tr(z35,z34,z33,Emid_tip,pullin); |
| 171 |
|
| 172 |
showpoints(1,2,3,4,11,12,13,14,21,22,23,24,31,32,33,34,35); |
| 173 |
draw_outlines; |
| 174 |
endchar; |
| 175 |
|
| 176 |
|
| 177 |
iff OK "F": "The letter F"; beginchar("F",(1+10)*unit#,cap#,0); |
| 178 |
|
| 179 |
top lft z1l=(round(ru(5.5)),h); |
| 180 |
z2l=(x1l,h-c_thick_stem_bracket); |
| 181 |
z2r=(x1r,h-c_inner_bracket); |
| 182 |
z3l=(x1l,c_thick_stem_bracket); |
| 183 |
z3r=(x1r,c_inner_bracket); |
| 184 |
bot z4l=(x1l,0); |
| 185 |
mpos(1,4)(Fstem,0); |
| 186 |
rt z21=(w-.5unit,y1); |
| 187 |
bot z22=(x21,top y1-3.5unit); |
| 188 |
z23=(ru(19),y1-Etoparm); |
| 189 |
z24=(rt x1r+.5unit,y23); |
| 190 |
onaline(1r,4r)(31,35); |
| 191 |
bot y31=.5h-smallu; |
| 192 |
y35=y31+Emidarm; |
| 193 |
rt z33=(w-3unit,.5[y31,y35]); |
| 194 |
x32=x34=x33; |
| 195 |
bot y32=bot y31-2.5unit; |
| 196 |
top y34=bot y32+6unit; |
| 197 |
|
| 198 |
p1=fullserif(z4,z1,z3l,z3r,ru(4.75),ru(6),bracket4)--z2r{up}...{right}z24-- |
| 199 |
straightarm.tr(z23,z22,z21,Emid_tip,pulleven)-- |
| 200 |
leftserif(z1,z4,z2l,z2r,ru(4.75),bracket4)--cycle; |
| 201 |
p1'=straightarm.br(z31,z32,z33,Emid_tip,pullin)-- |
| 202 |
straightarm.tr(z35,z34,z33,Emid_tip,pullin); |
| 203 |
|
| 204 |
showpoints(1,2,3,4,21,22,23,24,31,32,33,34,35); |
| 205 |
draw_outlines; |
| 206 |
endchar; |
| 207 |
|
| 208 |
|
| 209 |
iff OK "G": "The letter G"; beginchar("G",(1+13)*unit#,cap#,0); |
| 210 |
|
| 211 |
bot z2l=(max(7unit,.5w),-Gover); |
| 212 |
y2r=y2l+Gbotthin; |
| 213 |
x2r=x2l+(min(Gbotthin,abs(y2r-y2l))); |
| 214 |
lft z3l=(round ru(2),.5h); pos3(Gcurve,0); |
| 215 |
top z4l=(x2l,h+Gover); |
| 216 |
y4r=y4l-Gtopthin; |
| 217 |
x4r=x4l+(min(.5u,abs(y4r-y4l))); |
| 218 |
bot rt z5=(w-round(2unit+.5u),h-3unit-ru(2.5)); |
| 219 |
z6=(x5,y4l); |
| 220 |
z7=z6-(ru(2.5),ru(2.5)); |
| 221 |
top rt z11r=(rt x5+.5u,5unit+.5u); |
| 222 |
bot z13r=(x11r,unit-2smallu); |
| 223 |
mpos(11,13)(Gstem,0); |
| 224 |
onaline(11r,13r)(12r); y12r=max(y11r-c_thick_stem_bracket,y13r); |
| 225 |
onaline(11l,13l)(12l); y12l=max(y11l-c_thick_stem_bracket,y13r+unit); |
| 226 |
|
| 227 |
p1=curve.tl(z4l,.5,z3l,.7)--curve.bl(z3l,.7,z2l,.5)--z2l{right}...z13r-- |
| 228 |
fullserif(z11,z13,z12l,z12r,ru(5.5),ru(4.5),bracket0)...{down}z13l...{left}z2r-- |
| 229 |
reversecurve.bl(z3r,.7,z2r,.6)--reversecurve.tl(z4r,.6,z3r,.6)-- |
| 230 |
beak(z4r,z5,z6,z7,z4l,1.2)--cycle; |
| 231 |
|
| 232 |
showpoints(2,3,4,5,6,7,11,12,13); |
| 233 |
draw_outlines; |
| 234 |
endchar; |
| 235 |
|
| 236 |
|
| 237 |
iff OK "H": "The letter H"; beginchar("H",(1+13)*unit#,cap#,0); |
| 238 |
|
| 239 |
numeric H_inner_serif_amt; |
| 240 |
top lft z1l=(round(3.75unit/2),h); |
| 241 |
z2l=(x1l,h-c_thick_stem_bracket); |
| 242 |
z3l=(x1l,c_thick_stem_bracket); |
| 243 |
bot z4l=(x1l,0); |
| 244 |
top rt z11r=(w-round(3.75unit/2),h); |
| 245 |
z12r=(x11r,h-c_thick_stem_bracket); |
| 246 |
z13r=(x11r,c_thick_stem_bracket); |
| 247 |
bot z14r=(x11r,0); |
| 248 |
mpos(1,2,3,4,11,12,13,14)(stem,0); |
| 249 |
onaline(1r,4r)(5l,5r); bot y5l=bot y15l=.5cap-u; |
| 250 |
onaline(11l,14l)(15l,15r); y5r=y15r=y5l+Hbar; |
| 251 |
H_inner_serif_amt=ru(4.75); |
| 252 |
if (x1r+H_inner_serif_amt+.5linethickness)>.5w: % keeps inner serifs |
| 253 |
H_inner_serif_amt:=.5w-x1r-.5linethickness-1; % from merging |
| 254 |
fi |
| 255 |
|
| 256 |
p1=fullserif(z1,z4,z2l,z2r,ru(4.75),H_inner_serif_amt,bracket4)-- |
| 257 |
fullserif(z4,z1,z3l,z3r,ru(4.75),H_inner_serif_amt,bracket4)--cycle; |
| 258 |
p2=fullserif(z11,z14,z12l,z12r,H_inner_serif_amt,ru(4.75),bracket4)-- |
| 259 |
fullserif(z14,z11,z13l,z13r,H_inner_serif_amt,ru(4.75),bracket4)--cycle; |
| 260 |
p1'=z5r--z15r--z15l--z5l; |
| 261 |
|
| 262 |
showpoints(1,2,3,4,5,11,12,13,14,15); |
| 263 |
draw_outlines; |
| 264 |
endchar; |
| 265 |
|
| 266 |
|
| 267 |
iff OK "I": "The letter I"; beginchar("I",(1+6)*unit#,cap#,0); |
| 268 |
|
| 269 |
top lft z1l=(round((w-stem-linethickness)/2),h); |
| 270 |
z2l=(x1l,h-c_thick_stem_bracket); |
| 271 |
z3l=(x1l,c_thick_stem_bracket); |
| 272 |
bot z4l=(x1l,0); |
| 273 |
mpos(1,2,3,4)(stem,0); |
| 274 |
|
| 275 |
p1=fullserif(z1,z4,z2l,z2r,ru(5),ru(5),bracket4)-- |
| 276 |
fullserif(z4,z1,z3l,z3r,ru(5),ru(5),bracket4)--cycle; |
| 277 |
|
| 278 |
showpoints(1,2,3,4); |
| 279 |
draw_outlines; |
| 280 |
endchar; |
| 281 |
|
| 282 |
|
| 283 |
iff OK "J": "The letter J"; beginchar("J",(2+7)*unit#,cap#,descender#); |
| 284 |
|
| 285 |
top rt z1r=(round(w-2unit),h); |
| 286 |
z2r=(x1r,h-c_thick_stem_bracket); |
| 287 |
z3r=(x1r,2unit); |
| 288 |
z3l=(x1l,u); |
| 289 |
mpos(1,2)(stem,0); |
| 290 |
bot z10r=(w/3,-.45d); |
| 291 |
z10l=z10r+(-smallu,Jbotthin); |
| 292 |
lft z12l=(smallu,ru(2)); pos12(Jbulb,0); |
| 293 |
top z13=(x12,2unit-smallu); |
| 294 |
ref1=z12r...z12l...cycle; |
| 295 |
z14= point 1.75 of ref1; z15=direction 1.75 of ref1; |
| 296 |
z11=(x12r-.5unit,.5[y10l,y14]); |
| 297 |
|
| 298 |
p1=fullserif(z1,z2,z2l,z2r,ru(5.5),ru(4.75),bracket4)--z3l{down}...z10l{left}... |
| 299 |
z11{up}...z14{z15}...z12r{up}...z13{left}...z12l{down}... % bulb |
| 300 |
curve.br(z10r,.65,z3r,.65)--cycle; |
| 301 |
|
| 302 |
showpoints(1,2,3,10,11,12,13,14,15); |
| 303 |
draw_outlines; |
| 304 |
endchar; |
| 305 |
|
| 306 |
|
| 307 |
iff OK "K": "The letter K"; beginchar("K",(1+13)*unit#,cap#,0); |
| 308 |
|
| 309 |
numeric K_inner_serif_amt; |
| 310 |
top lft z11l=(2unit,h); |
| 311 |
z12l=(x11l,h-c_thick_stem_bracket); |
| 312 |
z13l=(x11l,c_thick_stem_bracket); |
| 313 |
bot z14l=(x11l,0); |
| 314 |
mpos(11,12,13,14)(stem,0); |
| 315 |
onaline(11r,14r)(3r,4); |
| 316 |
bot y3r=.4cap; |
| 317 |
top rt z1r=(w-2unit,cap); |
| 318 |
mpos(1,3)(Kthin,angle(z1r-z3r)-90); |
| 319 |
y2l=y2r=cap-Kthin_diag_bracket; |
| 320 |
onaline(1l,3l)(2l,4); |
| 321 |
onaline(1r,3r)(2r,21l); |
| 322 |
onaline(1,3)(0); top y0=cap; |
| 323 |
bot y21l=y3r+.5unit; |
| 324 |
bot rt z23r=(w-ru(2),0); |
| 325 |
mpos(21,23)(Kdiag,angle(z1r-z3r)); |
| 326 |
y22l=y22r=c_thick_stem_bracket; |
| 327 |
onaline(21l,23l)(22l); |
| 328 |
onaline(21r,23r)(22r); |
| 329 |
onaline(21,23)(20); bot y20=0; |
| 330 |
|
| 331 |
K_inner_serif_amt=ru(4.75); |
| 332 |
if (x11r+K_inner_serif_amt+.5linethickness)>.5w: |
| 333 |
K_inner_serif_amt:=.5w-x11r-.5linethickness-1; |
| 334 |
fi |
| 335 |
|
| 336 |
p1=fullserif(z11,z14,z12l,z12r,ru(4.75),K_inner_serif_amt,bracket4)-- |
| 337 |
fullserif(z14,z11,z13l,z13r,ru(4.75),K_inner_serif_amt,bracket4)--cycle; |
| 338 |
p2=z3r--fullserif(z0,z3,z2l,z2r,ru(9),ru(3.5),bracket01)--z4--cycle; |
| 339 |
p3=z21l--fullserif(z20,z21,z22l,z22r,ru(4),.5unit,bracket32)--z21r--cycle; |
| 340 |
|
| 341 |
showpoints(0,1,2,3,4,11,12,13,14,20,21,22,23); |
| 342 |
draw_outlines; |
| 343 |
endchar; |
| 344 |
|
| 345 |
|
| 346 |
iff OK "L": "The letter L"; beginchar("L",(1+11)*unit#,cap#,0); |
| 347 |
|
| 348 |
top lft z1l=(round(ru(5.5)),h); |
| 349 |
z2l=(x1l,h-c_thick_stem_bracket); |
| 350 |
z3l=(x1l,c_thick_stem_bracket); |
| 351 |
z3r=(x1r,c_inner_bracket); |
| 352 |
bot z4l=(x1l,0); |
| 353 |
mpos(1,2,4)(Lstem,0); |
| 354 |
bot rt z11=(w-unit,0); |
| 355 |
top rt z12=(w-.5unit,4unit); |
| 356 |
z13=(.5w+.5unit,y4+Lthin); |
| 357 |
z14=(min(x13,rt x4r+.5unit),y13); |
| 358 |
|
| 359 |
p1=fullserif(z1,z4,z2l,z2r,ru(4.75),ru(4.5),bracket4)-- |
| 360 |
leftserif(z4,z1,z3l,z3r,ru(4.75),bracket4)-- |
| 361 |
straightarm.br(z13,z12,z11,Ltip,pullout)--z14{left}...{up}z3r--cycle; |
| 362 |
|
| 363 |
showpoints(1,2,3,4,11,12,13,14); |
| 364 |
draw_outlines; |
| 365 |
endchar; |
| 366 |
|
| 367 |
|
| 368 |
iff OK "M": "The letter M"; beginchar("M",(1+16)*unit#,cap#,0); |
| 369 |
|
| 370 |
lft x4l=ru(5.6); bot y4=0; |
| 371 |
rt x14r=w-2unit; bot y14=0; |
| 372 |
top z1l=(x4l,h); |
| 373 |
top z11r=(x14r,h); |
| 374 |
mpos(1,3,4)(Mthin_vert,0); |
| 375 |
mpos(11,12,13,14)(Mstem,0); |
| 376 |
onaline(1,4)(3); y12l=h-c_thick_stem_bracket; |
| 377 |
onaline(11,14)(12,13); y3l=y13l=c_thick_stem_bracket; |
| 378 |
bot z22=(x1r+.5(x11l-x1r-Mapex),0); pos22(Mapex,0); |
| 379 |
top z24=(x11l-u,h); |
| 380 |
top z26=(rt x1r+Mdiag,h); |
| 381 |
top z25=(.5[x24,x26],3unit+ru(2)); pos25(u,0); |
| 382 |
bot y23=h-ru(4); |
| 383 |
(z23-z22r)=whatever*(z24-z25r); |
| 384 |
bot y21=h-ru(5); |
| 385 |
(z21-z22l)=whatever*(z26-z25l); |
| 386 |
onaline(26,25l)(30r,31r); onaline(21,22l)(30l,31l); |
| 387 |
y30=y30l=y30r=h-.5linethickness; x30=.5[x30l,x30r]; |
| 388 |
y31=y31l=y31r=0; x31=.5[x31l,x31r]; |
| 389 |
ref1=leftserif(z30,z31,z21,z25r,ru(5.5),bracket0)--z22l; |
| 390 |
z2l=ref1 intersectionpoint ((x3l,0)--(x3l,h)); |
| 391 |
z2r=ref1 intersectionpoint ((x3r,0)--(x3r,h)); |
| 392 |
|
| 393 |
p1=fullserif(z4,z3,z3l,z3r,ru(4.7),ru(5),bracket0)--z2r--z2l--cycle; |
| 394 |
p2=z22r--z23--(x11l,y24)--z24--z25r--z25l--z26--ref1--cycle; |
| 395 |
p3=fullserif(z14,z13,z13l,z13r,ru(4.7),ru(5),bracket0)-- |
| 396 |
rightserif(z11,z12,z12l,z12r,ru(4.7),bracket0)--(x11l,y24)--cycle; |
| 397 |
|
| 398 |
showpoints(1,2,3,4,11,12,13,14,21,22,23,24,25,26,30,31); |
| 399 |
draw_outlines; |
| 400 |
endchar; |
| 401 |
|
| 402 |
|
| 403 |
iff OK "N": "The letter N"; beginchar("N",13unit#,cap#,0); |
| 404 |
|
| 405 |
bot lft z1l=(round 2unit,0); mpos(1,2,11,12)(Nthin,0); |
| 406 |
z2=(x1,c_thin_stem_bracket); |
| 407 |
z3=(x1l,h-ru(4)); |
| 408 |
top rt z11r=(round (w-ru(5.3)),h); |
| 409 |
z12=(x11,h-c_thin_stem_bracket); |
| 410 |
bot z22=(x11r,-Napex); |
| 411 |
z23l=z22-(Ntip,0); mpos(4,23)(Ndiag,angle(z3-z23l)-90); |
| 412 |
% onaline(1r,2r)(4l); bot z4l=whatever[z3,z23l]; |
| 413 |
onaline(1r,2r)(4l); z4l=whatever[z3,z23l]; |
| 414 |
onaline(11l,12l)(14); onaline(4r,23r)(13,14); |
| 415 |
top y21=h; z21=whatever[z14,1.05[z4l,z4r]]; |
| 416 |
onaline(4,23)(20); y20=y21; |
| 417 |
onaline(11r,12r)(13); |
| 418 |
|
| 419 |
p1=leftserif(z20,z4,z4l,z4r,ru(2.5),bracket0)--z23l--z22--z13--z21--cycle; |
| 420 |
p1'=z3--fullserif(z1,z2,z2l,z2r,ru(4.7),ru(5),bracket3)--z4l; |
| 421 |
p2'=z13--fullserif(z11,z12,z12l,z12r,ru(5),ru(4.2),bracket3)--z14; |
| 422 |
|
| 423 |
showpoints(1,2,3,4,11,12,13,14,20,21,22,23); |
| 424 |
draw_outlines; |
| 425 |
endchar; |
| 426 |
|
| 427 |
|
| 428 |
iff OK "O": "The letter O"; beginchar("O",(1+13)*unit#,cap#,descender#); |
| 429 |
|
| 430 |
top z1l=(.5w,h+Oover); pos1(Othin,-90); |
| 431 |
lft z2l=(round(ru(1.8)),.5h); pos2(Ocurve,0); |
| 432 |
bot z3l=(.5w,-Oover); pos3(Othin,90); |
| 433 |
rt z4l=(round(w-ru(1.8)),.5h); pos4(Ocurve,180); |
| 434 |
|
| 435 |
p1=curve.tl(z1l,.5,z2l,.7)--curve.bl(z2l,.7,z3l,.5)-- |
| 436 |
curve.br(z3l,.5,z4l,.7)--curve.tr(z4l,.7,z1l,.5)--cycle; |
| 437 |
p1''=curve.tl(z1r,.6,z2r,.7)--curve.bl(z2r,.7,z3r,.6)-- |
| 438 |
curve.br(z3r,.6,z4r,.7)--curve.tr(z4r,.7,z1r,.6)--cycle; |
| 439 |
|
| 440 |
showpoints(1,2,3,4); |
| 441 |
draw_outlines; |
| 442 |
endchar; |
| 443 |
|
| 444 |
|
| 445 |
iff OK "P": "The letter P"; beginchar("P",(1+10)*unit#,cap#,0); |
| 446 |
|
| 447 |
top lft z1l=(round(ru(5)+smallu),h); |
| 448 |
z2l=(x1l,h-c_thick_stem_bracket); |
| 449 |
z2r=(x1r,h-c_round_bracket); |
| 450 |
z3l=(x1l,c_thick_stem_bracket); |
| 451 |
z3r=(x1r,c_inner_bracket); |
| 452 |
bot z4l=(x1l,0); |
| 453 |
mpos(1,4)(stem,0); |
| 454 |
z5l=(rt x1r+ru(4),y1); |
| 455 |
z5r=(rt x1r+ru(3),y1-Pthin); |
| 456 |
rt z6l=(w-2smallu,.5[y5l,y7l]); pos6(Pcurve,180); |
| 457 |
onaline(1r,4r)(8l,8r); bot y8l=5.5unit; y8r=y8l+Pmidarm; |
| 458 |
z7l=(rt x1r+ru(4),y8l-round(.2smallu)); |
| 459 |
z7r=(rt x1r+ru(3),y8l+Pthin); |
| 460 |
|
| 461 |
p1=leftserif(z1,z4,z2l,z2r,ru(4.5),bracket4)-- |
| 462 |
fullserif(z4,z1,z3l,z3r,ru(4.5),ru(4.8),bracket4)--z8l{right}... |
| 463 |
curve.br(z7l,.5,z6l,.7)--curve.tr(z6l,.7,z5l,.6)--cycle; |
| 464 |
p1'=z8l--z8r; |
| 465 |
p1''=z8r--curve.br(z7r,.6,z6r,.8)--curve.tr(z6r,.8,z5r,.7)... |
| 466 |
{down}z2r--cycle; |
| 467 |
|
| 468 |
showpoints(1,2,3,4,5,6,7,8); |
| 469 |
draw_outlines; |
| 470 |
endchar; |
| 471 |
|
| 472 |
|
| 473 |
iff OK "Q": "The letter Q"; beginchar("Q",(1+13)*unit#,cap#,descender#); |
| 474 |
|
| 475 |
top z1l=(.5w,h+Oover); pos1(Othin,-90); |
| 476 |
lft z2l=(round(ru(1.8)),.5h); pos2(Ocurve,0); |
| 477 |
bot z3l=(.5w,-Oover); pos3(Othin,90); |
| 478 |
rt z4l=(round(w-ru(1.8)),.5h); pos4(Ocurve,180); |
| 479 |
ref1=curve.bl(z2l,.7,z3l,.5)--curve.br(z3l,.5,z4l,.7); |
| 480 |
ref2=(.35w,-d)--(.35w,h); |
| 481 |
ref3=(.35w+stem+2linethickness,-d)--(.35w+stem+2linethickness,h); |
| 482 |
lft z11=ref1 intersectionpoint ref2; |
| 483 |
bot rt z13r=(round(w-ru(2.5)),-d+4smallu); |
| 484 |
bot z12=(.6[x11,x13r],-d-round(2smallu)); |
| 485 |
ref4=z12{right}...z13r; |
| 486 |
pos13(serif_thickness,angle(z13r-precontrol 1 of ref4)-90); |
| 487 |
z14=z13l-(ru(3.5),.5u); |
| 488 |
rt z15=ref1 intersectionpoint ref3; |
| 489 |
|
| 490 |
p1=curve.tl(z1l,.5,z2l,.7)--ref1--curve.tr(z4l,.7,z1l,.5)--cycle; |
| 491 |
p1'=z11...z12{right}...z13r--z13l...z14{left}...z15; |
| 492 |
p1''=curve.tl(z1r,.6,z2r,.7)--curve.bl(z2r,.7,z3r,.6)-- |
| 493 |
curve.br(z3r,.6,z4r,.7)--curve.tr(z4r,.7,z1r,.6)--cycle; |
| 494 |
|
| 495 |
showpoints(1,2,3,4,11,12,13,14,15); |
| 496 |
draw_outlines; |
| 497 |
endchar; |
| 498 |
|
| 499 |
|
| 500 |
iff OK "R": "The letter R"; beginchar("R",(1+12)*unit#,cap#,0); |
| 501 |
|
| 502 |
top lft z1l=(round(ru(5)+2smallu),h); |
| 503 |
z2l=(x1l,h-c_thick_stem_bracket); |
| 504 |
z2r=(x1r,h-c_round_bracket); |
| 505 |
z3l=(x1l,c_thick_stem_bracket); |
| 506 |
z3r=(x1r,c_inner_bracket); |
| 507 |
bot z4l=(x1l,0); |
| 508 |
mpos(1,4)(stem,0); |
| 509 |
z5l=(rt x1r+ru(5),y1); |
| 510 |
z5r=(rt x1r+ru(3),y1-Rthin); |
| 511 |
rt z6r=(w-(ru(5.0)),.5[y5l,y8l]); pos6(Rcurve,0); |
| 512 |
onaline(1r,4r)(8l,8r); bot y8l=5.6unit; y8r=y8l+Rthin; |
| 513 |
ref1=curve.br(z8l,.5,z6r,.9); |
| 514 |
ref2=(rt x4r+.5unit,0)--(rt x4r+.5unit,h); |
| 515 |
ref3=(x4r+stem+2linethickness,0)--(x4r+stem+2linethickness,h); |
| 516 |
lft z11l=ref1 intersectionpoint ref2; |
| 517 |
rt z13l=(w-u,y4); pos13(serif_thickness,90); |
| 518 |
lft z12l=(w-4unit,y13l); |
| 519 |
z14=z13r-(ru(3),0); |
| 520 |
top rt z15=ref1 intersectionpoint ref3; |
| 521 |
|
| 522 |
p1=leftserif(z1,z4,z2l,z2r,ru(4.8),bracket4)-- |
| 523 |
fullserif(z4,z1,z3l,z3r,ru(4.8),ru(4.8),bracket4)-- |
| 524 |
curve.br(z8l,.6,z6r,.9)--curve.tr(z6r,.7,z5l,.5)--cycle; |
| 525 |
p1'=z8l--z8r; |
| 526 |
p2'=z11l--z12l--z13l--z13r{left} |
| 527 |
if lowres:..tension 10.. else:... fi{z15-z14}z15; |
| 528 |
p1''=z8r--curve.br(z8r,.8,z6l,.9)--curve.tr(z6l,.9,z5r,.5)... |
| 529 |
{down}z2r--cycle; |
| 530 |
|
| 531 |
showpoints(1,2,3,4,5,6,8,11,12,13,14,15); |
| 532 |
draw_outlines; |
| 533 |
endchar; |
| 534 |
|
| 535 |
|
| 536 |
iff OK "S": "The letter S"; beginchar("S",10unit#,cap#,0); |
| 537 |
|
| 538 |
top z1r=(.5w-u,h+Sover_top); pos1(Stopthin,90); |
| 539 |
rt z3=(w-ru(4),y1r); |
| 540 |
x4=.3[x3,x1r]; y4=y3-ru(1.5); |
| 541 |
bot z2=top z3-(0,4unit-smallu); |
| 542 |
bot z11l=(.5w-u,-Sover_bot); pos11(Sbotthin,90); |
| 543 |
lft z13=(ru(2),y11l); |
| 544 |
x14=.3[x13,x11l]; y14=y13+ru(1.5); |
| 545 |
top z12=bot z13+(0,4.5unit); |
| 546 |
z21l=(ru(2.5),.73h); |
| 547 |
y21r=.35[y21l,y1r]; rt x21r=.48[x21l,x1r]; |
| 548 |
z22=(.5w,.52h); pos22(stem,37); |
| 549 |
z23r=(w-ru(2)-smallu,.28h); |
| 550 |
y23l=.7[y11l,y23r]; lft x23l=.53[x11l,x23r]; |
| 551 |
|
| 552 |
p1=beak(z1l,z2,z3,z4,z1r,1.2)--curve.tl(z1r,.65,z21l,.65)... |
| 553 |
z22l... |
| 554 |
reversecurve.br(z11r,.7,z23l,.7)-- |
| 555 |
beak(z11r,z12,z13,z14,z11l,1.2)-- |
| 556 |
curve.br(z11l,.6,z23r,.6)...1.1[z22l,z22r]... |
| 557 |
reversecurve.tl(z1l,.6,z21r,.6)--cycle; |
| 558 |
|
| 559 |
showpoints(1,2,3,4,11,12,13,14,21,22,23); |
| 560 |
draw_outlines; |
| 561 |
endchar; |
| 562 |
|
| 563 |
|
| 564 |
iff OK "T": "The letter T"; beginchar("T",(1+11)*unit#,cap#,0); |
| 565 |
|
| 566 |
mpos(1,2,3)(stem,0); |
| 567 |
bot lft z1l=(round((w-stem-linethickness)/2),0); |
| 568 |
z2l=(x1l,c_thick_stem_bracket); |
| 569 |
top z4=(x1,h); |
| 570 |
bot y5l=top y4-(3unit+ru(2)); onaline(1,4)(5); |
| 571 |
mpos(4,5)(round(w-ru(3.5)-linethickness),0); |
| 572 |
z3l=(x1l,y4-Tthin); |
| 573 |
|
| 574 |
p1=straightarm.br(z3r,z5r,z4r,Ttip,pulleven)-- |
| 575 |
straightarm.bl(z3l,z5l,z4l,Ttip,pulleven)--cycle; |
| 576 |
p1'=z3l--fullserif(z1,z4,z2l,z2r,ru(5.25),ru(5.25),bracket4)--z3r; |
| 577 |
|
| 578 |
showpoints(1,2,3,4,5); |
| 579 |
draw_outlines; |
| 580 |
endchar; |
| 581 |
|
| 582 |
|
| 583 |
iff OK "U": "The letter U"; beginchar("U",13unit#,cap#,0); |
| 584 |
|
| 585 |
top lft z1l=(round(ru(5)+smallu),h); |
| 586 |
z2l=(x1l,h-c_thick_stem_bracket); |
| 587 |
z3l=(x1l,4unit); |
| 588 |
top rt z11r=(w-round(ru(5.5)),h); |
| 589 |
z12r=(x11r,h-Uthin_bracket); |
| 590 |
z13r=(x11r,4.5unit); |
| 591 |
mpos(1,2,3)(Ustem,0); |
| 592 |
mpos(11,12,13)(Uthin,0); |
| 593 |
bot z10r=(.5w,-Uover); |
| 594 |
z10l=z10r+(.5unit,Uthin); |
| 595 |
|
| 596 |
p1=fullserif(z1,z2,z2l,z2r,ru(4.5),ru(5),bracket4)-- |
| 597 |
curve.bl(z3l,.65,z10r,.65)--curve.br(z10r,.65,z13r,.65)-- |
| 598 |
fullserif(z11,z12,z12l,z12r,ru(4.75),ru(4.75),bracket01)--z13l{down}-- |
| 599 |
reversecurve.br(z10l,.65,z13l,.65)-- |
| 600 |
reversecurve.bl(z3r,.7,z10l,.7)--cycle; |
| 601 |
|
| 602 |
showpoints(1,2,3,10,11,12,13); |
| 603 |
draw_outlines; |
| 604 |
endchar; |
| 605 |
|
| 606 |
|
| 607 |
iff OK "V": "The letter V"; beginchar("V",13unit#,cap#,0); |
| 608 |
|
| 609 |
bot z20=(.51w,-Vapex); pos20(Vtip,0); |
| 610 |
top y3=h; z3r=whatever[z20r,(w-round(unit+2smallu),h)]; |
| 611 |
top y6=h; z6l=whatever[z20l,(unit,h)]; |
| 612 |
z20r=z1r; z20l=z4l; |
| 613 |
mpos(1,3)(Vthin,constant_angle((w-round(unit+2smallu),h),z20r,0)); |
| 614 |
mpos(4,6)(stem,constant_angle((unit,h),z20l,0)); |
| 615 |
onaline(1r,3r)(2r); y2r=h-c_round_bracket; |
| 616 |
onaline(1l,3l)(2l); y2l=h-c_inner_bracket; |
| 617 |
onaline(4r,6r)(5r); y5r=h-c_inner_bracket; |
| 618 |
onaline(4l,6l)(5l); y5l=h-c_thick_stem_bracket; |
| 619 |
z40=whatever[.8[z1r,z1l],z2l]; z40=whatever[.8[z4l,z4r],z5r]; |
| 620 |
|
| 621 |
p1=z20l--z20r--rightserif(z3,z1,z2l,z2r,ru(3),bracket0)-- |
| 622 |
leftserif(z3,z1,z40,z2r,ru(7),bracket0)--z40-- |
| 623 |
rightserif(z6,z4,z5l,z40,ru(7),bracket32)-- |
| 624 |
leftserif(z6,z4,z5l,z5r,ru(2.5),bracket0)--z20l--cycle; |
| 625 |
|
| 626 |
showpoints(1,2,3,4,5,6,20,40); |
| 627 |
draw_outlines; |
| 628 |
endchar; |
| 629 |
|
| 630 |
|
| 631 |
iff OK "W": "The letter W"; beginchar("W",(1+17)*unit#,cap#,0); |
| 632 |
|
| 633 |
bot z20=(.3w,-Wapex); pos20(Wtip,0); |
| 634 |
top y3=h; z3r=whatever[z20r,(.6w,h)]; |
| 635 |
top y6=h; z6l=whatever[z20l,(unit,h)]; |
| 636 |
z20r=z1r; z20l=z4l; |
| 637 |
mpos(1,3)(Wleftthin,constant_angle((.6w,h),z20r,0)); |
| 638 |
mpos(4,6)(stem,constant_angle((unit,h),z20l,0)); |
| 639 |
onaline(1r,3r)(2r); y2r=h-c_round_bracket; |
| 640 |
onaline(1l,3l)(2l); y2l=h-c_inner_bracket; |
| 641 |
onaline(4r,6r)(5r); y5r=h-c_inner_bracket; |
| 642 |
onaline(4l,6l)(5l); y5l=h-c_thick_stem_bracket; |
| 643 |
z40=whatever[.8[z1r,z1l],z2l]; z40=whatever[.8[z4l,z4r],z5r]; |
| 644 |
|
| 645 |
bot z21=(.7w,-Wapex); pos21(Wtip,0); |
| 646 |
top y13=h; z13r=whatever[z21r,(w-unit,h)]; |
| 647 |
top y16=h; z16l=whatever[z21l,(.44w,h)]; |
| 648 |
z21r=z11r; z21l=z14l; |
| 649 |
mpos(11,13)(Wrightthin,constant_angle((w-unit,h),z21r,0)); |
| 650 |
mpos(14,16)(stem,constant_angle((.44w,h),z21l,0)); |
| 651 |
onaline(11r,13r)(12r); y12r=h-c_round_bracket; |
| 652 |
onaline(11l,13l)(12l); y12l=h-c_inner_bracket; |
| 653 |
onaline(14r,16r)(15r); y15r=h-c_inner_bracket; |
| 654 |
onaline(14l,16l)(15l); y15l=h-c_thick_stem_bracket; |
| 655 |
z41=whatever[.8[z11r,z11l],z12l]; z41=whatever[.8[z14l,z14r],z15r]; |
| 656 |
|
| 657 |
ref1=leftserif(z16,z14,z15l,z15r,ru(2.5),bracket0)--z21l; |
| 658 |
z30=ref1 intersectionpoint (z20r--z3r); |
| 659 |
z31=ref1 intersectionpoint (z40--z3l); |
| 660 |
|
| 661 |
p1=z21l--z21r--rightserif(z13,z11,z12l,z12r,ru(2),bracket0)-- |
| 662 |
leftserif(z13,z11,z41,z12r,ru(7),bracket0)--z41-- |
| 663 |
rightserif(z16,z14,z15l,z41,ru(6),bracket32)-- |
| 664 |
ref1--cycle; |
| 665 |
p2=z20l--z20r--z30--z31--z40-- |
| 666 |
rightserif(z6,z4,z5l,z40,ru(5),bracket32)-- |
| 667 |
leftserif(z6,z4,z5l,z5r,ru(2),bracket0)--z20l--cycle; |
| 668 |
|
| 669 |
showpoints(1,2,3,4,5,6,11,12,13,14,15,16,20,21,30,31,40,41); |
| 670 |
draw_outlines; |
| 671 |
endchar; |
| 672 |
|
| 673 |
|
| 674 |
iff OK "X": "The letter X"; beginchar("X",13unit#,cap#,0); |
| 675 |
|
| 676 |
numeric botjoin,topjoin,joinwidths; |
| 677 |
botjoin=.42h; topjoin=.62h; |
| 678 |
|
| 679 |
top z1=(.2w,h); |
| 680 |
bot z3=(.8w,0); |
| 681 |
z2r=.5[z1r,z3r]; |
| 682 |
mpos(1,3)(Xdiag,constant_angle(z1,z3,0)); |
| 683 |
pos2(.9Xdiag,constant_angle(z1,z3,0)); |
| 684 |
ref1=leftserif(z1,z3,z2l,z2r,ru(2.5),bracket4)... |
| 685 |
leftserif(z3,z1,z2l,z2r,ru(7),bracket42); |
| 686 |
ref2=rightserif(z3,z1,z2l,z2r,ru(2),bracket42)-- |
| 687 |
rightserif(z1,z3,z2l,z2r,ru(6),bracket4); |
| 688 |
bot z4=ref1 intersectionpoint ((0,botjoin)--(w,botjoin)); |
| 689 |
top z9=ref2 intersectionpoint ((0,topjoin)--(w,topjoin)); |
| 690 |
bot z6=(.12w,0); top z7=(.8w,h); |
| 691 |
mpos(4,6)(Xthin,constant_angle(z4,z6,0)); |
| 692 |
mpos(7,9)(Xthin,constant_angle(z7,z9,0)); |
| 693 |
onaline(4l,6l)(5l); y5l=y5r=Xthin_diag_bracket; |
| 694 |
onaline(4r,6r)(5r); |
| 695 |
onaline(7r,9r)(8r); y8r=y8l=h-Xthin_diag_bracket; |
| 696 |
onaline(7l,9l)(8l); |
| 697 |
ref3=fullserif(z6,z4,z5l,z5r,ru(2.5),ru(8),bracket01); |
| 698 |
ref4=z5l--2[z5l,z4l]; |
| 699 |
ref5=fullserif(z7,z9,z8l,z8r,ru(7),ru(5),bracket01); |
| 700 |
ref6=z8r--2[z8r,z9r]; |
| 701 |
z21=ref1 intersectionpoint (ref3--z4r); |
| 702 |
z22=ref1 intersectionpoint ref4; |
| 703 |
z23=ref2 intersectionpoint (ref5--z9l); |
| 704 |
z24=ref2 intersectionpoint ref6; |
| 705 |
|
| 706 |
p1=ref1--ref2--cycle; |
| 707 |
p2=z22--ref3--z21--cycle; |
| 708 |
p3=z24--ref5--z23--cycle; |
| 709 |
|
| 710 |
showpoints(1,2,3,4,5,6,7,8,9,21,22,23,24); |
| 711 |
draw_outlines; |
| 712 |
endchar; |
| 713 |
|
| 714 |
|
| 715 |
iff OK "Y": "The letter Y"; beginchar("Y",13unit#,cap#,0); |
| 716 |
|
| 717 |
bot lft z3l=(5unit,0); |
| 718 |
z2l=z3l+(0,c_thick_stem_bracket); |
| 719 |
mpos(2,3)(stem,0); |
| 720 |
onaline(2l,3l)(1l); y1l=.39h; |
| 721 |
onaline(2r,3r)(1r); y1r=.45h; |
| 722 |
top lft z4l=(unit,h); |
| 723 |
z6l=z1l; |
| 724 |
mpos(4,6)(Ythick_diag, constant_angle(z4l,z6l,0)); |
| 725 |
onaline(4l,6l)(5l); y5l=y5r=h-c_thick_stem_bracket; |
| 726 |
onaline(4r,6r)(5r); |
| 727 |
onaline(4,6)(20); top y20=h; |
| 728 |
top rt z7r=(w-unit,h); |
| 729 |
z9r=z1r; |
| 730 |
|
| 731 |
mpos(7,9)(Ydiag, constant_angle(z7r,z9r,0)); |
| 732 |
onaline(7l,9l)(8l); y8l=y8r=h-Ythin_diag_bracket; |
| 733 |
onaline(7r,9r)(8r); |
| 734 |
onaline(7,9)(21); top y21=h; |
| 735 |
|
| 736 |
ref1=z5r--1.5[z5r,z6r]; |
| 737 |
ref2=z8l--1.5[z8l,z9l]; |
| 738 |
z22=ref1 intersectionpoint ref2; |
| 739 |
|
| 740 |
p1=fullserif(z20,z6,z5l,z5r,ru(2),ru(4),bracket4)--z1l-- |
| 741 |
fullserif(z3,z2,z2l,z2r,ru(5),ru(5),bracket4)--z1r-- |
| 742 |
fullserif(z21,z9,z8l,z8r,ru(8),ru(2),bracket01)--z22--cycle; |
| 743 |
|
| 744 |
showpoints(1,2,3,4,5,6,7,8,9,20,21,22); |
| 745 |
draw_outlines; |
| 746 |
endchar; |
| 747 |
|
| 748 |
|
| 749 |
iff OK "Z": "The letter Z"; beginchar("Z",(1+11)*unit#,cap#,0); |
| 750 |
|
| 751 |
top lft z1=(ru(4)+smallu,h); |
| 752 |
bot lft z2=(ru(3)+smallu,top y1-3.5unit); |
| 753 |
z3=(.5w,y1-Zthin); |
| 754 |
bot lft z5l=(.5unit,0); |
| 755 |
rt z15r=(w-ru(3)-smallu,y1); |
| 756 |
mpos(5,15)(Zdiag,constant_angle(z15r,z5l,Zdiag)); |
| 757 |
rt z11=(w-ru(3.2),y5l); |
| 758 |
top rt z12=(w-ru(1.7),4unit+u); |
| 759 |
z13=(.55w,y11+Zthin); |
| 760 |
onaline(5l,15l)(4); y4=y3; |
| 761 |
onaline(5r,15r)(14); y14=y13; |
| 762 |
|
| 763 |
p1=straightarm.tl(z3,z2,z1,Ztip,pulleven)--z4--z5l-- |
| 764 |
straightarm.br(z13,z12,z11,Ztip,pulleven)--z14--z15r--cycle; |
| 765 |
|
| 766 |
showpoints(1,2,3,4,5,11,12,13,14,15); |
| 767 |
draw_outlines; |
| 768 |
endchar; |
| 769 |
|
| 770 |
|
| 771 |
|
| 772 |
% ----- Phase 3 ----- |
| 773 |
|
| 774 |
|
| 775 |
iff OK "k": "The letter k"; beginchar(oct"174",(1+9)*unit#,ascender#,0); |
| 776 |
|
| 777 |
top lft z11l=(unit+.5u,h); |
| 778 |
bot z14l=(x11l,0); |
| 779 |
mpos(11,14)(kstem,0); |
| 780 |
onaline(11r,14r)(3r,4,12r,13r); |
| 781 |
bot y3r=.4xheight; y12l=h-lc_thick_stem_bracket; top y12r=h; |
| 782 |
onaline(11l,14l)(12l,13l); |
| 783 |
y13l=y13r=lc_thick_stem_bracket; |
| 784 |
top rt z1r=(w-1.5unit,xheight); |
| 785 |
mpos(1,3)(kthin,angle(z1r-z3r)-90); |
| 786 |
y2l=y2r=xheight-k_thin_diag; |
| 787 |
onaline(1l,3l)(2l,4); |
| 788 |
onaline(1r,3r)(2r,21l); |
| 789 |
onaline(1,3)(0); top y0=xheight; |
| 790 |
y21l=y3r+.5unit; |
| 791 |
bot rt z23r=(w-ru(2),0); |
| 792 |
mpos(21,23)(kdiag,angle(z1r-z3r)); |
| 793 |
y22l=y22r=lc_thick_stem_bracket; |
| 794 |
onaline(21l,23l)(22l); |
| 795 |
onaline(21r,23r)(22r); |
| 796 |
onaline(21,23)(20); bot y20=0; |
| 797 |
|
| 798 |
p1=fullserif(z14,z11,z13l,z13r,ru(2.5),ru(2.5),bracket0)--z12r-- |
| 799 |
leftserif(z11,z14,z12l,z12r,ru(2.5),bracket0)--cycle; |
| 800 |
p2=z3r--fullserif(z0,z3,z2l,z2r,ru(7),ru(2.5),bracket01)--z4--cycle; |
| 801 |
p3=z21l--fullserif(z20,z21,z22l,z22r,ru(4),u,bracket32)--z21r--cycle; |
| 802 |
|
| 803 |
showpoints(0,1,2,3,4,11,12,13,14,20,21,22,23); |
| 804 |
draw_outlines; |
| 805 |
endchar; |