| 1 |
cmchar "The Schwabacher exclamation point"; |
| 2 |
beginchar("!",5u#+width_adj#,x_height#,0); |
| 3 |
italcorr asc_height#*slant-2u#-.5width_adj#+.5dot_size#; |
| 4 |
adjust_fit(0,0); |
| 5 |
pickup tiny.nib; pos3(dot_size,0); pos4(dot_size,90); |
| 6 |
lft x3l=hround(.5w-.5dot_size); bot y4l=0; z3=z4; %dot(3,4); % dot |
| 7 |
penpos10(stem,45); penpos11(stem,45); |
| 8 |
penpos10'(stem,-45); |
| 9 |
x10l=x3; z10l=z10'r; z11l=z10'l; |
| 10 |
y10l=-apex_o; penstroke z10e--z11e; |
| 11 |
numeric bot_width; |
| 12 |
bot_width=if hefty:max(hround .8dot_size,fine.breadth) else: hair fi; |
| 13 |
pickup fine.nib; pos1(dot_size,0); pos2(bot_width,0); |
| 14 |
x1=x2=x3; bot y2=.2[top y4r,x_height]+1; |
| 15 |
if square_dots: top y1=h; |
| 16 |
filldraw stroke z1e--z2e; % stem |
| 17 |
else: top z0=(x1,h+o); y1+.5dot_size=h+o; |
| 18 |
filldraw z1r...z0...z1l---z2l--z2r---cycle; fi % stem and bulb |
| 19 |
penlabels(0,1,2,3,4); endchar; |
| 20 |
|
| 21 |
.cmchar "The schwabacher question mark"; |
| 22 |
.beginchar("?",4.83u#,1.027x_height#,0); |
| 23 |
.adjust_fit(usual_left#,usual_right#); |
| 24 |
penpos1(stem,45); penpos1'(stem,-45); |
| 25 |
penpos2(stem,45); |
| 26 |
z1l=(0.5w,-apex_o); z1'r=z1l; |
| 27 |
z2l=z1'l; |
| 28 |
penstroke z1e--z2e; |
| 29 |
penpos3(hair,-8); penpos4(hair,-8); |
| 30 |
z3l=(0.086w,0.289h); |
| 31 |
z4l-z3l=whatever*dir82; y4l=0.539h; |
| 32 |
penpos5(0.87stem,-98); |
| 33 |
penpos6(0.87stem,-98); |
| 34 |
z5l=z4l; z8'=(w,0.798h); |
| 35 |
z8'-z6=whatever*dir82; |
| 36 |
z6l=whatever[z4l,z4r]; |
| 37 |
penpos7(hair,-8); z7r=z6r; |
| 38 |
penpos9(0.87stem,82); z9r=z8'; |
| 39 |
penpos8(whatever,0); z8r=z8'; |
| 40 |
z8l-z7l=whatever*(z8r-z7r); |
| 41 |
penstroke z5e--z6e; |
| 42 |
penstroke z3e--z4e; |
| 43 |
penstroke z7e--z8e; |
| 44 |
penpos10(whatever,74); |
| 45 |
z10r-z8r=whatever*dir159; |
| 46 |
z10l-z9l=whatever*dir159; |
| 47 |
x10l=0; penpos11(hair,0); z11l=(0,1.088h); |
| 48 |
penstroke z9e--z10e; |
| 49 |
filldraw z10l--z11l--z11r--z10r--z10l |
| 50 |
& cycle; |
| 51 |
.endchar; |
| 52 |
|
| 53 |
.cmchar "The Schwabacher comma"; |
| 54 |
.beginchar(",",5u#,x_height#,0); |
| 55 |
.adjust_fit(usual_left#,usual_right#); |
| 56 |
penpos1(0.23570*(x_height+2apex_o),45); |
| 57 |
penpos2(0.23570*(x_height+2apex_o),45); |
| 58 |
penpos3(0.23570*(x_height+2apex_o),45); |
| 59 |
penpos4(0.23570*(x_height+2apex_o),45); |
| 60 |
penpos5(0.23570*(x_height+2apex_o),45); |
| 61 |
penpos6(0.23570*(x_height+2apex_o),45); |
| 62 |
x1l=x3l=x5l=0.5w; |
| 63 |
z2r=z3l; z4r=z5l; |
| 64 |
z2-z1=whatever*dir135; |
| 65 |
z4-z3=whatever*dir135; |
| 66 |
z6-z5=whatever*dir135; |
| 67 |
y1l=-apex_o; y6r=x_height+apex_o; |
| 68 |
%penstroke z1e--z2e; |
| 69 |
penpos10(0.11785*(x_height+2apex_o),-30); |
| 70 |
z10l=(x2l-apex_o,-1.3y2r); |
| 71 |
filldraw z10l--z2l+(hair,0){up}..{down} |
| 72 |
z1r--z10r--z10l & cycle; |
| 73 |
.endchar; |
| 74 |
|
| 75 |
.cmchar "The Schwabacher Umlaut"; |
| 76 |
.beginchar(oct"175",6u#,x_height#,0); |
| 77 |
.adjust_fit(usual_left#,usual_right#); |
| 78 |
y0=0; 0.5[x60,x62']=0.5w; |
| 79 |
z0'=z0+(2.5u,0); |
| 80 |
penpos60(hair,145); |
| 81 |
z60=(x0+stem,1.090x_height); |
| 82 |
z61=(x0+1.522stem,1.387x_height); |
| 83 |
z62=(x0+1.956stem,1.324x_height); |
| 84 |
z60'=(x0'+stem,1.090x_height); |
| 85 |
z61'=(x0'+1.522stem,1.387x_height); |
| 86 |
z62'=(x0'+1.956stem,1.324x_height); |
| 87 |
filldraw z60l{dir34}..z62{up}..z61{left} |
| 88 |
..z60r{dir259}--z60l & cycle; |
| 89 |
penpos60'(hair,145); |
| 90 |
filldraw z60'l{dir34}..z62'{up}..z61'{left} |
| 91 |
..z60'r{dir259}--z60'l & cycle; |
| 92 |
.endchar; |
| 93 |
|
| 94 |
.cmchar "The Schwabacher dotless i"; |
| 95 |
.beginchar(oct"020",4u#,x_height#,0); |
| 96 |
.adjust_fit(usual_left#,usual_right#); |
| 97 |
penpos1(stem,0); penpos2(1.739stem,0); |
| 98 |
penpos3(0.5hair,90); penpos4(0.5hair,-90); |
| 99 |
z2l=(0,0.815x_height); x1=x2; |
| 100 |
y1=0.252x_height; z3l=z2l; z4r=z2r; |
| 101 |
z5=(x1,x_height+apex_o); |
| 102 |
penpos1'(stem,0); x1'=x1; y1'=0.7x_height; |
| 103 |
filldraw z1r---z1'r...{right}z2r--z4l--z5-- |
| 104 |
z3r--z2l{right}...z1'l---z1l--z1r & cycle; |
| 105 |
% |
| 106 |
% podi tou i |
| 107 |
% |
| 108 |
penpos9(hair,90); penpos11(hair,-90); |
| 109 |
z9r=(0,foot); z11r=(w,foot); |
| 110 |
z12=(0.717w,foot); z10=(0.472w,-apex_o); |
| 111 |
filldraw z1l{down}..z9r{left}--z9l |
| 112 |
--z10--z11r--z11l{z10-z11r}..z12{left} |
| 113 |
..z1r{up} & z1r--z1l & cycle; |
| 114 |
.endchar; |
| 115 |
|
| 116 |
.cmchar "The Schwabacher dotless j"; |
| 117 |
.beginchar(oct"021",3.019u#,x_height#,2.943u#); |
| 118 |
.adjust_fit(usual_left#,usual_right#); |
| 119 |
penpos1(stem,0); penpos2(1.739stem,0); |
| 120 |
penpos3(0.5hair,90); penpos4(0.5hair,-90); |
| 121 |
z2l=(0,0.815x_height); x1=x2; |
| 122 |
y1=0.252x_height; z3l=z2l; z4r=z2r; |
| 123 |
z5=(x1,x_height+apex_o); |
| 124 |
penpos1'(stem,0); x1'=x1; y1'=0.7x_height; |
| 125 |
filldraw z1r---z1'r...{right}z2r--z4l--z5-- |
| 126 |
z3r--z2l{right}...z1'l---z1l--z1r & cycle; |
| 127 |
% |
| 128 |
% podi tou j |
| 129 |
% |
| 130 |
penpos9(hair,0); z9l=(0,-d); |
| 131 |
penpos10(stem,0); z10=(x1,0); |
| 132 |
filldraw z9l{z10r-z9r}...z10l--- |
| 133 |
z1l--z1r--z10r--z9r--z9l & cycle; |
| 134 |
.endchar; |
| 135 |
|
| 136 |
.cmchar "The Schwabacher letter a with Umlaut"; |
| 137 |
.beginchar(oct"212",6.943u#,x_height#,0); |
| 138 |
.adjust_fit(usual_left#,usual_right#); |
| 139 |
penpos1(1.13stem,45); |
| 140 |
penpos3(stem,45); x1r=w; y1l=-apex_o; |
| 141 |
z3l=(0.337w,-apex_o); |
| 142 |
penpos2(hair,-45); z2r=z3; |
| 143 |
penpos4(hair,-45); |
| 144 |
z4-z2=whatever*dir45; x4r=x1l-hair; |
| 145 |
z5=whatever[z2r,z4r]; |
| 146 |
z5-z1l=whatever*dir130; |
| 147 |
penpos11(0.913stem,29); z11l=(0,0.396h); |
| 148 |
penpos9(1.217stem,35); |
| 149 |
z9r=(0.658w,h+apex_o); |
| 150 |
penpos8(1.13stem,50); |
| 151 |
x8r=w; z9r-z8r=whatever*dir144; |
| 152 |
penpos7(cap_hair,angle(z8l-z9l)); |
| 153 |
z7r=z8l; penpos10(cap_hair,angle(z7r-z7l)); |
| 154 |
z10l=z9l; |
| 155 |
z6=(x7,0.459h); |
| 156 |
filldraw z1r{z5-z1l}..z6{up}... |
| 157 |
z8l---z8r--z9r---z9l...z11l{down} |
| 158 |
..z3l--z3r..z11r{up}..z10r{z9r-z9l} |
| 159 |
& z10r--z7l--z5--z1l--z1r & cycle; |
| 160 |
penstroke z2e--z4e; |
| 161 |
% |
| 162 |
% |
| 163 |
% |
| 164 |
y0=0; x62'=w; |
| 165 |
z0'=z0+(2.5u,0); |
| 166 |
penpos60(hair,145); |
| 167 |
z60=(x0+stem,1.090x_height); |
| 168 |
z61=(x0+1.522stem,1.387x_height); |
| 169 |
z62=(x0+1.956stem,1.324x_height); |
| 170 |
z60'=(x0'+stem,1.090x_height); |
| 171 |
z61'=(x0'+1.522stem,1.387x_height); |
| 172 |
z62'=(x0'+1.956stem,1.324x_height); |
| 173 |
filldraw z60l{dir34}..z62{up}..z61{left} |
| 174 |
..z60r{dir259}--z60l & cycle; |
| 175 |
penpos60'(hair,145); |
| 176 |
filldraw z60'l{dir34}..z62'{up}..z61'{left} |
| 177 |
..z60'r{dir259}--z60'l & cycle; |
| 178 |
.endchar; |
| 179 |
|
| 180 |
.cmchar "The Schwabacher letter e with Umlaut"; |
| 181 |
.beginchar(oct"221",5.17u#,x_height#,0); |
| 182 |
.adjust_fit(usual_left#,usual_right#); |
| 183 |
penpos1(cap_hair,-90); z1r=(0.934w,0.189h); |
| 184 |
z3=(0.642w,y1r); z2=(0.343w,-apex_o); |
| 185 |
penpos4(1.391stem,42); z4l=(0,0.459h); |
| 186 |
z5=(0.175w,0.874h); |
| 187 |
penpos6(hair,-57); penpos8(hair,-57); |
| 188 |
z6l=(0.693w,h+apex_o); |
| 189 |
z8=whatever[z6l,z6r]; x8r=w; |
| 190 |
penpos10(stem,angle(z6l-z5)); z10r=z6l; |
| 191 |
penpos7(hair,-57); |
| 192 |
z8-z7=whatever*dir33; x7=x4; |
| 193 |
penpos9(whatever,angle(z8r-z7r)); |
| 194 |
z9r=z8r; |
| 195 |
z9l-z10l=whatever*(z8r-z10r); |
| 196 |
filldraw z1r--z2..z4l{up}...z5--- |
| 197 |
z6l--z6r{z5-z6l}..z4r{down}.. |
| 198 |
z3{right}..z1l{z1r-z2}--z1r & cycle; |
| 199 |
penstroke z7e--z8e; |
| 200 |
penstroke z9e--z10e; |
| 201 |
% |
| 202 |
% |
| 203 |
% |
| 204 |
y0=0; x62'=w; |
| 205 |
z0'=z0+(2.5u,0); |
| 206 |
penpos60(hair,145); |
| 207 |
z60=(x0+stem,1.090x_height); |
| 208 |
z61=(x0+1.522stem,1.387x_height); |
| 209 |
z62=(x0+1.956stem,1.324x_height); |
| 210 |
z60'=(x0'+stem,1.090x_height); |
| 211 |
z61'=(x0'+1.522stem,1.387x_height); |
| 212 |
z62'=(x0'+1.956stem,1.324x_height); |
| 213 |
filldraw z60l{dir34}..z62{up}..z61{left} |
| 214 |
..z60r{dir259}--z60l & cycle; |
| 215 |
penpos60'(hair,145); |
| 216 |
filldraw z60'l{dir34}..z62'{up}..z61'{left} |
| 217 |
..z60'r{dir259}--z60'l & cycle; |
| 218 |
.endchar; |
| 219 |
|
| 220 |
.cmchar "The Schwabacher letter o with Umlaut"; |
| 221 |
.beginchar(oct"232",7.849u#,x_height#,0); |
| 222 |
.adjust_fit(usual_left#,usual_right#); |
| 223 |
penpos1(hair,0); z1=(0.428w,-apex_o); |
| 224 |
penpos4(1.326stem,53); z4l=z1; |
| 225 |
penpos2(1.065stem,47); |
| 226 |
z2l=(0,0.491h); |
| 227 |
penpos6(hair,angle((w,0)-(0,h))); |
| 228 |
z6=whatever[(w,0),(0,h)]; |
| 229 |
x6=0.202w; |
| 230 |
penpos7(hair,angle((w,0)-(0,h))); |
| 231 |
z7=whatever[(w,0),(0,h)]; |
| 232 |
x7=0.798w; |
| 233 |
z6'=((0,h)--(w,0)) intersectionpoint |
| 234 |
((x2r,0)--(x2r,h)); |
| 235 |
z7'=((0,h)--(w,0)) intersectionpoint |
| 236 |
((0,y4r)--(w,y4r)); |
| 237 |
penpos5(whatever,-133); |
| 238 |
z5=whatever[z2l,z2r]; y5r=y6'; |
| 239 |
y5l=h+2apex_o; |
| 240 |
penpos3(whatever,40); |
| 241 |
x3l=x7'; x3r=w; y3r=0.563h; |
| 242 |
% |
| 243 |
% |
| 244 |
% |
| 245 |
filldraw z1r{dir45}..z3r{up}.. |
| 246 |
z5l{dir150}--z5r{right}..z3l{down} |
| 247 |
..z4r{left}..z2r{up}..z6r.. |
| 248 |
z5r{right}--z5l & z5l{z5r-z5l} |
| 249 |
..z6l..z2l{down}..z1l{dir-45}--z1r |
| 250 |
& cycle; |
| 251 |
% |
| 252 |
% |
| 253 |
% |
| 254 |
y0=0; 0.5[x60,x60']=x5l-hair; |
| 255 |
z0'=z0+(2.5u,0); |
| 256 |
penpos60(hair,145); |
| 257 |
z60=(x0+stem,1.090x_height); |
| 258 |
z61=(x0+1.522stem,1.387x_height); |
| 259 |
z62=(x0+1.956stem,1.324x_height); |
| 260 |
z60'=(x0'+stem,1.090x_height); |
| 261 |
z61'=(x0'+1.522stem,1.387x_height); |
| 262 |
z62'=(x0'+1.956stem,1.324x_height); |
| 263 |
filldraw z60l{dir34}..z62{up}..z61{left} |
| 264 |
..z60r{dir259}--z60l & cycle; |
| 265 |
penpos60'(hair,145); |
| 266 |
filldraw z60'l{dir34}..z62'{up}..z61'{left} |
| 267 |
..z60'r{dir259}--z60'l & cycle; |
| 268 |
.endchar; |
| 269 |
|
| 270 |
.cmchar "The Schwabacher letter u with Umlaut"; |
| 271 |
.beginchar(oct"237",7.849u#,x_height#,0); |
| 272 |
.adjust_fit(usual_left#,usual_right#); |
| 273 |
penpos1(1.283stem,35); |
| 274 |
penpos2(1.283stem,35); |
| 275 |
z1l=(0.337w,-apex_o); |
| 276 |
z2-z1=whatever*dir142; x2=0.168w; |
| 277 |
penpos3(hair,-55); penpos4(hair,-55); |
| 278 |
z3r=z1; z4-z3=whatever*dir35; |
| 279 |
penpos8(stem,0); x8=0.798w=x4; |
| 280 |
z8l=whatever[z3r,z4r]; |
| 281 |
penpos10(stem,0); z10=(x2+0.5stem-apex_o,y2l); |
| 282 |
penstroke z1e--z2e; |
| 283 |
penstroke z3e--z4e; |
| 284 |
z11=(x10l,0.775h); z12=(0.478[x10l,x10r],h+apex_o); |
| 285 |
penpos13(hair,-90); x13=0; |
| 286 |
z12-z13l=whatever*dir33; |
| 287 |
filldraw z13r{z12-z13l}...z11--- |
| 288 |
z10l--z10r---(x10r,y11)...z12 |
| 289 |
& z12--z13l--z13r & cycle; |
| 290 |
% |
| 291 |
% |
| 292 |
% |
| 293 |
z5=(0.609[x8l,x8r],-apex_o); |
| 294 |
penpos9(whatever,24); |
| 295 |
y9r=h+apex_o; x9l=x8l; x9r=x8r; |
| 296 |
penpos6(eps,-90); |
| 297 |
z6r-z5=whatever*dir43; |
| 298 |
x6=w; z7=whatever[z1l,z1r]; x7=x8r; |
| 299 |
filldraw z5...z8l---z9l--z9r--- |
| 300 |
z7...z6l--z6r--z5 & cycle; |
| 301 |
% |
| 302 |
% |
| 303 |
% |
| 304 |
y0=0; 0.5[x60,x60']=0.5[x10,x9]; |
| 305 |
z0'=z0+(2.5u,0); |
| 306 |
penpos60(hair,145); |
| 307 |
z60=(x0+stem,1.090x_height); |
| 308 |
z61=(x0+1.522stem,1.387x_height); |
| 309 |
z62=(x0+1.956stem,1.324x_height); |
| 310 |
z60'=(x0'+stem,1.090x_height); |
| 311 |
z61'=(x0'+1.522stem,1.387x_height); |
| 312 |
z62'=(x0'+1.956stem,1.324x_height); |
| 313 |
filldraw z60l{dir34}..z62{up}..z61{left} |
| 314 |
..z60r{dir259}--z60l & cycle; |
| 315 |
penpos60'(hair,145); |
| 316 |
filldraw z60'l{dir34}..z62'{up}..z61'{left} |
| 317 |
..z60'r{dir259}--z60'l & cycle; |
| 318 |
.endchar; |
| 319 |
|
| 320 |
.cmchar "The Schwabacher letter a with variant Umlaut"; |
| 321 |
.beginchar(oct"211",6.943u#,x_height#,0); |
| 322 |
.adjust_fit(usual_left#,usual_right#); |
| 323 |
penpos1(1.13stem,45); |
| 324 |
penpos3(stem,45); x1r=w; y1l=-apex_o; |
| 325 |
z3l=(0.337w,-apex_o); |
| 326 |
penpos2(hair,-45); z2r=z3; |
| 327 |
penpos4(hair,-45); |
| 328 |
z4-z2=whatever*dir45; x4r=x1l-hair; |
| 329 |
z5=whatever[z2r,z4r]; |
| 330 |
z5-z1l=whatever*dir130; |
| 331 |
penpos11(0.913stem,29); z11l=(0,0.396h); |
| 332 |
penpos9(1.217stem,35); |
| 333 |
z9r=(0.658w,h+apex_o); |
| 334 |
penpos8(1.13stem,50); |
| 335 |
x8r=w; z9r-z8r=whatever*dir144; |
| 336 |
penpos7(cap_hair,angle(z8l-z9l)); |
| 337 |
z7r=z8l; penpos10(cap_hair,angle(z7r-z7l)); |
| 338 |
z10l=z9l; |
| 339 |
z6=(x7,0.459h); |
| 340 |
filldraw z1r{z5-z1l}..z6{up}... |
| 341 |
z8l---z8r--z9r---z9l...z11l{down} |
| 342 |
..z3l--z3r..z11r{up}..z10r{z9r-z9l} |
| 343 |
& z10r--z7l--z5--z1l--z1r & cycle; |
| 344 |
penstroke z2e--z4e; |
| 345 |
% |
| 346 |
% |
| 347 |
% |
| 348 |
y0=x_height+2u; x0=0.5w; |
| 349 |
z0'=z0+(u,0); |
| 350 |
e_umlaut(0'); |
| 351 |
.endchar; |
| 352 |
|
| 353 |
.cmchar "The Schwabacher letter e with variant Umlaut"; |
| 354 |
.beginchar(oct"220",5.17u#,x_height#,0); |
| 355 |
.adjust_fit(usual_left#,usual_right#); |
| 356 |
penpos1(cap_hair,-90); z1r=(0.934w,0.189h); |
| 357 |
z3=(0.642w,y1r); z2=(0.343w,-apex_o); |
| 358 |
penpos4(1.391stem,42); z4l=(0,0.459h); |
| 359 |
z5=(0.175w,0.874h); |
| 360 |
penpos6(hair,-57); penpos8(hair,-57); |
| 361 |
z6l=(0.693w,h+apex_o); |
| 362 |
z8=whatever[z6l,z6r]; x8r=w; |
| 363 |
penpos10(stem,angle(z6l-z5)); z10r=z6l; |
| 364 |
penpos7(hair,-57); |
| 365 |
z8-z7=whatever*dir33; x7=x4; |
| 366 |
penpos9(whatever,angle(z8r-z7r)); |
| 367 |
z9r=z8r; |
| 368 |
z9l-z10l=whatever*(z8r-z10r); |
| 369 |
filldraw z1r--z2..z4l{up}...z5--- |
| 370 |
z6l--z6r{z5-z6l}..z4r{down}.. |
| 371 |
z3{right}..z1l{z1r-z2}--z1r & cycle; |
| 372 |
penstroke z7e--z8e; |
| 373 |
penstroke z9e--z10e; |
| 374 |
% |
| 375 |
% |
| 376 |
% |
| 377 |
y0=x_height+2u; x0=0.5w; |
| 378 |
z0'=z0+(u,0); |
| 379 |
e_umlaut(0'); |
| 380 |
.endchar; |
| 381 |
|
| 382 |
.cmchar "The Schwabacher letter o with variant Umlaut"; |
| 383 |
.beginchar(oct"231",7.849u#,x_height#,0); |
| 384 |
.adjust_fit(usual_left#,usual_right#); |
| 385 |
penpos1(hair,0); z1=(0.428w,-apex_o); |
| 386 |
penpos4(1.326stem,53); z4l=z1; |
| 387 |
penpos2(1.065stem,47); |
| 388 |
z2l=(0,0.491h); |
| 389 |
penpos6(hair,angle((w,0)-(0,h))); |
| 390 |
z6=whatever[(w,0),(0,h)]; |
| 391 |
x6=0.202w; |
| 392 |
penpos7(hair,angle((w,0)-(0,h))); |
| 393 |
z7=whatever[(w,0),(0,h)]; |
| 394 |
x7=0.798w; |
| 395 |
z6'=((0,h)--(w,0)) intersectionpoint |
| 396 |
((x2r,0)--(x2r,h)); |
| 397 |
z7'=((0,h)--(w,0)) intersectionpoint |
| 398 |
((0,y4r)--(w,y4r)); |
| 399 |
penpos5(whatever,-133); |
| 400 |
z5=whatever[z2l,z2r]; y5r=y6'; |
| 401 |
y5l=h+2apex_o; |
| 402 |
penpos3(whatever,40); |
| 403 |
x3l=x7'; x3r=w; y3r=0.563h; |
| 404 |
% |
| 405 |
% |
| 406 |
% |
| 407 |
filldraw z1r{dir45}..z3r{up}.. |
| 408 |
z5l{dir150}--z5r{right}..z3l{down} |
| 409 |
..z4r{left}..z2r{up}..z6r.. |
| 410 |
z5r{right}--z5l & z5l{z5r-z5l} |
| 411 |
..z6l..z2l{down}..z1l{dir-45}--z1r |
| 412 |
& cycle; |
| 413 |
% |
| 414 |
% |
| 415 |
% |
| 416 |
y0=x_height+2u; x0=0.5w; |
| 417 |
z0'=z0+(u,0); |
| 418 |
e_umlaut(0'); |
| 419 |
.endchar; |
| 420 |
|
| 421 |
.cmchar "The Schwabacher letter u with variant Umlaut"; |
| 422 |
.beginchar(oct"236",7.849u#,x_height#,0); |
| 423 |
.adjust_fit(usual_left#,usual_right#); |
| 424 |
penpos1(1.283stem,35); |
| 425 |
penpos2(1.283stem,35); |
| 426 |
z1l=(0.337w,-apex_o); |
| 427 |
z2-z1=whatever*dir142; x2=0.168w; |
| 428 |
penpos3(hair,-55); penpos4(hair,-55); |
| 429 |
z3r=z1; z4-z3=whatever*dir35; |
| 430 |
penpos8(stem,0); x8=0.798w=x4; |
| 431 |
z8l=whatever[z3r,z4r]; |
| 432 |
penpos10(stem,0); z10=(x2+0.5stem-apex_o,y2l); |
| 433 |
penstroke z1e--z2e; |
| 434 |
penstroke z3e--z4e; |
| 435 |
z11=(x10l,0.775h); z12=(0.478[x10l,x10r],h+apex_o); |
| 436 |
penpos13(hair,-90); x13=0; |
| 437 |
z12-z13l=whatever*dir33; |
| 438 |
filldraw z13r{z12-z13l}...z11--- |
| 439 |
z10l--z10r---(x10r,y11)...z12 |
| 440 |
& z12--z13l--z13r & cycle; |
| 441 |
% |
| 442 |
% |
| 443 |
% |
| 444 |
z5=(0.609[x8l,x8r],-apex_o); |
| 445 |
penpos9(whatever,24); |
| 446 |
y9r=h+apex_o; x9l=x8l; x9r=x8r; |
| 447 |
penpos6(eps,-90); |
| 448 |
z6r-z5=whatever*dir43; |
| 449 |
x6=w; z7=whatever[z1l,z1r]; x7=x8r; |
| 450 |
filldraw z5...z8l---z9l--z9r--- |
| 451 |
z7...z6l--z6r--z5 & cycle; |
| 452 |
% |
| 453 |
% |
| 454 |
% |
| 455 |
y0=x_height+2u; x0=0.5w; |
| 456 |
z0'=z0+(u,0); |
| 457 |
e_umlaut(0'); |
| 458 |
.endchar; |
| 459 |
|
| 460 |
.cmchar "The Schwabacher ligature ch"; |
| 461 |
.beginchar(oct"205",5.057u#+6.585u#,x_height#,0); |
| 462 |
.adjust_fit(usual_left#,usual_right#); |
| 463 |
w:=5.057u; |
| 464 |
penpos101(0.935stem,53); penpos102(whatever,34); z101r=(w,0.874h); y102r=h+apex_o; |
| 465 |
z102-z101=whatever*dir148; z102r-z101r=whatever*dir148; |
| 466 |
penpos103(hair,angle(z101l-z102l)); z103l=z102l; penpos104(1.348stem,45); |
| 467 |
z104l=(0,0.45h); z105=(0.422w,-apex_o); penpos107(hair,-57); |
| 468 |
z107r-z105=whatever*dir33; x107r=w; z106=(0.627w,0.176h); penstroke z101e--z102e; |
| 469 |
filldraw z107l{z105-z107r}..z106{left}.. z104r{up}.. z103r{z102r-z102l} & |
| 470 |
z103r--z103l & z103l{z102l-z102r}..z104l{down}..z105 & z105--z107r--z107l & cycle; |
| 471 |
z0=(w-u,0); w:=7.585u; h:=cap_height; d:=3.358u; penpos1.1(stem,0); |
| 472 |
penpos1.3(stem,0); penpos1.4(hair,90); penpos1.5(hair,-90); y1.1=y1.1'=foot; |
| 473 |
x1.1l=x1.2=x0+0.413stem; x1.1'=x1.4=x0; x1.3=x1.1; x1.5=x1.1r+0.761stem; |
| 474 |
y1.5l=cap_height+apex_o; z1.5l-z1.4r=whatever*dir17; y1.3=0.828cap_height; |
| 475 |
y1.2=0.273cap_height; filldraw z1.1'...z1.2---z1.3l... z1.4l & |
| 476 |
z1.4l--z1.4r--z1.5l--z1.5r & z1.5r{left}...z1.3r---z1.1r & z1.1r--z1.1' & cycle; |
| 477 |
z2=(x0+0.279w,-apex_o); penpos3(hair,-90); z3r=(x0+0.547w,y1.1); |
| 478 |
z4=(x0+0.428w,y1.1); z5=(x1.1r,y1.2); filldraw z1.1'--z2--z3r--z3l |
| 479 |
{z2-z3r}..z4{left}..z5{up}--z1.1-- z1.1' & cycle; penpos6(hair,-40); |
| 480 |
penpos8(1.217stem,50); penpos9(1.043stem,24); penpos10(hair,-45); z10r=(x5,-d); |
| 481 |
z9r=(x0+w,0.459x_height); z7=(x0+0.582w,x_height+apex_o); x6=x1.1; |
| 482 |
z7-z6l=whatever*dir50; z8r=z7; penpos8'(hair,-40); z8'l=z8; penstroke z6e--z8'e; |
| 483 |
penstroke z10e{dir45}..z9e{up}.. z8e{dir140}; |
| 484 |
.endchar; |
| 485 |
|
| 486 |
.cmchar "The Schwabacher ligature ck"; |
| 487 |
.beginchar(oct"206",5.057u#+5.189u#,x_height#,0); |
| 488 |
.adjust_fit(usual_left#,usual_right#); |
| 489 |
w:=5.057u; |
| 490 |
penpos101(0.935stem,53); penpos102(whatever,34); z101r=(w,0.874h); y102r=h+apex_o; |
| 491 |
z102-z101=whatever*dir148; z102r-z101r=whatever*dir148; |
| 492 |
penpos103(hair,angle(z101l-z102l)); z103l=z102l; penpos104(1.348stem,45); |
| 493 |
z104l=(0,0.45h); z105=(0.422w,-apex_o); penpos107(hair,-57); |
| 494 |
z107r-z105=whatever*dir33; x107r=w; z106=(0.627w,0.176h); penstroke z101e--z102e; |
| 495 |
filldraw z107l{z105-z107r}..z106{left}.. z104r{up}.. z103r{z102r-z102l} & |
| 496 |
z103r--z103l & z103l{z102l-z102r}..z104l{down}..z105 & z105--z107r--z107l & cycle; |
| 497 |
z0=(w-u,0); w:=6.189u; h:=cap_height; penpos1.1(stem,0); penpos1.3(stem,0); |
| 498 |
penpos1.4(hair,90); penpos1.5(hair,-90); y1.1=y1.1'=foot; x1.1l=x1.2=x0+0.413stem; |
| 499 |
x1.1'=x1.4=x0; x1.3=x1.1; x1.5=x1.1r+0.761stem; y1.5l=cap_height+apex_o; |
| 500 |
z1.5l-z1.4r=whatever*dir17; y1.3=0.828cap_height; y1.2=0.273cap_height; filldraw |
| 501 |
z1.1'...z1.2---z1.3l... z1.4l & z1.4l--z1.4r--z1.5l--z1.5r & |
| 502 |
z1.5r{left}...z1.3r---z1.1r & z1.1r--z1.1' & cycle; penpos10(1.305hair,-90); |
| 503 |
z10=(x1.2,x_height); penpos20(hair,-50); penpos3(1.087stem,40); z3r=z20l; |
| 504 |
z3-z10l=whatever*dir40; y20l=1.423x_height; penpos4(0.957stem,37); |
| 505 |
z4r=(x0+w,1.194x_height); penpos6(0.957stem,-117); |
| 506 |
z6l=(x0+w-2/3apex_o,x_height-apex_o); penpos8(whatever,-90); y8l=y6l; y8r=y6r; |
| 507 |
z7=(x0,y6r); z8l-z7=whatever*dir48; penpos5(hair,-90);z5r=(x1.1r,y6r); penstroke |
| 508 |
z10e--z20e; penstroke z5e{dir40}..z4e{up}.. z3e{dir130}; filldraw |
| 509 |
z7--z6r--z6l--z8l--z7 & cycle; penpos2.1(1.304stem,37); penpos2.2(1.304stem,37); |
| 510 |
z2.1l=(x0,foot); z2.1l-z2.2l=whatever*dir151; y2.2l=-apex_o; penpos2.3(hair,-53); |
| 511 |
z2.3r=z2.2; z2.05=(x0+2/3apex_o,2/3apex_o); penpos2.1'(1.304stem,37); |
| 512 |
z2.1'=0.5[z2.1,z2.2]+z2.05-z0; penstroke z2.2e..z2.1'e..z2.1e; |
| 513 |
penpos11(hair,angle(z2.3r-z2.3l)); z11-z2.3=whatever*dir37; x11r=x0+0.921w; |
| 514 |
penstroke z2.3e--z11e; |
| 515 |
.endchar; |
| 516 |
|
| 517 |
.cmchar "The Schwabacher ligature sz"; |
| 518 |
.beginchar(oct"032",7.9u#,1.414x_height#,3.208u#); |
| 519 |
.adjust_fit(usual_left#,usual_right#); |
| 520 |
w:=6.038u; |
| 521 |
boolean isitf; isitf:=false; long_s; |
| 522 |
penpos10(hair,-41); |
| 523 |
penpos9(hair,-41); |
| 524 |
penpos8(1.154stem,49); |
| 525 |
penpos7(1.14stem,49); |
| 526 |
penpos6(hair,-41); |
| 527 |
x6l=w+0.5u; y6r=y1.11l; |
| 528 |
z9=whatever[z6l,z6r]; |
| 529 |
z10=(x1.1,0.6x_height); |
| 530 |
z8r=z9l; z9l-z10l=whatever*dir49; |
| 531 |
z7r=z6l; penpos4(hair,-41); |
| 532 |
z6-z4=whatever*dir49; y4=0.324x_height; |
| 533 |
z5=whatever[z4r,z6r]; x5=x1.11+0.5u; |
| 534 |
penpos3(0.731stem,35); z3r=(w+0.5u,0.27x_height); |
| 535 |
penpos2(hair,-49); z2=(0.556w,-0.541d); |
| 536 |
filldraw z2r{dir41}..z3r{up}.. |
| 537 |
z5{z9-z6}--z4l--z4r{z6r-z4r}.. |
| 538 |
z3l{down}..z2l{dir221}--z2r & |
| 539 |
cycle; |
| 540 |
penstroke z4e--z6e; |
| 541 |
penstroke z10e--z9e; |
| 542 |
penstroke z7e--z8e; |
| 543 |
.endchar; |
| 544 |
|
| 545 |
.cmchar "The Schwabacher ligature sz"; |
| 546 |
.beginchar(oct"247",7.9u#,1.414x_height#,3.208u#); |
| 547 |
.adjust_fit(usual_left#,usual_right#); |
| 548 |
w:=6.038u; |
| 549 |
boolean isitf; isitf:=false; long_s; |
| 550 |
penpos10(hair,-41); |
| 551 |
penpos9(hair,-41); |
| 552 |
penpos8(1.154stem,49); |
| 553 |
penpos7(1.14stem,49); |
| 554 |
penpos6(hair,-41); |
| 555 |
x6l=w+0.5u; y6r=y1.11l; |
| 556 |
z9=whatever[z6l,z6r]; |
| 557 |
z10=(x1.1,0.6x_height); |
| 558 |
z8r=z9l; z9l-z10l=whatever*dir49; |
| 559 |
z7r=z6l; penpos4(hair,-41); |
| 560 |
z6-z4=whatever*dir49; y4=0.324x_height; |
| 561 |
z5=whatever[z4r,z6r]; x5=x1.11+0.5u; |
| 562 |
penpos3(0.731stem,35); z3r=(w+0.5u,0.27x_height); |
| 563 |
penpos2(hair,-49); z2=(0.556w,-0.541d); |
| 564 |
filldraw z2r{dir41}..z3r{up}.. |
| 565 |
z5{z9-z6}--z4l--z4r{z6r-z4r}.. |
| 566 |
z3l{down}..z2l{dir221}--z2r & |
| 567 |
cycle; |
| 568 |
penstroke z4e--z6e; |
| 569 |
penstroke z10e--z9e; |
| 570 |
penstroke z7e--z8e; |
| 571 |
.endchar; |
| 572 |
|
| 573 |
.cmchar "The Schwabacher ligature st"; |
| 574 |
.beginchar(oct"202",8.338u#,1.414x_height#,3.208u#); |
| 575 |
.adjust_fit(usual_left#,usual_right#); |
| 576 |
boolean isitf; isitf:=false; |
| 577 |
numeric w',h',d'; |
| 578 |
w':=6.038u; h':=1.414x_height; |
| 579 |
d':=3.208u; |
| 580 |
penpos1.1(2/3hair,0); |
| 581 |
z1.1=(0.313w',-d'); |
| 582 |
penpos1.2(1.283stem,0); |
| 583 |
z1.2=(0.344w',0.589h'); |
| 584 |
penpos1.4(hair,90); |
| 585 |
z1.4l=(0,y1.2-1/3stem); |
| 586 |
z1.3=(z1.1l..{dir92.5}z1.2l) |
| 587 |
intersectionpoint |
| 588 |
((0,y1.4l)--(w',y1.4l)); |
| 589 |
z1.5=(0.35w',0.761h'); |
| 590 |
penpos1.6(0.957stem,-118); |
| 591 |
z1.6l=(0.669w',h'); |
| 592 |
penpos1.7(1.174stem,-125); |
| 593 |
z1.7l=(w',0.962h'); penpos1.8(hair,-35); |
| 594 |
z1.8r=z1.7l; z1.9-z1.8l=whatever*(z1.7l-z1.7r); |
| 595 |
x1.9=0.9w'; |
| 596 |
penpos1.11(2/3stem,-90); y1.11=y1.2; |
| 597 |
x1.11=0.763w'; |
| 598 |
penpos1.12(2/3stem,-90); z1.12=z1.2; |
| 599 |
filldraw z1.1r..z1.2r{dir87} & |
| 600 |
z1.2r{dir126}..z1.5{up}..z1.6r{right} |
| 601 |
--z1.6l{left}.. |
| 602 |
z1.4r{dir218}--z1.4l{right}-- |
| 603 |
z1.3{dir272.5}..z1.1l--z1.1r & cycle; |
| 604 |
if isitf: filldraw z1.11r--z1.12r-- |
| 605 |
z1.12l--z1.5{down}...(x1.2r,y1.11l){right} |
| 606 |
---z1.11l--z1.11r & cycle; fi |
| 607 |
w':=4.2u; h':=1.27x_height; |
| 608 |
penpos1(1.152stem,35); |
| 609 |
penpos2(1.152stem,35); |
| 610 |
z0=(x1.6l-hair,0); |
| 611 |
x2l=x0+hair; z1l=(x0+1.826stem,-apex_o); |
| 612 |
z2-z1=whatever*dir148; |
| 613 |
penpos3(hair,-55); penpos4(hair,-55); |
| 614 |
z3r=z1; z4r=whatever[z1l,z1r]; |
| 615 |
x4r=x0+w'; |
| 616 |
penstroke z1e--z2e; |
| 617 |
penstroke z3e--z4e; |
| 618 |
% |
| 619 |
% |
| 620 |
% |
| 621 |
penpos5(stem,0); z5r=(x1l-apex_o,y2l); |
| 622 |
penpos6(stem,0); z6=(x5,0.811x_height); |
| 623 |
penpos7(0.826stem,-90); |
| 624 |
z7r=(x0+w',y6); z8=(x0,y6); z9=(x6r,h'); |
| 625 |
filldraw z5l--z6l--z8--z9--(x9,y7l) |
| 626 |
--z7l--z7r--z6r--z5r--z5l & cycle; |
| 627 |
% |
| 628 |
% |
| 629 |
% |
| 630 |
penpos20(hair,angle(z9-z8)); |
| 631 |
z20r=z9; penpos21(stem,angle(z9-z8)); |
| 632 |
z21r=z20l; |
| 633 |
filldraw z1.6l{right}..z21r--z21l |
| 634 |
..z1.6r{left}--z1.6l & cycle; |
| 635 |
.endchar; |
| 636 |
|
| 637 |
def long_ss (expr xx) = numeric w',h',d'; |
| 638 |
w':=6.038u; h':=1.414x_height; |
| 639 |
d':=3.208u; |
| 640 |
penpos1.1(2/3hair,0); |
| 641 |
z1.1=(xx+0.313w',-d'); |
| 642 |
penpos1.2(1.283stem,0); |
| 643 |
z1.2=(xx+0.344w',0.589h'); |
| 644 |
penpos1.4(hair,90); |
| 645 |
z1.4l=(xx,y1.2-1/3stem); |
| 646 |
z1.3=(z1.1l..{dir92.5}z1.2l) |
| 647 |
intersectionpoint |
| 648 |
((0,y1.4l)--(w',y1.4l)); |
| 649 |
z1.5=(xx+0.35w',0.761h'); |
| 650 |
penpos1.6(0.957stem,-118); |
| 651 |
z1.6l=(xx+0.669w',h'); |
| 652 |
penpos1.7(1.174stem,-125); |
| 653 |
z1.7l=(xx+w',0.962h'); penpos1.8(hair,-35); |
| 654 |
z1.8r=z1.7l; z1.9-z1.8l=whatever*(z1.7l-z1.7r); |
| 655 |
x1.9=xx+0.9w'; |
| 656 |
penpos1.11(2/3stem,-90); y1.11=y1.2; |
| 657 |
x1.11=xx+0.763w'; |
| 658 |
penpos1.12(2/3stem,-90); z1.12=z1.2; |
| 659 |
filldraw z1.1r..z1.2r{dir87} & |
| 660 |
z1.2r{dir126}..z1.5{up}..z1.6r{right} |
| 661 |
..z1.7r{right}--z1.8r--z1.8l--z1.9 |
| 662 |
& z1.9{left}..z1.6l{left}.. |
| 663 |
z1.4r{dir218}--z1.4l{right}-- |
| 664 |
z1.3{dir272.5}..z1.1l--z1.1r & cycle; |
| 665 |
if isitf: filldraw z1.11r--z1.12r-- |
| 666 |
z1.12l--z1.5{down}...(x1.2r,y1.11l){right} |
| 667 |
---z1.11l--z1.11r & cycle; fi |
| 668 |
enddef; |
| 669 |
|
| 670 |
.cmchar "The Schwabacher ligature ss"; |
| 671 |
.beginchar(oct"201",9.738u#,1.414x_height#,3.208u#); |
| 672 |
.adjust_fit(usual_left#,usual_right#-2.33u#); |
| 673 |
boolean isitf; isitf:=false; |
| 674 |
numeric w',h',d'; w':=6.038u; |
| 675 |
h':=1.414x_height; d':=3.208u; |
| 676 |
penpos1.1'(2/3hair,0); |
| 677 |
z1.1'=(0.313w',-d'); |
| 678 |
penpos1.2'(1.283stem,0); |
| 679 |
z1.2'=(0.344w',0.589h'); |
| 680 |
penpos1.4'(hair,90); |
| 681 |
z1.4'l=(0,y1.2'-1/3stem); |
| 682 |
z1.3'=(z1.1'l..{dir92.5}z1.2'l) |
| 683 |
intersectionpoint |
| 684 |
((0,y1.4'l)--(w',y1.4'l)); |
| 685 |
z1.5'=(0.35w',0.761h'); |
| 686 |
penpos1.6'(0.957stem,-118); |
| 687 |
z1.6'l=(0.669w',h'); |
| 688 |
penpos1.7'(1.174stem,-125); |
| 689 |
z1.7'l=(w',0.962h'); penpos1.8'(hair,-35); |
| 690 |
z1.8'r=z1.7'l; z1.9'-z1.8'l=whatever*(z1.7'l-z1.7'r); |
| 691 |
x1.9'=0.9w'; |
| 692 |
penpos1.11'(2/3stem,-90); y1.11'=y1.2'; |
| 693 |
x1.11'=0.763w'; |
| 694 |
penpos1.12'(2/3stem,-90); z1.12'=z1.2'; |
| 695 |
filldraw z1.1'r..z1.2'r{dir87} & |
| 696 |
z1.2'r{dir126}..z1.5'{up}..z1.6'r{right} |
| 697 |
--z1.6'l{left}.. |
| 698 |
z1.4'r{dir218}--z1.4'l{right}-- |
| 699 |
z1.3'{dir272.5}..z1.1'l--z1.1'r & cycle; |
| 700 |
if isitf: filldraw z1.11'r--z1.12'r-- |
| 701 |
z1.12'l--z1.5'{down}...(x1.2'r,y1.11'l){right} |
| 702 |
---z1.11'l--z1.11'r & cycle; fi |
| 703 |
long_ss(x1.11'-2hair); |
| 704 |
% |
| 705 |
% |
| 706 |
% |
| 707 |
z7=(z1.4r{dir38}..z1.6l{right}) |
| 708 |
intersectionpoint ((0,y1.7r)-- |
| 709 |
(w,y1.7r)); |
| 710 |
penpos8(stem,-125); z8r=z7; |
| 711 |
penstroke z1.6'e{right}..z8e; |
| 712 |
.endchar; |
| 713 |
|
| 714 |
.cmchar "The Schwabacher ligature sf"; |
| 715 |
.beginchar(oct"203",9.738u#,1.414x_height#,3.208u#); |
| 716 |
.adjust_fit(usual_left#,usual_right#-1.12u#); |
| 717 |
boolean isitf; isitf:=false; |
| 718 |
numeric w',h',d'; w':=6.038u; |
| 719 |
h':=1.414x_height; d':=3.208u; |
| 720 |
penpos1.1'(2/3hair,0); |
| 721 |
z1.1'=(0.313w',-d'); |
| 722 |
penpos1.2'(1.283stem,0); |
| 723 |
z1.2'=(0.344w',0.589h'); |
| 724 |
penpos1.4'(hair,90); |
| 725 |
z1.4'l=(0,y1.2'-1/3stem); |
| 726 |
z1.3'=(z1.1'l..{dir92.5}z1.2'l) |
| 727 |
intersectionpoint |
| 728 |
((0,y1.4'l)--(w',y1.4'l)); |
| 729 |
z1.5'=(0.35w',0.761h'); |
| 730 |
penpos1.6'(0.957stem,-118); |
| 731 |
z1.6'l=(0.669w',h'); |
| 732 |
penpos1.7'(1.174stem,-125); |
| 733 |
z1.7'l=(w',0.962h'); penpos1.8'(hair,-35); |
| 734 |
z1.8'r=z1.7'l; z1.9'-z1.8'l=whatever*(z1.7'l-z1.7'r); |
| 735 |
x1.9'=0.9w'; |
| 736 |
penpos1.11'(2/3stem,-90); y1.11'=y1.2'; |
| 737 |
x1.11'=0.763w'; |
| 738 |
penpos1.12'(2/3stem,-90); z1.12'=z1.2'; |
| 739 |
filldraw z1.1'r..z1.2'r{dir87} & |
| 740 |
z1.2'r{dir126}..z1.5'{up}..z1.6'r{right} |
| 741 |
--z1.6'l{left}.. |
| 742 |
z1.4'r{dir218}--z1.4'l{right}-- |
| 743 |
z1.3'{dir272.5}..z1.1'l--z1.1'r & cycle; |
| 744 |
if isitf: filldraw z1.11'r--z1.12'r-- |
| 745 |
z1.12'l--z1.5'{down}...(x1.2'r,y1.11'l){right} |
| 746 |
---z1.11'l--z1.11'r & cycle; fi |
| 747 |
isitf:=true; |
| 748 |
long_ss(x1.11'-2hair); |
| 749 |
% |
| 750 |
% |
| 751 |
% |
| 752 |
z7=(z1.4r{dir38}..z1.6l{right}) |
| 753 |
intersectionpoint ((0,y1.7r)-- |
| 754 |
(w,y1.7r)); |
| 755 |
penpos8(stem,-125); z8r=z7; |
| 756 |
penstroke z1.6'e{right}..z8e; |
| 757 |
.endchar; |
| 758 |
|
| 759 |
.cmchar "The Schwabacher ligature ff"; |
| 760 |
.beginchar(oct"204",9.738u#,1.414x_height#,3.208u#); |
| 761 |
.adjust_fit(usual_left#,usual_right#-1.12u#); |
| 762 |
boolean isitf; isitf:=true; |
| 763 |
numeric w',h',d'; w':=6.038u; |
| 764 |
h':=1.414x_height; d':=3.208u; |
| 765 |
penpos1.1'(2/3hair,0); |
| 766 |
z1.1'=(0.313w',-d'); |
| 767 |
penpos1.2'(1.283stem,0); |
| 768 |
z1.2'=(0.344w',0.589h'); |
| 769 |
penpos1.4'(hair,90); |
| 770 |
z1.4'l=(0,y1.2'-1/3stem); |
| 771 |
z1.3'=(z1.1'l..{dir92.5}z1.2'l) |
| 772 |
intersectionpoint |
| 773 |
((0,y1.4'l)--(w',y1.4'l)); |
| 774 |
z1.5'=(0.35w',0.761h'); |
| 775 |
penpos1.6'(0.957stem,-118); |
| 776 |
z1.6'l=(0.669w',h'); |
| 777 |
penpos1.7'(1.174stem,-125); |
| 778 |
z1.7'l=(w',0.962h'); penpos1.8'(hair,-35); |
| 779 |
z1.8'r=z1.7'l; z1.9'-z1.8'l=whatever*(z1.7'l-z1.7'r); |
| 780 |
x1.9'=0.9w'; |
| 781 |
penpos1.11'(2/3stem,-90); y1.11'=y1.2'; |
| 782 |
x1.11'=0.763w'; |
| 783 |
penpos1.12'(2/3stem,-90); z1.12'=z1.2'; |
| 784 |
filldraw z1.1'r..z1.2'r{dir87} & |
| 785 |
z1.2'r{dir126}..z1.5'{up}..z1.6'r{right} |
| 786 |
--z1.6'l{left}.. |
| 787 |
z1.4'r{dir218}--z1.4'l{right}-- |
| 788 |
z1.3'{dir272.5}..z1.1'l--z1.1'r & cycle; |
| 789 |
if isitf: filldraw z1.11'r--z1.12'r-- |
| 790 |
z1.12'l--z1.5'{down}...(x1.2'r,y1.11'l){right} |
| 791 |
---z1.11'l--z1.11'r & cycle; fi |
| 792 |
long_ss(x1.11'-2hair); |
| 793 |
% |
| 794 |
% |
| 795 |
% |
| 796 |
z7=(z1.4r{dir38}..z1.6l{right}) |
| 797 |
intersectionpoint ((0,y1.7r)-- |
| 798 |
(w,y1.7r)); |
| 799 |
penpos8(stem,-125); z8r=z7; |
| 800 |
penstroke z1.6'e{right}..z8e; |
| 801 |
.endchar; |
| 802 |
|
| 803 |
.cmchar "The Schwabacher semicolon"; |
| 804 |
.beginchar(":",5u#,x_height#,0); |
| 805 |
.adjust_fit(usual_left#,usual_right#); |
| 806 |
penpos1(0.23570*(x_height+2apex_o),45); |
| 807 |
penpos2(0.23570*(x_height+2apex_o),45); |
| 808 |
penpos3(0.23570*(x_height+2apex_o),45); |
| 809 |
penpos4(0.23570*(x_height+2apex_o),45); |
| 810 |
penpos5(0.23570*(x_height+2apex_o),45); |
| 811 |
penpos6(0.23570*(x_height+2apex_o),45); |
| 812 |
x1l=x3l=x5l=0.5w; |
| 813 |
z2r=z3l; z4r=z5l; |
| 814 |
z2-z1=whatever*dir135; |
| 815 |
z4-z3=whatever*dir135; |
| 816 |
z6-z5=whatever*dir135; |
| 817 |
y1l=-apex_o; y6r=x_height+apex_o; |
| 818 |
penstroke z1e--z2e; |
| 819 |
penstroke z5e--z6e; |
| 820 |
.endchar; |
| 821 |
|
| 822 |
.cmchar "The Schwabacher point"; |
| 823 |
.beginchar(".",5u#,x_height#,0); |
| 824 |
.adjust_fit(usual_left#,usual_right#); |
| 825 |
penpos1(0.23570*(x_height+2apex_o),45); |
| 826 |
penpos2(0.23570*(x_height+2apex_o),45); |
| 827 |
penpos3(0.23570*(x_height+2apex_o),45); |
| 828 |
penpos4(0.23570*(x_height+2apex_o),45); |
| 829 |
penpos5(0.23570*(x_height+2apex_o),45); |
| 830 |
penpos6(0.23570*(x_height+2apex_o),45); |
| 831 |
x1l=x3l=x5l=0.5w; |
| 832 |
z2r=z3l; z4r=z5l; |
| 833 |
z2-z1=whatever*dir135; |
| 834 |
z4-z3=whatever*dir135; |
| 835 |
z6-z5=whatever*dir135; |
| 836 |
y1l=-apex_o; y6r=x_height+apex_o; |
| 837 |
penstroke z1e--z2e; |
| 838 |
.endchar; |
| 839 |
|
| 840 |
.cmchar "Grave accent"; |
| 841 |
.beginchar(oct"022",9u#,min(asc_height#,2x_height#),0); |
| 842 |
.adjust_fit(0,0); |
| 843 |
if serifs: pickup crisp.nib; x1-.5stem=hround 2u; x2=2/3[x1,w-x1]; |
| 844 |
y1+.5stem=h+eps; y2=max(2/3[h,x_height],x_height+o+hair); |
| 845 |
numeric theta; theta=angle(z2-z1)+90; |
| 846 |
pos1(stem,theta); pos2(hair,theta); |
| 847 |
filldraw circ_stroke z1e--z2e; % diagonal |
| 848 |
else: pickup fine.nib; pos1(stem,0); pos2(vair,0); |
| 849 |
lft x1l=hround 1.5u; rt x2r=hround(.5w+.25u+.5vair); |
| 850 |
top y1=h; bot y2=vround 2/3[h,x_height]; |
| 851 |
filldraw stroke z1e--z2e; fi % diagonal |
| 852 |
penlabels(1,2); .endchar; |
| 853 |
|
| 854 |
.cmchar "Acute accent"; |
| 855 |
.beginchar(oct"023",9u#,min(asc_height#,2x_height#),0); |
| 856 |
italcorr h#*slant-if serifs: 1.5 fi u#; |
| 857 |
.adjust_fit(0,0); |
| 858 |
if serifs: pickup crisp.nib; x1+.5stem=hround(w-2u); x2=2/3[x1,w-x1]; |
| 859 |
y1+.5stem=h+eps; y2=max(2/3[h,x_height],x_height+o+hair); |
| 860 |
numeric theta; theta=angle(z2-z1)+90; |
| 861 |
pos1(stem,theta); pos2(hair,theta); |
| 862 |
filldraw circ_stroke z1e--z2e; % diagonal |
| 863 |
else: pickup fine.nib; pos1(stem,0); pos2(vair,0); |
| 864 |
rt x1r=hround(w-1.5u); lft x2l=hround(.5w-.25u-.5vair); |
| 865 |
top y1=h; bot y2=vround 2/3[h,x_height]; |
| 866 |
filldraw stroke z1e--z2e; fi % diagonal |
| 867 |
penlabels(1,2); .endchar; |
| 868 |
|
| 869 |
.cmchar "Hachek (check) accent"; |
| 870 |
.beginchar(oct"024",9u#,.75[x_height#,min(asc_height#,2x_height#)],0); |
| 871 |
h':=vround min(asc_height,2x_height); % height of circumflex being inverted |
| 872 |
if serifs: italcorr h#*slant+.5hair#-1.75u#; |
| 873 |
.adjust_fit(0,0); |
| 874 |
pickup crisp.nib; pos2'(.5[vair,curve],90); top y2'r=h; |
| 875 |
pos2(.5[vair,curve],90); x2=.5w; |
| 876 |
x1=w-x3=good.x 2.25u; top y1=top y3=h; y1-y2=.5(y2'-x_height); |
| 877 |
pos1(hair,angle(z2-z1)+90); pos3(hair,angle(z3-z2)+90); |
| 878 |
filldraw stroke z1e--z2e--z3e; % diagonals |
| 879 |
else: italcorr h#*slant-.5stem#+.5vair#-.75u#; |
| 880 |
.adjust_fit(0,0); |
| 881 |
pickup fine.nib; pos1(vair,0); pos3(vair,0); x1=w-x3; |
| 882 |
pos2(stem,0); bot y2=vround(1/12[x_height,h']+o); x2=.5w; |
| 883 |
top y1=top y3=h+o; lft x1l=hround(rt x2r-3.25u-.5vair); |
| 884 |
z0=whatever[z1r,z2r]=whatever[z2l,z3l]; |
| 885 |
y4l=y4r=y2; x4l=good.x .2[x2l,x2]; x4r=w-x4l; |
| 886 |
filldraw z4l--z1l--z1r--z0--z3l--z3r--z4r--cycle; fi % diagonals |
| 887 |
penlabels(0,1,2,3,4); .endchar; |
| 888 |
|
| 889 |
.cmchar "Breve accent"; |
| 890 |
.beginchar(oct"025",9u#,min(asc_height#,2x_height#),0); |
| 891 |
italcorr h#*slant+.5vair#-1.5u#; |
| 892 |
.adjust_fit(0,0); |
| 893 |
pickup crisp.nib; pos1(vair,-180); pos3(vair,0); |
| 894 |
top y1=top y3=h; lft x1r=w-rt x3r=hround(2u-.5vair); |
| 895 |
numeric mid_thickness; mid_thickness=vround 1/3[vair,stem]; |
| 896 |
pos2(mid_thickness,-90); x2=.5w; |
| 897 |
bot y2r=vround max(x_height+o+tiny,1/3[x_height,h]+o-.5mid_thickness); |
| 898 |
filldraw stroke z1e{down}...z2e{right}...{up}z3e; % stroke |
| 899 |
penlabels(1,2,3); .endchar; |
| 900 |
|
| 901 |
.cmchar "Macron (bar) accent"; |
| 902 |
numeric macron_breadth#; macron_breadth#=.2[vair#,stem#]; |
| 903 |
.beginchar(oct"026",9u#,.4[x_height#,asc_height#]+macron_breadth#,0); |
| 904 |
italcorr h#*slant-.75u#; |
| 905 |
.adjust_fit(0,0); |
| 906 |
numeric macron_breadth; macron_breadth:=Vround .2[vair,stem]; |
| 907 |
pickup if serifs: crisp.nib else: fine.nib fi; |
| 908 |
pos1(macron_breadth,90); pos2(macron_breadth,90); |
| 909 |
top y1r=top y2r=h+o; lft x1=w-rt x2=hround 1.25u; |
| 910 |
filldraw stroke z1e--z2e; % bar |
| 911 |
penlabels(1,2); .endchar; |
| 912 |
|
| 913 |
.cmchar "Scandinavian circle accent"; |
| 914 |
.beginchar(oct"027",9u#,cap_height#,0); |
| 915 |
.adjust_fit(0,0); |
| 916 |
penpos0.1(2u,45); z0.1=z0=(0.5w,1.283x_height); |
| 917 |
pickup pensquare yscaled 0.5hair xscaled 0.3[hair,stem] rotated 30; |
| 918 |
z0.2=z0.1r; z0.3=z0.1l; rt x0.4=rt x0.2; top y0.4=y0; |
| 919 |
draw z0.2..z0.3..z0.2; |
| 920 |
penlabels(1,2,3,4); .endchar; |
| 921 |
|
| 922 |
def par_s(suffix $) = |
| 923 |
h':=cap_height; w':=0.379h'; |
| 924 |
z$.1=z$+(0.5w',0.5h'); |
| 925 |
penpos$.1(stem,30); |
| 926 |
penpos$.2(2hair,0); |
| 927 |
penpos$.3(hair,-90); |
| 928 |
penpos$.4(hair,180); |
| 929 |
penpos$.5(hair,90); |
| 930 |
z$.2l=z$+(0,0.8h'); z$.3l=(x$.1,y$+h'); |
| 931 |
z$.4=z$+(0.84w',0.886h'); |
| 932 |
z$.5=(x$.4r,y$+0.826h'); |
| 933 |
penstroke z$.2e{up}..z$.3e |
| 934 |
{right} if panw: ..z$.4e{down}..z$.5e{left} fi; |
| 935 |
penpos$.6(2hair,90); z$.6l=z$.5l; |
| 936 |
if panw: |
| 937 |
filldraw z$.6r..z$.6l..z$.6r & cycle; |
| 938 |
fi |
| 939 |
penpos$.1'(stem,-150); |
| 940 |
penpos$.2'(2hair,180); |
| 941 |
penpos$.3'(hair,90); |
| 942 |
penpos$.4'(hair,0); |
| 943 |
penpos$.5'(hair,-90); |
| 944 |
z$.1=z$.1'; |
| 945 |
z$.2'r=z$+(w',0.2h'); z$.3'r=(x$.1,y$); |
| 946 |
z$.4'=z$+(0.16w',0.114h'); |
| 947 |
z$.5'=(x$.4'r,y$+0.174h'); |
| 948 |
penpos$.2''(2hair,0); z$.2''=z$.2'; |
| 949 |
z$.25=(z$.2''{up}..z$.2{up}) |
| 950 |
intersectionpoint (z$+(0,0.5h')-- |
| 951 |
z$+(w',0.5h')); |
| 952 |
penpos$.25(stem,30); |
| 953 |
penstroke z$.2''e{up}..z$.25e.. |
| 954 |
z$.2e{up}; |
| 955 |
penstroke z$.2'e{down}..z$.3'e |
| 956 |
{left} if katw: ..z$.4'e{up}..z$.5'e{right} fi; |
| 957 |
penpos$.6'(2hair,-90); z$.6'l=z$.5'l; |
| 958 |
if katw: |
| 959 |
filldraw z$.6'r..z$.6'l..z$.6'r & cycle; |
| 960 |
fi |
| 961 |
enddef; |
| 962 |
|
| 963 |
.cmchar "The Fraktur paragraph sign"; |
| 964 |
.beginchar(oct"074",7.4u#,cap_height#,3.167u#); |
| 965 |
.adjust_fit(0.05alpha*w#+usual_left#,0.05alpha*w#+usual_right#); |
| 966 |
boolean panw, katw; |
| 967 |
panw:=true; katw:=false; |
| 968 |
z0=(0.17h,0); par_s(0); |
| 969 |
panw:=false; katw:=true; |
| 970 |
z1=(0,-0.3h); par_s(1); |
| 971 |
.endchar; |
| 972 |
|
| 973 |
.cmchar "The Fraktur paragraph sign"; |
| 974 |
.beginchar(oct"244",7.4u#,cap_height#,3.167u#); |
| 975 |
.adjust_fit(0.05alpha*w#+usual_left#,0.05alpha*w#+usual_right#); |
| 976 |
boolean panw, katw; |
| 977 |
panw:=true; katw:=false; |
| 978 |
z0=(0.17h,0); par_s(0); |
| 979 |
panw:=false; katw:=true; |
| 980 |
z1=(0,-0.3h); par_s(1); |
| 981 |
.endchar; |
| 982 |
|
| 983 |
.cmchar "Cedilla accent"; |
| 984 |
.beginchar(oct"030",8u#,0,.875desc_depth#); |
| 985 |
.adjust_fit(0,0); |
| 986 |
x1=.5w+.5u; |
| 987 |
if serifs: pickup crisp.nib; pos1(eps,0); pos2(stem,0); |
| 988 |
pos3(vair,90); pos4(stem,0); pos5(vair,-90); |
| 989 |
x1=x2; z3l=z2l; x4=x2+1.5u; x5=x3-1.5u; |
| 990 |
bot y1=-o; bot y2=-vround 2/7d-o; y4=.5[y3,y5]; bot y5=-d-o; |
| 991 |
filldraw stroke z1e--z2e; % stem |
| 992 |
filldraw stroke z3e{right}...z4e{down}...{left}z5e; % hook |
| 993 |
else: pickup fine.nib; pos1(vair,0); top y1=-o-2; |
| 994 |
pos2(.5[vair,stem],0); bot y2=-d-o; x2=x1-1.25u; |
| 995 |
filldraw stroke z1e--z2e; fi % diagonal |
| 996 |
penlabels(1,2,3,4,5); .endchar; |
| 997 |
|
| 998 |
.cmchar "Circumflex (hat) accent"; |
| 999 |
.beginchar(oct"136",9u#,min(asc_height#,2x_height#),0); |
| 1000 |
if serifs: italcorr .5[x_height#,h#]*slant+.5hair#-1.75u#; |
| 1001 |
.adjust_fit(0,0); |
| 1002 |
pickup crisp.nib; pos2(.5[vair,curve],90); top y2r=h; x2=.5w; |
| 1003 |
x1=w-x3=good.x 2.25u; y1=y3=.5[x_height,y2]; |
| 1004 |
pos1(hair,angle(z2-z1)+90); pos3(hair,angle(z3-z2)+90); |
| 1005 |
filldraw stroke z1e--z2e--z3e; % diagonals |
| 1006 |
else: italcorr 2/3[x_height#,h#]*slant-.5stem#+.5vair#-.75u#; |
| 1007 |
.adjust_fit(0,0); |
| 1008 |
pickup fine.nib; pos1(vair,0); pos3(vair,0); x1=w-x3; |
| 1009 |
pos2(stem,0); top y2=h; x2=.5w; bot y1=bot y3=vround 2/3[h,x_height]-eps; |
| 1010 |
lft x1l=hround(rt x2r-3.25u-.5vair); % same slope as in the acute accent |
| 1011 |
z0=whatever[z1r,z2r]=whatever[z2l,z3l]; |
| 1012 |
y4l=y4r=y2; x4l=good.x .2[x2l,x2]; x4r=w-x4l; |
| 1013 |
filldraw z4l--z1l--z1r--z0--z3l--z3r--z4r--cycle; fi % diagonals |
| 1014 |
penlabels(0,1,2,3,4); .endchar; |
| 1015 |
|
| 1016 |
iff ligs>0: .cmchar "Dot accent"; |
| 1017 |
numeric dot_diam#; dot_diam#=max(dot_size#,cap_curve#); |
| 1018 |
.beginchar(oct"137",5u#,min(asc_height#,10/7x_height#+.5dot_diam#),0); |
| 1019 |
define_whole_blacker_pixels(dot_diam); |
| 1020 |
italcorr h#*slant+.5dot_diam#-2u#; |
| 1021 |
.adjust_fit(0,0); |
| 1022 |
pickup tiny.nib; pos1(dot_diam,0); pos2(dot_diam,90); |
| 1023 |
x1=x2=.5w; top y2r=h+1; |
| 1024 |
if bot y2l<x_height+o+slab: y2l:=min(y2r-eps,x_height+o+slab+.5tiny); fi |
| 1025 |
y1=.5[y2l,y2r]; dot(1,2); % dot |
| 1026 |
penlabels(1,2); .endchar; |
| 1027 |
|
| 1028 |
iff ligs>0: .cmchar "Long Hungarian umlaut accent"; |
| 1029 |
.beginchar(oct"175",9u#,min(asc_height#,2x_height#),0); |
| 1030 |
italcorr h#*slant-u#; |
| 1031 |
.adjust_fit(0,0); |
| 1032 |
x3-x1=x4-x2=hround 3u; y3=y1; y4=y2; |
| 1033 |
if serifs: pickup crisp.nib; x3+.5stem=hround(w-1.5u); x2=2.5u; |
| 1034 |
y1+.5stem=h; y2=max(2/3[h,x_height],x_height+o+hair); |
| 1035 |
numeric theta; theta=angle(z2-z1)+90; |
| 1036 |
pos1(stem,theta); pos2(hair,theta); |
| 1037 |
pos3(stem,theta); pos4(hair,theta); |
| 1038 |
filldraw circ_stroke z1e--z2e; % left diagonal |
| 1039 |
filldraw circ_stroke z3e--z4e; % right diagonal |
| 1040 |
else: pickup fine.nib; pos1(stem,0); pos2(vair,0); |
| 1041 |
pos3(stem,0); pos4(vair,0); |
| 1042 |
rt x3r=hround(w-1.5u); lft x4l=hround(.5w+u-.5vair); |
| 1043 |
top y1=h; bot y2=vround 2/3[h,x_height]; |
| 1044 |
filldraw stroke z1e--z2e; % left diagonal |
| 1045 |
filldraw stroke z3e--z4e; fi % right diagonal |
| 1046 |
penlabels(1,2,3,4); .endchar; |
| 1047 |
|
| 1048 |
.cmchar "Tilde (squiggle) accent"; |
| 1049 |
.beginchar(oct"176",9u#,min(asc_height#,10/7x_height#+.5dot_size#),0); |
| 1050 |
italcorr h#*slant-u#; |
| 1051 |
.adjust_fit(0,0); |
| 1052 |
if serifs: numeric theta; theta=angle(1/6(6u-vair),1/4(h-x_height)); |
| 1053 |
pickup crisp.nib; numeric mid_width; mid_width=.4[vair,stem]; |
| 1054 |
pos1(vair,theta+90); pos2(vair,theta+90); |
| 1055 |
pos3(vair,theta+90); pos4(vair,theta+90); |
| 1056 |
z2-z1=z4-z3=(mid_width-crisp)*dir theta; |
| 1057 |
lft x1r=w-rt x4l=hround 1.5u; top y4r=h; |
| 1058 |
bot y1l=vround(bot y1l+min(2/3[x_height,h],y3l-.25vair)-top y1r); |
| 1059 |
pair delta; ypart delta=3(y3l-y1l); delta=whatever*dir theta; |
| 1060 |
filldraw z1l..controls(z1l+delta)and(z3l-delta)..z3l..z4l |
| 1061 |
--z4r..controls(z4r-delta)and(z2r+delta)..z2r..z1r--cycle; % stroke |
| 1062 |
else: pickup fine.nib; pos1(vair,180); pos2(vair,90); |
| 1063 |
pos3(.5[vair,slab],90); pos4(vair,90); pos5(vair,180); |
| 1064 |
lft x1r=w-rt x5l=hround 1.5u; x2-x1=x3-x2=x4-x3=x5-x4; |
| 1065 |
bot y1=bot y4l=vround(.75[x_height,h]-vair); |
| 1066 |
top y2r=top y5=h; y3=.5[y2,y4]; |
| 1067 |
filldraw stroke z1e{up}...z2e{right}..z3e..{right}z4e...{up}z5e; fi % stroke |
| 1068 |
penlabels(1,2,3,4,5); .endchar; |
| 1069 |
|
| 1070 |
.cmchar "The Schwabacher hyphen"; |
| 1071 |
.beginchar(oct"055",4u#,x_height#,0); |
| 1072 |
.adjust_fit(usual_left#,usual_right#); |
| 1073 |
penpos1(2hair,-90); |
| 1074 |
penpos2(2hair,-90); |
| 1075 |
penpos3(2hair,-90); |
| 1076 |
penpos4(2hair,-90); penpos5(2hair,-90); |
| 1077 |
z2-z1=whatever*dir35; |
| 1078 |
z4-z3=whatever*dir35; |
| 1079 |
z3r=z5l; z5r=z1l; x1=0; |
| 1080 |
x2=x4=w; |
| 1081 |
y1r=foot; |
| 1082 |
penstroke z1e--z2e; |
| 1083 |
penstroke z3e--z4e; |
| 1084 |
.endchar; |
| 1085 |
|
| 1086 |
.cmchar "Opening Gaensefuesschen"; |
| 1087 |
.beginchar(oct"134",7u#+max(2u#,dot_size#),asc_height#,0); |
| 1088 |
italcorr asc_height#*slant+dot_size#-4.1u#; |
| 1089 |
.adjust_fit(0,0); |
| 1090 |
x2+.5dot_size=hround(w-.6u); y2-.5dot_size=0; |
| 1091 |
x2-x1=hround(1.5u+max(2u,dot_size)); y2=y1; |
| 1092 |
comma(1,a,dot_size,.25u,comma_depth); % left dot and tail |
| 1093 |
comma(2,b,dot_size,.25u,comma_depth); % right dot and tail |
| 1094 |
penlabels(1,2); .endchar; |
| 1095 |
|
| 1096 |
|
| 1097 |
.cmchar "Closing Gaensefuesschen"; |
| 1098 |
.beginchar(oct"042",7u#+max(2u#,dot_size#),asc_height#,0); |
| 1099 |
italcorr asc_height#*slant-.1u#; |
| 1100 |
.adjust_fit(0,0); |
| 1101 |
x1-.5dot_size=hround .6u; |
| 1102 |
y1+.5dot_size=h-comma_depth; |
| 1103 |
x2-x1=hround(1.5u+max(2u,dot_size)); y2=y1; |
| 1104 |
ammoc(1,a,dot_size,.25u,comma_depth); % left dot and tail |
| 1105 |
ammoc(2,b,dot_size,.25u,comma_depth); % right dot and tail |
| 1106 |
penlabels(1,2); |
| 1107 |
.endchar; |
| 1108 |
|
| 1109 |
.cmchar "En dash"; |
| 1110 |
.beginchar(oct"173",9u#,x_height#,0); |
| 1111 |
italcorr .61803x_height#*slant+.5u#; |
| 1112 |
.adjust_fit(0,0); |
| 1113 |
pickup crisp.nib; pos1(vair,90); pos2(vair,90); |
| 1114 |
top y1r=top y2r=vround(.61803h+.5vair); lft x1=-eps; rt x2=w+eps; |
| 1115 |
filldraw stroke z1e--z2e; % bar |
| 1116 |
penlabels(1,2); .endchar; |
| 1117 |
|
| 1118 |
.cmchar "Em dash"; |
| 1119 |
.beginchar(oct"174",18u#,x_height#,0); |
| 1120 |
italcorr .61803x_height#*slant+.5u#; |
| 1121 |
.adjust_fit(letter_fit#,letter_fit#); |
| 1122 |
pickup crisp.nib; pos1(vair,90); pos2(vair,90); |
| 1123 |
top y1r=top y2r=vround(.61803h+.5vair); lft x1=-eps; rt x2=w+eps; |
| 1124 |
filldraw stroke z1e--z2e; % bar |
| 1125 |
penlabels(1,2); .endchar; |
| 1126 |
|
| 1127 |
.cmchar "Hash mark (number sign)"; |
| 1128 |
if monospace: compute_spread(.6x_height#,.7x_height#); |
| 1129 |
else: compute_spread(.45x_height#,.55x_height#); fi |
| 1130 |
.beginchar("#",15u#,asc_height#,asc_depth#); |
| 1131 |
italcorr (math_axis#+.5(spread#+rule_thickness#))*slant-.5u#; |
| 1132 |
.adjust_fit(0,0); |
| 1133 |
pickup rule.nib; lft x1=hround u-eps; x3=x1; x2=x4=w-x1; |
| 1134 |
y1=y2; y3=y4; y1-y3=spread; .5[y1,y3]=math_axis; |
| 1135 |
draw z1--z2; % upper bar |
| 1136 |
draw z3--z4; % lower bar |
| 1137 |
lft x6=hround 3u; rt x7=hround(w-3u); x5-x6=x7-x8; |
| 1138 |
x8=good.x if monospace: .6 else: .5 fi\\w; |
| 1139 |
top y5=top y7=h+eps; bot y6=bot y8=-d-eps; |
| 1140 |
y15=y1; z15=whatever[z5,z6]; y36=y3; z36=whatever[z5,z6]; |
| 1141 |
y27=y2; z27=whatever[z7,z8]; y48=y4; z48=whatever[z7,z8]; |
| 1142 |
draw z5--if x5>x6+1:(good.x(x15+.5),y1)--(good.x(x15-.5),y1) |
| 1143 |
--(good.x(x36+.5),y3)--(good.x(x36-.5),y3)--fi\\z6; % left diagonal |
| 1144 |
draw z7--if x7>x8+1:(good.x(x27+.5),y2)--(good.x(x27-.5),y2) |
| 1145 |
--(good.x(x48+.5),y4)--(good.x(x48-.5),y4)--fi\\z8; % right diagonal |
| 1146 |
labels(1,2,3,4,5,6,7,8,15,27,36,48); .endchar; |
| 1147 |
|
| 1148 |
.cmchar "Per cent sign"; |
| 1149 |
.beginchar("%",9u#+max(6u#,2fudge*(hair#+stem#)), |
| 1150 |
body_height#,body_height#-asc_height#); |
| 1151 |
italcorr if hefty: .4asc_height#*slant-.5u# else: h#*slant-u# fi; |
| 1152 |
.adjust_fit(0,0); pickup fine.nib; |
| 1153 |
numeric left_curve,right_curve; |
| 1154 |
left_curve=hround 5/6[fudged.hair,fudged.stem]; |
| 1155 |
right_curve=max(fine.breadth,hround(fudged.hair if hefty:-2stem_corr fi)); |
| 1156 |
pos1(vair,90); pos2(left_curve,180); pos3(vair,270); pos4(right_curve,360); |
| 1157 |
top y1r=h; lft x2r=hround u; rt x4r=hround(.5w-1.5u); |
| 1158 |
bot y3r=floor(if monospace: .7 else: .5 fi\\ asc_height); |
| 1159 |
x1=x3=.5[x2,x4]; y2=y4=.5[y1,y3]; |
| 1160 |
filldraw stroke pulled_super_arc.e(1,2)(superpull) |
| 1161 |
& pulled_super_arc.e(2,3)(superpull); % left half of upper bowl |
| 1162 |
filldraw stroke super_arc.e(3,4) & super_arc.e(4,1); % right half of upper bowl |
| 1163 |
pos5(vair,90); pos6(left_curve,180); pos7(vair,270); pos8(right_curve,360); |
| 1164 |
bot y7r=-d; rt x8r=hround(w-u); lft x6r=hround(.5w+1.5u); |
| 1165 |
top y5r=vround(if monospace: .3 else: .5 fi\\ asc_height); |
| 1166 |
x5=x7=.5[x6,x8]; y6=y8=.5[y5,y7]; |
| 1167 |
filldraw stroke pulled_super_arc.e(5,6)(superpull) |
| 1168 |
& pulled_super_arc.e(6,7)(superpull); % left half of lower bowl |
| 1169 |
filldraw stroke super_arc.e(7,8) & super_arc.e(8,5); % right half of lower bowl |
| 1170 |
pickup rule.nib; top y9=h; bot y10=-d; |
| 1171 |
if hefty: x9=good.x(x5-eps); x10=good.x(x1+eps); |
| 1172 |
draw z9--z10; % diagonal |
| 1173 |
else: rt x9=hround(w-2.5u); lft x10=hround 2.5u; draw z9--z10; % diagonal |
| 1174 |
pickup fine.nib; pos9(rule_thickness,angle(z9-z10)+90); |
| 1175 |
pos11(vair,angle(z1r-z4r)-90); pos12(vair,angle(z9-z10)+90); |
| 1176 |
path p; p=super_arc.r(1,4); z11r=point 2/3 of p; z12r=z9r; |
| 1177 |
filldraw stroke z11e{direction 2/3 of p}...{z9-z10}z12e; fi % link |
| 1178 |
penlabels(1,2,3,4,5,6,7,8,9,10,11,12); .endchar; |
| 1179 |
|
| 1180 |
.cmchar "Apostrophe"; |
| 1181 |
.beginchar("'",5u#,asc_height#,0); |
| 1182 |
italcorr asc_height#*slant+.5dot_size#-2u#; |
| 1183 |
.adjust_fit(0,0); |
| 1184 |
x1-.5dot_size=hround(.5w-.5dot_size); y1+.5dot_size=h; |
| 1185 |
if monospace: comma(1,a,dot_size,.28u,vround 1.5comma_depth); % large comma |
| 1186 |
else: comma(1,a,dot_size,.25u,comma_depth); fi % comma with increased jut |
| 1187 |
penlabels(1); .endchar; |
| 1188 |
|
| 1189 |
.cmchar "Left parenthesis"; |
| 1190 |
.beginchar("(",7u# if monospace: -u# fi,body_height#,paren_depth#); |
| 1191 |
italcorr body_height#*slant-.5u#; |
| 1192 |
.adjust_fit(0,0); pickup fine.nib; |
| 1193 |
pos1(vair,0); pos2(.75[hair,stem],0); pos3(vair,0); |
| 1194 |
rt x1r=rt x3r=hround(w-u); lft x2l=hround(x1-4u if monospace: +4/3u fi); |
| 1195 |
top y1=h; y2=.5[y1,y3]=math_axis; |
| 1196 |
filldraw stroke z1e{3(x2e-x1e),y2-y1}...z2e |
| 1197 |
...{3(x3e-x2e),y3-y2}z3e; % arc |
| 1198 |
penlabels(1,2,3); .endchar; |
| 1199 |
|
| 1200 |
.cmchar "Right parenthesis"; |
| 1201 |
.beginchar(")",7u# if monospace: -u# fi,body_height#,paren_depth#); |
| 1202 |
italcorr math_axis#*slant-.5u#; |
| 1203 |
.adjust_fit(0,0); pickup fine.nib; |
| 1204 |
pos1(vair,0); pos2(.75[hair,stem],0); pos3(vair,0); |
| 1205 |
lft x1l=lft x3l=hround u; rt x2r=hround(x1+4u if monospace: -4/3u fi); |
| 1206 |
top y1=h; y2=.5[y1,y3]=math_axis; |
| 1207 |
filldraw stroke z1e{3(x2e-x1e),y2-y1}...z2e |
| 1208 |
...{3(x3e-x2e),y3-y2}z3e; % arc |
| 1209 |
penlabels(1,2,3); .endchar; |
| 1210 |
|
| 1211 |
.cmchar "Asterisk"; |
| 1212 |
.beginchar("*",9u#, |
| 1213 |
if low_asterisk:math_axis#+.5x_height# else: body_height# fi,0); |
| 1214 |
italcorr h#*slant-.75u#; |
| 1215 |
.adjust_fit(0,0); |
| 1216 |
numeric ast_flare; ast_flare=hround .7[thin_join,stem]; |
| 1217 |
x0=.5w; y0=h-.5x_height; |
| 1218 |
for d=-150 step 60 until 150: z[d]=z0+.5dir d xscaled 7.5u yscaled x_height; |
| 1219 |
numeric theta; theta=angle(z[d]-z0); |
| 1220 |
fill z0+.5(0,-thin_join)rotated theta |
| 1221 |
---z[d]+.5(-ast_flare,-ast_flare)rotated theta |
| 1222 |
..z[d]..z[d]+.5(-ast_flare,ast_flare)rotated theta |
| 1223 |
---z0+.5(0,thin_join)rotated theta--cycle; endfor % diagonal at angle |d| |
| 1224 |
labels(0,[-150],[-90],[-30],30,90,150); .endchar; |
| 1225 |
|
| 1226 |
.cmchar "Plus sign"; |
| 1227 |
beginarithchar("+"); pickup rule.nib; |
| 1228 |
x1=x2=good.x .5w; top y1=h+eps; .5[y1,y2]=math_axis; |
| 1229 |
lft x3=hround u-eps; x4=w-x3; y3=y4=math_axis; |
| 1230 |
draw z1--z2; % stem |
| 1231 |
draw z3--z4; % crossbar |
| 1232 |
labels(1,2,3,4); .endchar; |
| 1233 |
|
| 1234 |
.cmchar "Virgule (slash)"; |
| 1235 |
.beginchar("/",9u#,body_height#,paren_depth#); |
| 1236 |
italcorr body_height#*slant-.5u#; |
| 1237 |
.adjust_fit(0,0); pickup rule.nib; |
| 1238 |
rt x1=hround(w-u)+eps; top y1=h+eps; |
| 1239 |
lft x2=hround u-eps; bot y2=-d-eps; |
| 1240 |
draw z1--z2; % diagonal |
| 1241 |
penlabels(1,2); .endchar; |
| 1242 |
|
| 1243 |
.cmchar "Equals sign"; |
| 1244 |
compute_spread(.45x_height#,.55x_height#); |
| 1245 |
.beginchar("=",14u#,v_center(spread#+rule_thickness#)); |
| 1246 |
italcorr h#*slant-.5u#; |
| 1247 |
.adjust_fit(0,0); pickup rule.nib; |
| 1248 |
lft x1=hround u-eps; x3=x1; x2=x4=w-x1; |
| 1249 |
y1=y2; y3=y4; y1-y3=spread; .5[y1,y3]=math_axis; |
| 1250 |
draw z1--z2; % upper bar |
| 1251 |
draw z3--z4; % lower bar |
| 1252 |
labels(1,2,3,4); .endchar; |
| 1253 |
|
| 1254 |
.cmchar "Left bracket"; |
| 1255 |
numeric wd#; wd#=max(5u#,4.5u#+.5if hefty:stem# else:rule_thickness# fi); |
| 1256 |
.beginchar("[",wd#,body_height#,paren_depth#); |
| 1257 |
italcorr body_height#*slant; |
| 1258 |
.adjust_fit(0,0); |
| 1259 |
numeric top_thickness,side_thickness; |
| 1260 |
if hefty: top_thickness=vair; |
| 1261 |
side_thickness=max(crisp.breadth,stem-2stem_corr); |
| 1262 |
else: top_thickness=side_thickness=rule_thickness; fi; |
| 1263 |
pickup crisp.nib; pos1(side_thickness,0); pos2(side_thickness,0); |
| 1264 |
top y1=h; bot y2=-d; lft x1l=lft x2l=hround(2.5u-.5side_thickness)-1-eps; |
| 1265 |
filldraw stroke z1e--z2e; % stem |
| 1266 |
pos3(top_thickness,90); pos4(top_thickness,90); |
| 1267 |
pos5(top_thickness,90); pos6(top_thickness,90); |
| 1268 |
x3=x5=x1l; rt x4=rt x6=ceiling(w-.4u)+eps; y3r=y4r=y1; y5l=y6l=y2; |
| 1269 |
filldraw stroke z3e--z4e; % upper bar |
| 1270 |
filldraw stroke z5e--z6e; % lower bar |
| 1271 |
penlabels(1,2,3,4,5,6); .endchar; |
| 1272 |
|
| 1273 |
.cmchar "Right bracket"; |
| 1274 |
numeric wd#; wd#=max(5u#,4.5u#+.5if hefty:stem# else:rule_thickness# fi); |
| 1275 |
.beginchar("]",wd#,body_height#,paren_depth#); |
| 1276 |
italcorr body_height#*slant-2u#+.5if hefty:stem# else:rule_thickness# fi; |
| 1277 |
.adjust_fit(0,0); |
| 1278 |
numeric top_thickness,side_thickness; |
| 1279 |
if hefty: top_thickness=vair; |
| 1280 |
side_thickness=max(crisp.breadth,stem-2stem_corr); |
| 1281 |
else: top_thickness=side_thickness=rule_thickness; fi; |
| 1282 |
pickup crisp.nib; pos1(side_thickness,0); pos2(side_thickness,0); |
| 1283 |
top y1=h; bot y2=-d; rt x1r=rt x2r=hround(w-2.5u+.5side_thickness)+1+eps; |
| 1284 |
filldraw stroke z1e--z2e; % stem |
| 1285 |
pos3(top_thickness,90); pos4(top_thickness,90); |
| 1286 |
pos5(top_thickness,90); pos6(top_thickness,90); |
| 1287 |
x3=x5=x1r; lft x4=lft x6=floor .4u-eps; y3r=y4r=y1; y5l=y6l=y2; |
| 1288 |
filldraw stroke z3e--z4e; % upper bar |
| 1289 |
filldraw stroke z5e--z6e; % lower bar |
| 1290 |
penlabels(1,2,3,4,5,6); .endchar; |
| 1291 |
|
| 1292 |
.cmchar "Reverse apostrophe"; |
| 1293 |
.beginchar("`",5u#,asc_height#,0); |
| 1294 |
italcorr asc_height#*slant+.5dot_size#-2u#; |
| 1295 |
.adjust_fit(0,0); |
| 1296 |
x1-.5dot_size=hround(.5w-.5dot_size); y1+.5dot_size=h-comma_depth; |
| 1297 |
if monospace: ammoc(1,a,dot_size,.28u,vround 1.5comma_depth); % large ammoc |
| 1298 |
else: ammoc(1,a,dot_size,.25u,comma_depth); fi % normal ammoc |
| 1299 |
penlabels(1); .endchar; |
| 1300 |
|