| 1 |
%% |
| 2 |
%% This is file `pgothu.mf', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% pgothic.dtx (with options: `maj') |
| 8 |
%% |
| 9 |
%% Copyright 1999 Peter R. Wilson |
| 10 |
%% |
| 11 |
%% This program is provided under the terms of the |
| 12 |
%% LaTeX Project Public License distributed from CTAN |
| 13 |
%% archives in directory macros/latex/base/lppl.txt. |
| 14 |
%% |
| 15 |
%% Author: Peter Wilson (CUA) |
| 16 |
%% now at: [email protected] |
| 17 |
%% |
| 18 |
|
| 19 |
cmchar "PGOTH letter A"; |
| 20 |
beginchar("A", 2cap_sb#+hstretch*((7)*stem_width#), |
| 21 |
caprat*x_height#, 0); |
| 22 |
adjust_fit(0,0); |
| 23 |
pcshiftx := cap_sb; |
| 24 |
numeric n[]; |
| 25 |
numeric st; st := stem_width; |
| 26 |
path pth[]; |
| 27 |
pair pr[]; |
| 28 |
pickup quill; |
| 29 |
%% stem |
| 30 |
rt x1 = w - pcshiftx - wided*st; y1 = h; |
| 31 |
x2 = x1; y2 = 0; |
| 32 |
z12 = 1/2[z1,z2]; |
| 33 |
draw_upcurlstem(1,12); |
| 34 |
draw_downdiamondstem(12,2,wided,widedmin,diawd,diang); |
| 35 |
%% leg |
| 36 |
x21 = x1; top y21 = h; |
| 37 |
lft x22 = pcshiftx + widedmin*st; bot y22 = 0; |
| 38 |
draw z21--z22; |
| 39 |
draw (x22-widedmin*st, y22)--(x22+wided*st, y22); |
| 40 |
%% bar |
| 41 |
z13 = z12; |
| 42 |
y16 = y13; z16 = whatever[z21,z22]; |
| 43 |
x14 = 1/2[x13,x16]; (z13-z14) = whatever*pdir; |
| 44 |
pickup threequarterquill; |
| 45 |
draw z13--z14; |
| 46 |
draw z14{ppdir}..{left}z16; |
| 47 |
ductus:=false; |
| 48 |
penlabels(1,2,3,4,5,6,7,8,11,12,13,14,15,100); |
| 49 |
endchar; % end "A" |
| 50 |
|
| 51 |
cmchar "PGOTH letter B"; |
| 52 |
beginchar("B", 2cap_sb#+hstretch*((7)*stem_width#), |
| 53 |
caprat*x_height#, 0); |
| 54 |
adjust_fit(0,0); |
| 55 |
numeric n[]; |
| 56 |
numeric st; st := stem_width; |
| 57 |
path pth[]; |
| 58 |
pcshiftx := cap_sb; |
| 59 |
pickup quill; |
| 60 |
%% stem |
| 61 |
lft x1 = pcshiftx; bot y1 = 0; |
| 62 |
n1 := top y1; |
| 63 |
lft x99 = 2/5w; bot y99 = 12/16h; |
| 64 |
rt x12 = lft x99; top y12 = bot y99; |
| 65 |
x14 = x1; y14 = y12; |
| 66 |
x13 = 1/2[x14,x12]; y13 = 1/2[y12,(h-n1/2)]; |
| 67 |
pth1 := z1{pdir}..z12..{left}z13..{-pdir}z14; |
| 68 |
%% stem decoration |
| 69 |
z101=z99; |
| 70 |
z181 = (x99,-h); |
| 71 |
z102 = (x101,y1); |
| 72 |
z112 = 1/2[z101,z102]; |
| 73 |
lft x8 = x112; y8 = y112; |
| 74 |
%% lower bowl |
| 75 |
x113 = w-pcshiftx; |
| 76 |
(z113-z112) = whatever*(pdir); |
| 77 |
rt x5 = w-pcshiftx; y5 = 6/16y113; |
| 78 |
x3 = 10/16[x1,x5]; y3 = y1; |
| 79 |
z7 = 2/16[z8,z113]; |
| 80 |
pth2 := z1{pdir}..{right}z3..{up}z5..{-pdir}z7--z8; |
| 81 |
|
| 82 |
%% upper bowl |
| 83 |
x10 = 1/2[x7,x5]; y10 = 1/2[y12,y99]; |
| 84 |
x19 = 1/2[x99,x10]; top y19 = h; |
| 85 |
pth3 := z8--z7{pdir}..{up}z10..{left}z19..{-pdir}z99; |
| 86 |
%% angled decoration |
| 87 |
|
| 88 |
z105 = 1/4[z102,z112]; |
| 89 |
x185 = 2w; |
| 90 |
(z185-z105) = whatever*(pdir); |
| 91 |
z106 = (z105--z185) intersectionpoint pth2; |
| 92 |
|
| 93 |
z107 = 1/4[z112,z101]; |
| 94 |
x187 = 2w; |
| 95 |
(z187-z107) = whatever*(pdir); |
| 96 |
z108 = (z107--z187) intersectionpoint pth3; |
| 97 |
|
| 98 |
if ductus: |
| 99 |
pickup stylus; |
| 100 |
fi |
| 101 |
draw pth1; |
| 102 |
draw pth2; |
| 103 |
draw pth3; |
| 104 |
pickup stylus; |
| 105 |
draw z101--z102; |
| 106 |
draw z105--z106; draw z107--z108; |
| 107 |
|
| 108 |
ductus:=false; |
| 109 |
penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,19,99,100); |
| 110 |
endchar; % end "B" |
| 111 |
|
| 112 |
cmchar "PGOTH letter C"; |
| 113 |
beginchar("C", 2cap_sb#+hstretch*((5)*stem_width#), |
| 114 |
caprat*x_height#, 0); |
| 115 |
adjust_fit(0,0); |
| 116 |
numeric n[]; |
| 117 |
numeric st; st := stem_width; |
| 118 |
path pth[]; |
| 119 |
pcshiftx := cap_sb; |
| 120 |
pickup quill; |
| 121 |
%% bowl |
| 122 |
n1:=w-2pcshiftx; % actual letter width |
| 123 |
n2:=6/5w-2pcshiftx; % width of full bowl |
| 124 |
x1=pcshiftx + 1/2n1; top y1 = h; |
| 125 |
lft x2 = pcshiftx; y2 = 1/2h; |
| 126 |
x3 = x1; bot y3 = 0; |
| 127 |
rt x4 = w-pcshiftx; y4 = 1/4h; |
| 128 |
x24 = x4; y24 = 3/4h; |
| 129 |
pth1 := z24..z1{left}..z2{down}..z3{right}..z4{pdir}; |
| 130 |
%% decoration |
| 131 |
z101 = (x1,y1); z102 = (x1,y3); |
| 132 |
z103 = (x1+perpdec, y1); z104 = (x103,y102+thin); |
| 133 |
z105 = 1/2[z101,z102]; z107 = (x105,y105+angdec); |
| 134 |
x185 = -w; (z105-z185) = whatever*(pdir); |
| 135 |
z106 = (z105--z185) intersectionpoint pth1; |
| 136 |
x187 = -w; (z107-z187) = whatever*(pdir); |
| 137 |
z108 = (z107--z187) intersectionpoint pth1; |
| 138 |
%%ductus:=true; |
| 139 |
if ductus: |
| 140 |
pickup stylus; |
| 141 |
fi |
| 142 |
draw pth1; %% bowl |
| 143 |
pickup stylus; |
| 144 |
draw z101--z102; draw z103--z104; |
| 145 |
draw z105--z106; draw z107--z108; |
| 146 |
ductus:=false; |
| 147 |
penlabels(1,2,3,4,5,6,14,16,17,18,100,101,102,103,104,105,106,107,108,185); |
| 148 |
endchar; % end "C" |
| 149 |
|
| 150 |
cmchar "PGOTH letter D"; |
| 151 |
beginchar("D", 2cap_sb#+hstretch*((7)*stem_width#), |
| 152 |
caprat*x_height#, 0); |
| 153 |
adjust_fit(0,0); |
| 154 |
numeric n[]; |
| 155 |
numeric st; st := stem_width; |
| 156 |
path pth[]; |
| 157 |
pcshiftx := cap_sb; |
| 158 |
pickup quill; |
| 159 |
%% bowl |
| 160 |
lft x1 = pcshiftx; bot y1 = 0; |
| 161 |
rt x5 = w-pcshiftx; y5 = 1/2h; |
| 162 |
x3 = 10/16[x1,x5]; y3 = y1; |
| 163 |
x7 = x3; top y7 = h; |
| 164 |
lft x9 = 2/5w; bot y9 = 12/16h; |
| 165 |
pth1 := z1{pdir}..{right}z3..{up}z5..{left}z7..{-pdir}z9; |
| 166 |
%% stem |
| 167 |
rt x12 = lft x9; top y12 = bot y9; |
| 168 |
x14 = x1; y14 = y12; |
| 169 |
x13 = 1/2[x14,x12]; y13 = 1/2[y12,y7]; |
| 170 |
pth2 := z1{pdir}..z12..{left}z13..{-pdir}z14; |
| 171 |
%% vertical decoration |
| 172 |
z101=z9; |
| 173 |
z181 = (x9,-h); |
| 174 |
z102 = ((x101,h/2)--z181) intersectionpoint pth1; |
| 175 |
z103a=(x101+perpdec,h); z103b=(x103a,h/2); z103c=(x103a,-h); |
| 176 |
z103 = (z103a--z103b) intersectionpoint pth1; |
| 177 |
z104 = (z103b--z103c) intersectionpoint pth1; |
| 178 |
%% angled decoration |
| 179 |
z106 = (lft x5, y5); |
| 180 |
x105 = x103; (z106-z105) = whatever*(pdir); |
| 181 |
z107 = (x105, y105+angdec); |
| 182 |
x108a = 2w; (z108a-z107) = whatever*(pdir); |
| 183 |
z108 = (z108a--z107) intersectionpoint pth1; |
| 184 |
if ductus: |
| 185 |
pickup stylus; |
| 186 |
fi |
| 187 |
draw pth1; |
| 188 |
draw pth2; |
| 189 |
pickup stylus; |
| 190 |
draw z101--z102; draw z103--z104; |
| 191 |
draw z105--z106; draw z107--z108; |
| 192 |
ductus:=false; |
| 193 |
penlabels(0,1,2,3,4,5,6,7,8,9,11,12,13,14,15,16,100); |
| 194 |
endchar; % end "D" |
| 195 |
|
| 196 |
cmchar "PGOTH letter E"; |
| 197 |
beginchar("E", 2cap_sb#+hstretch*((6)*stem_width#), %% (5) too small |
| 198 |
caprat*x_height#, 0); |
| 199 |
adjust_fit(0,0); |
| 200 |
numeric n[]; |
| 201 |
numeric st; st := stem_width; |
| 202 |
path pth[]; |
| 203 |
pcshiftx := cap_sb; |
| 204 |
pickup quill; |
| 205 |
%% bowl |
| 206 |
n1:=w-2pcshiftx; % actual letter width |
| 207 |
n2:=6/5w-2pcshiftx; % width of full bowl |
| 208 |
x1=pcshiftx + 1/2n1; top y1 = h; |
| 209 |
lft x2 = pcshiftx; y2 = 1/2h; |
| 210 |
x3 = x1; bot y3 = 0; |
| 211 |
rt x4 = w-pcshiftx; y4 = 1/4h; |
| 212 |
x24 = x4; y24 = 3/4h; |
| 213 |
pth1 := z24..z1{left}..z2{down}..z3{right}..z4{pdir}; |
| 214 |
%% decoration |
| 215 |
z101 = (x1,y1); z102 = (x1,y3); |
| 216 |
z103 = (x1+perpdec, y1); z104 = (x103,y102+thin); |
| 217 |
z105 = 1/2[z101,z102]; z107 = (x105,y105+angdec); |
| 218 |
x185 = -w; (z105-z185) = whatever*(pdir); |
| 219 |
z106 = (z105--z185) intersectionpoint pth1; |
| 220 |
x187 = -w; (z107-z187) = whatever*(pdir); |
| 221 |
z108 = (z107--z187) intersectionpoint pth1; |
| 222 |
%% bar |
| 223 |
lft x31 = x103; top y31 = y105; |
| 224 |
rt x32 = w-pcshiftx; y32=y31; |
| 225 |
%%ductus:=true; |
| 226 |
if ductus: |
| 227 |
pickup stylus; |
| 228 |
fi |
| 229 |
draw pth1; %% bowl |
| 230 |
draw z31--z32; %% bar |
| 231 |
pickup stylus; |
| 232 |
draw z101--z102; draw z103--z104; |
| 233 |
draw z105--z106; draw z107--z108; |
| 234 |
ductus:=false; |
| 235 |
penlabels(1,2,3,4,5,6,14,16,17,18,100,105,185,106); |
| 236 |
endchar; % end "E" |
| 237 |
|
| 238 |
cmchar "PGOTH letter F"; |
| 239 |
beginchar("F", 2cap_sb#+hstretch*((5)*stem_width#), |
| 240 |
5/4caprat*x_height#, 0); |
| 241 |
adjust_fit(0,0); |
| 242 |
numeric n[]; |
| 243 |
numeric st; st := stem_width; |
| 244 |
path pth[]; |
| 245 |
pcshiftx := cap_sb; |
| 246 |
pickup quill; |
| 247 |
%% stem (1--2) and top bar (21--22) |
| 248 |
lft x1=lft x2=pcshiftx+widedmin*st; y2 = 0; |
| 249 |
top y21 = top y22 = h - (top y2 - bot y2); x22 = w-pcshiftx-st; |
| 250 |
lft x21 = rt x1; top y1 = bot y21; |
| 251 |
z12 = 1/3[z1,z2]; |
| 252 |
draw_downdiamondstem(12,2,wided,widedmin,diawd,diang); |
| 253 |
draw z1--z12; |
| 254 |
draw z21--z22; |
| 255 |
%% vertical decoration |
| 256 |
z102 = 2/3[z2b,z2c]; |
| 257 |
x101 = x102; y101 = y21; |
| 258 |
%% bar |
| 259 |
lft x14 = x101; y14 = y12; |
| 260 |
rt x16 = w-pcshiftx; y16 = y14; |
| 261 |
draw z14--z16; |
| 262 |
z16tr = (rt x16, top y16); |
| 263 |
pickup stylus; |
| 264 |
draw z101--z102; |
| 265 |
%% Other decoration |
| 266 |
%% bottom bar |
| 267 |
rt x201 = x16tr; top y201 = y16tr; |
| 268 |
y202 = y201 - 2st; (z201-z202) = whatever*pdir; |
| 269 |
draw z201--z202; |
| 270 |
%% top bar |
| 271 |
pickup quill; |
| 272 |
z22tb = (rt x22, top y22); |
| 273 |
x22bb - x22 = x22 - x22tb; y22bb - y22 = y22 - y22tb; |
| 274 |
x22c = x22 + st; bot y22c = top y22 + 1/2st; |
| 275 |
x22f = x22; y22f = 1/3[y22c, y22]; |
| 276 |
pickup stylus; |
| 277 |
x22br = x22bb; bot y22br = y22bb; |
| 278 |
pth3 := z22br--z22tb..{up}z22c..{-ppdir}z22f; |
| 279 |
draw pth3; |
| 280 |
|
| 281 |
penlabels(1,2,3,4,5,6,7,14,15,16,21,22,100); |
| 282 |
endchar; % end "F" |
| 283 |
|
| 284 |
cmchar "PGOTH letter G"; |
| 285 |
beginchar("G", 2cap_sb#+hstretch*((7)*stem_width#), |
| 286 |
caprat*x_height#, 0); |
| 287 |
adjust_fit(0,0); |
| 288 |
pcshiftx := cap_sb; |
| 289 |
numeric n[]; |
| 290 |
numeric st; st := stem_width; |
| 291 |
path pth[]; |
| 292 |
pickup quill; |
| 293 |
%% bar |
| 294 |
top y3=h; n3 := h - top y3; |
| 295 |
lft x1 = pcshiftx; rt x2=w-pcshiftx; |
| 296 |
y1 = y3-n3; y2=y3; |
| 297 |
x3=1/2[x1,x2]; |
| 298 |
pth1 := z1{pdir}..z3..z2{pdir}; |
| 299 |
%% bowl |
| 300 |
n1 := w; % width of bowl |
| 301 |
n2 := h; % height of bowl |
| 302 |
lft x4 = pcshiftx; y4 = 1/2h; |
| 303 |
x5=x3; bot y5 = 0; |
| 304 |
rt x6 = w-pcshiftx; y6 = 6/16h; |
| 305 |
%% decoration |
| 306 |
x101 = lft x3; y101=y3; |
| 307 |
x181 = x101; y181=-h/4; z191 = 1/2[z101,z181]; |
| 308 |
z102=(x101,y5); |
| 309 |
z103 = (x101+3thin, y101); z104 = (x103,y102); |
| 310 |
lft x7 = x104; y7 = 10/16[y104,y103]; |
| 311 |
%%pth2 := z3..z4{down}..z5{right}..z6{up}..{-pdir}z7; |
| 312 |
%%pth2 := z2{-pdir}..z3..z4{down}..z5{right}..z6{up}..{-pdir}z7; |
| 313 |
pth2 := z2--z3..z4{down}..z5{right}..z6{up}..{-pdir}z7; |
| 314 |
z105 = (x104,y104+4thin); z107=(x105,y105+3thin); |
| 315 |
x185 = 2w; (z185-z105) = whatever*(pdir); |
| 316 |
z106 = (z105--z185) intersectionpoint pth2; |
| 317 |
z108 = (x106,y106+3thin); |
| 318 |
%% fork |
| 319 |
z2tr = (rt x2, top y2); |
| 320 |
x2a = x2tr; y2a = y2tr + thin; |
| 321 |
x2b = x2a; y2b - y2 = y2 - y2a; |
| 322 |
x2d = x2 - thick; y2d = y2; |
| 323 |
pickup stylus; |
| 324 |
x2c = x2d = x2e; |
| 325 |
top y2e = y2tr; y2c - y2d = y2d - y2e; |
| 326 |
%%filldraw z2d--z2c{right}..z2b--cycle; |
| 327 |
%%filldraw z2d--z2a..{left}z2e--cycle; |
| 328 |
filldraw z2e--z2c{right}..z2b--cycle; |
| 329 |
filldraw z2c--z2a..{left}z2e--cycle; |
| 330 |
pth9 := (rt x2a,y2a)--(rt x2b,y2b)--(rt x2d,y2d)--cycle; |
| 331 |
unfill pth9; |
| 332 |
unfill pth9; |
| 333 |
unfill pth9; |
| 334 |
draw z101--z102; draw z103--z104; |
| 335 |
draw z105--z106; draw z107--z108; |
| 336 |
pickup quill; |
| 337 |
%%ductus:=true; |
| 338 |
if ductus: |
| 339 |
pickup stylus; |
| 340 |
fi |
| 341 |
%%draw pth1; %% bar |
| 342 |
draw pth2; %% bowl |
| 343 |
ductus:=false; |
| 344 |
penlabels(1,2,2a,2b,2c,2d,2e,3,4,5,6,11,12,100,101,102,103,104,181,191); |
| 345 |
endchar; % end "G" |
| 346 |
|
| 347 |
cmchar "PGOTH letter H"; |
| 348 |
beginchar("H", 2cap_sb#+hstretch*((8)*stem_width#), |
| 349 |
caprat*x_height#, 0); |
| 350 |
adjust_fit(0,0); |
| 351 |
pcshiftx := cap_sb; |
| 352 |
numeric st; st := stem_width; |
| 353 |
numeric n[]; |
| 354 |
path pth[]; |
| 355 |
pickup quill; |
| 356 |
%% left stem |
| 357 |
lft x1=pcshiftx+3st; y1=h; |
| 358 |
x2=x1; y2=0; |
| 359 |
z12 = 1/2[z1,z2]; |
| 360 |
draw_upcurlstem(1,12); |
| 361 |
draw_downdiamondstem(12,2,wided,widedmin,diawd,diang); |
| 362 |
n1 := 12/16h; %% take this as the top of the bowl |
| 363 |
x13=x1; y13=3/4n1; |
| 364 |
rt x3 = w-pcshiftx; y3 = 8/16n1; |
| 365 |
x14 = 8/16[x13,x3]; top y14 = n1; |
| 366 |
x4 = 1/2[x14,x3]; bot y4=0; |
| 367 |
pth1 := z13{pdir}..{right}z14..{down}z3..{-pdir}z4; |
| 368 |
%% bottom curl |
| 369 |
z21 = z4; |
| 370 |
x24 = x3; top y24 = 0; |
| 371 |
x23 = 1/2[x21,x24]; top y23 = bot y24; |
| 372 |
pth2 := z21{-pdir}..z23..{ppdir}z24; |
| 373 |
%% vertical decoration |
| 374 |
z102 = 2/3[z2b,z2c]; |
| 375 |
z182 = (x102,h); |
| 376 |
z101 = (z102--z182) intersectionpoint pth1; |
| 377 |
z105 = 1/2[z102,z101]; |
| 378 |
x185 = 2w; |
| 379 |
(z185-z105) = whatever*(pdir); |
| 380 |
z106 = (z105--z185) intersectionpoint pth1; |
| 381 |
z107 = (x105, y105-angdec); z187 = (x185, y185-angdec); |
| 382 |
z108 = (z107--z187) intersectionpoint pth1; |
| 383 |
%%ductus:=true; |
| 384 |
if ductus: |
| 385 |
pickup stylus; |
| 386 |
fi |
| 387 |
draw pth1; |
| 388 |
pickup stylus; |
| 389 |
draw pth2; |
| 390 |
draw z101--z102; |
| 391 |
draw z105--z106; draw z107--z108; |
| 392 |
ductus:=false; |
| 393 |
penlabels(1,2,3,4,5,6,13,14,100); |
| 394 |
endchar; % end "H" |
| 395 |
|
| 396 |
cmchar "PGOTH letter I"; |
| 397 |
beginchar("I", 2cap_sb#+hstretch*((4+wided)*stem_width#), |
| 398 |
caprat*x_height#, 0); |
| 399 |
adjust_fit(0,0); |
| 400 |
pcshiftx := cap_sb; |
| 401 |
numeric st; st := stem_width; |
| 402 |
pickup quill; |
| 403 |
lft x1=lft x2=pcshiftx+3st; |
| 404 |
y1=h; y2=0; |
| 405 |
z12 = 1/2[z1,z2]; |
| 406 |
draw_upcurlstem(1,12); |
| 407 |
draw_downdiamondstem(12,2,wided, widedmin,diawd,diang); |
| 408 |
%% vertical decoration |
| 409 |
z102 = 2/3[z2b,z2c]; |
| 410 |
pickup stylus; |
| 411 |
x101=x102; top y101 = h; |
| 412 |
draw z101--z102; |
| 413 |
ductus:=false; |
| 414 |
penlabels(1,2,101,102,100); |
| 415 |
endchar; % end "I" |
| 416 |
|
| 417 |
cmchar "PGOTH letter J"; |
| 418 |
beginchar("J", cap_sb#+hstretch*((4+wided)*stem_width#), |
| 419 |
caprat*x_height#, 1/2caprat*x_height#); |
| 420 |
adjust_fit(0,0); |
| 421 |
pcshiftx := cap_sb; |
| 422 |
numeric n[]; |
| 423 |
numeric st; st := stem_width; |
| 424 |
pickup quill; |
| 425 |
%% stem |
| 426 |
lft x1 = pcshiftx+3st; y1 = h; |
| 427 |
x2=x1; y2=-d + (top y1 - bot y1); |
| 428 |
%% bottom hook |
| 429 |
lft x3 = pcshiftx; bot y3 = -d; |
| 430 |
draw_upcurlstem(1,2); |
| 431 |
draw z2{ppdir}..{-pdir}z3; |
| 432 |
%% vertical decoration |
| 433 |
x201 = rt x1; |
| 434 |
x101 = x201 + 2/3wided*st; |
| 435 |
pickup stylus; |
| 436 |
top y101 = h; y201=y101; |
| 437 |
z102=(x101,0); |
| 438 |
draw z201--z101--z102; |
| 439 |
ductus:=false; |
| 440 |
penlabels(1,2,3,101,102,100); |
| 441 |
endchar; % end "J" |
| 442 |
|
| 443 |
cmchar "PGOTH letter K"; |
| 444 |
beginchar("K", 2cap_sb#+hstretch*((8+wided)*stem_width#), |
| 445 |
5/4caprat*x_height#, 0); |
| 446 |
adjust_fit(0,0); |
| 447 |
pcshiftx := cap_sb; |
| 448 |
path pth[]; |
| 449 |
numeric n[]; |
| 450 |
numeric st; st := stem_width; |
| 451 |
pickup quill; |
| 452 |
%% stem |
| 453 |
n1 = 4/5h; % x-height |
| 454 |
lft x1=lft x2=pcshiftx+3st; |
| 455 |
y1=h; y2=0; |
| 456 |
z12 = 1/2[z1,z2]; |
| 457 |
draw_upcurlstem(1,12); |
| 458 |
draw_downdiamondstem(12,2,wided,widedmin,diawd,diang); |
| 459 |
%% top arm |
| 460 |
%%z3=(x1,1/2n1); |
| 461 |
x3 = x1; top y3 = 14/16n1; |
| 462 |
z7c = 1/2[z2,z3]; |
| 463 |
top y3a = n1; (z3a-z3) = whatever*pdir; |
| 464 |
rt x7a = w - pcshiftx - 2st; (z7a-z7c) = whatever*pdir; |
| 465 |
x4 = 1/2[x3a,x7a]; y4 = y3a; |
| 466 |
x5 = x7a; y5 = 1/2[y3a, y7a]; |
| 467 |
z7 = (rt x7c, y7c); |
| 468 |
pth1 := z3{pdir}..z4..z5..{-pdir}z7; |
| 469 |
%% lower arm |
| 470 |
z21=z7; |
| 471 |
z24=(x5+st,y2a); |
| 472 |
x23 = x24; y23 = 1/2[y21,y24]; |
| 473 |
rt x25 = w-pcshiftx; bot y25 = 0; |
| 474 |
pth2 := z21{pdir}..{down}z23..z24..{pdir}z25; |
| 475 |
pickup quill; |
| 476 |
%%ductus:=true; |
| 477 |
if ductus: |
| 478 |
pickup stylus; |
| 479 |
fi |
| 480 |
draw pth1; % upper bowl |
| 481 |
draw pth2; % lower half |
| 482 |
%% decorations |
| 483 |
z1tr = (rt x1, top y1); |
| 484 |
pickup stylus; |
| 485 |
z102 = 2/3[z2b,z2c]; x101 = x102; top y101 = h; |
| 486 |
x103 = x1tr; y103 = y101; |
| 487 |
draw z103--z101--z102; |
| 488 |
x105 = x101; y105 = 1/2[y7,y3]; |
| 489 |
y185 = 2w; (z185-z105) = whatever*pdir; |
| 490 |
z106 = (z105--z185) intersectionpoint pth1; |
| 491 |
x107 = x105; y107 = y105-angdec; |
| 492 |
x187 = x185; y187-y185 = y107-y105; |
| 493 |
%%z108 = (z107--z187) intersectionpoint pth1; |
| 494 |
draw z105--z106; |
| 495 |
%%draw z107--z108; |
| 496 |
ductus:=false; |
| 497 |
penlabels(1,2,3,4,5,6,7,8,9,13,14,21,22,23,24,25,100); |
| 498 |
endchar; % end "K" |
| 499 |
|
| 500 |
cmchar "PGOTH letter L"; |
| 501 |
beginchar("L", 2cap_sb#+hstretch*((7)*stem_width#), |
| 502 |
caprat*x_height#, 0); |
| 503 |
adjust_fit(0,0); |
| 504 |
pcshiftx := cap_sb; |
| 505 |
numeric st; st := stem_width; |
| 506 |
pickup quill; |
| 507 |
lft x1=pcshiftx+3st; y1=h; |
| 508 |
x2=x1; bot y2 =0; |
| 509 |
draw_upcurlstem(1,2); |
| 510 |
rt x4 = w-pcshiftx; bot y4 = 0; |
| 511 |
draw z2{right}..{pdir}z4; |
| 512 |
%% vertical decoration |
| 513 |
x201 = rt x1; |
| 514 |
x101 = x201+2/3wided*st; |
| 515 |
pickup stylus; |
| 516 |
top y101 = h; y201 = y101; |
| 517 |
x102 = x101; bot y102=0; |
| 518 |
draw z201--z101--z102; |
| 519 |
ductus:=false; |
| 520 |
penlabels(1,2,3,4,101,102,201,100); |
| 521 |
endchar; % end "L" |
| 522 |
|
| 523 |
cmchar "PGOTH letter M"; |
| 524 |
beginchar("M", 2cap_sb#+hstretch*((11)*stem_width#), |
| 525 |
caprat*x_height#, 0); |
| 526 |
adjust_fit(0,0); |
| 527 |
pcshiftx := cap_sb; |
| 528 |
numeric st; st := stem_width; |
| 529 |
path pth[]; |
| 530 |
pickup quill; |
| 531 |
%%% left part |
| 532 |
lft x301 = pcshiftx+3st; y301 = h; |
| 533 |
x302 = x301; y302 = 0; |
| 534 |
z312 = 1/2[z301,z302]; |
| 535 |
draw_upcurlstem(301,312); |
| 536 |
draw_downdiamondstem(312,302,wided,widedmin,diawd,diang); |
| 537 |
|
| 538 |
%% left N stem (and N part) |
| 539 |
%%%lft x1=pcshiftx+3st; y1=h; |
| 540 |
x1 = x301 + 3st; y1 = h; |
| 541 |
x2=x1; y2=0; |
| 542 |
z12 = 1/2[z1,z2]; |
| 543 |
%%draw_upcurlstem(1,12); |
| 544 |
%%draw_updiamondstem(1,12,wided,widedmin,diawd,diang); |
| 545 |
draw_downdiamondstem(12,2,wided,widedmin,diawd,diang); |
| 546 |
x13=x1; y13=3/4h; |
| 547 |
rt x3 = w-pcshiftx; y3 = 8/16h; |
| 548 |
x14 = 8/16[x13,x3]; top y14 = h; |
| 549 |
x4 = 1/2[x14,x3]; bot y4=0; |
| 550 |
pth1 := z13{pdir}..{right}z14..{down}z3..{-pdir}z4; |
| 551 |
%% bottom curl |
| 552 |
z21 = z4; |
| 553 |
x24 = x3; top y24 = 0; |
| 554 |
x23 = 1/2[x21,x24]; top y23 = bot y24; |
| 555 |
pth2 := z21{-pdir}..z23..{ppdir}z24; |
| 556 |
%%ductus:=true; |
| 557 |
if ductus: |
| 558 |
pickup stylus; |
| 559 |
fi |
| 560 |
draw pth1; |
| 561 |
pickup stylus; |
| 562 |
draw pth2; |
| 563 |
pickup quill; |
| 564 |
%% finish off the left part |
| 565 |
x3011 = 1/2[x301,x1]; top y3011 = h; |
| 566 |
z3123 = (x301,3/4h); z123 = (x1,y3123); |
| 567 |
draw z3123--z3011--z123--z12; |
| 568 |
%% vertical decorations |
| 569 |
%% left part |
| 570 |
z402 = 2/3[z302b,z302c]; |
| 571 |
x401 = x402; z401 = whatever[z3123,z3011]; |
| 572 |
%% right part |
| 573 |
z102 = 2/3[z2b,z2c]; |
| 574 |
z182 = (x102,h); |
| 575 |
z101 = (z102--z182) intersectionpoint pth1; |
| 576 |
%% angled decorations |
| 577 |
%% left part |
| 578 |
z406 = z13; |
| 579 |
x405 = x402; (z406-z405) = whatever*pdir; |
| 580 |
z407 = (x405, y405-angdec); z408 = (x406, y406-angdec); |
| 581 |
%% right part |
| 582 |
z105 = (x102,y405); |
| 583 |
x185 = 2w; |
| 584 |
(z185-z105) = whatever*(pdir); |
| 585 |
z106 = (z105--z185) intersectionpoint pth1; |
| 586 |
z107 = (x105, y105-angdec); z187 = (x185, y185-angdec); |
| 587 |
z108 = (z107--z187) intersectionpoint pth1; |
| 588 |
pickup stylus; |
| 589 |
draw z401--z402; |
| 590 |
draw z405--z406; draw z407--z408; |
| 591 |
draw z101--z102; |
| 592 |
draw z105--z106; draw z107--z108; |
| 593 |
ductus:=false; |
| 594 |
penlabels(1,2,3,4,5,6,13,14,101,102,105,106,107,108,301,302,100); |
| 595 |
endchar; % end "M" |
| 596 |
|
| 597 |
cmchar "PGOTH letter N"; |
| 598 |
beginchar("N", 2cap_sb#+hstretch*((8)*stem_width#), |
| 599 |
caprat*x_height#, 0); |
| 600 |
adjust_fit(0,0); |
| 601 |
pcshiftx := cap_sb; |
| 602 |
numeric st; st := stem_width; |
| 603 |
path pth[]; |
| 604 |
pickup quill; |
| 605 |
%% left stem |
| 606 |
lft x1=pcshiftx+3st; y1=h; |
| 607 |
x2=x1; y2=0; |
| 608 |
z12 = 1/2[z1,z2]; |
| 609 |
draw_upcurlstem(1,12); |
| 610 |
draw_downdiamondstem(12,2,wided,widedmin,diawd,diang); |
| 611 |
x13=x1; y13=3/4h; |
| 612 |
rt x3 = w-pcshiftx; y3 = 8/16h; |
| 613 |
x14 = 8/16[x13,x3]; top y14 = h; |
| 614 |
x4 = 1/2[x14,x3]; bot y4=0; |
| 615 |
pth1 := z13{pdir}..{right}z14..{down}z3..{-pdir}z4; |
| 616 |
%% bottom curl |
| 617 |
z21 = z4; |
| 618 |
x24 = x3; top y24 = 0; |
| 619 |
x23 = 1/2[x21,x24]; top y23 = bot y24; |
| 620 |
pth2 := z21{-pdir}..z23..{ppdir}z24; |
| 621 |
%% vertical decoration |
| 622 |
z102 = 2/3[z2b,z2c]; |
| 623 |
z182 = (x102,h); |
| 624 |
z101 = (z102--z182) intersectionpoint pth1; |
| 625 |
z105 = 1/2[z102,z101]; |
| 626 |
x185 = 2w; |
| 627 |
(z185-z105) = whatever*(pdir); |
| 628 |
z106 = (z105--z185) intersectionpoint pth1; |
| 629 |
z107 = (x105, y105-angdec); z187 = (x185, y185-angdec); |
| 630 |
z108 = (z107--z187) intersectionpoint pth1; |
| 631 |
%%ductus:=true; |
| 632 |
if ductus: |
| 633 |
pickup stylus; |
| 634 |
fi |
| 635 |
draw pth1; |
| 636 |
pickup stylus; |
| 637 |
draw pth2; |
| 638 |
draw z101--z102; |
| 639 |
draw z105--z106; draw z107--z108; |
| 640 |
ductus:=false; |
| 641 |
penlabels(1,2,3,4,5,6,13,14,100); |
| 642 |
endchar; % end "N" |
| 643 |
|
| 644 |
cmchar "PGOTH letter O"; |
| 645 |
beginchar("O", 2cap_sb#+hstretch*((7)*stem_width#), |
| 646 |
caprat*x_height#, 0); |
| 647 |
adjust_fit(0,0); |
| 648 |
pcshiftx := cap_sb; |
| 649 |
path pth[]; |
| 650 |
pickup quill; |
| 651 |
lft x1=pcshiftx; rt x3=w-pcshiftx; y1=y3=h/2; |
| 652 |
x2=x4=w/2; top y2=h; bot y4=0; |
| 653 |
pth1 := z1..z2..z3..z4..cycle; |
| 654 |
%% vertical decoration |
| 655 |
z101=z2; z102=z4; |
| 656 |
z103 = (x101-perpdec, y101); z104 = (x103,y102); |
| 657 |
%% angled decoration |
| 658 |
z108 = (lft x3,y3); |
| 659 |
x107 = x101; (z108-z107) = whatever*(pdir); |
| 660 |
z105 = (x107, y107+angdec); |
| 661 |
x106a = 2w; (z106a-z105) = whatever*(pdir); |
| 662 |
z106 = (z105--z106a) intersectionpoint pth1; |
| 663 |
%%ductus:=true; |
| 664 |
if ductus: |
| 665 |
pickup stylus; |
| 666 |
fi |
| 667 |
draw pth1; |
| 668 |
pickup stylus; |
| 669 |
draw z101--z102; draw z103--z104; |
| 670 |
draw z105--z106; draw z107--z108; |
| 671 |
ductus:=false; |
| 672 |
penlabels(1,2,3,4,5,100); |
| 673 |
endchar; % end "O" |
| 674 |
|
| 675 |
cmchar "PGOTH letter P"; |
| 676 |
beginchar("P", 2cap_sb#+hstretch*((8)*stem_width#), |
| 677 |
caprat*x_height#, 1/2caprat*x_height#); |
| 678 |
adjust_fit(0,0); |
| 679 |
pcshiftx := cap_sb; |
| 680 |
path pth[]; |
| 681 |
numeric n[]; |
| 682 |
numeric st; st := stem_width; |
| 683 |
pickup quill; |
| 684 |
%% stem |
| 685 |
lft x1=lft x2=pcshiftx+3st; |
| 686 |
y1=h; y2=-d; |
| 687 |
z12 = 1/2[z1,z2]; |
| 688 |
draw_upcurlstem(1,12); |
| 689 |
draw_downdiamondstem(12,2,wided,widedmin,diawd,diang); |
| 690 |
%% vertical decoration |
| 691 |
z1tr = (rt x1, top y1); |
| 692 |
z102 = 2/3[z2b,z2c]; |
| 693 |
pickup stylus; |
| 694 |
x101 = x102; top y101 = h; |
| 695 |
x103 = x1tr; y103 = y101; |
| 696 |
draw z103--z101--z102; |
| 697 |
pickup quill; |
| 698 |
%% bowl |
| 699 |
lft x22 = x101; top y22 = h; |
| 700 |
x21 = x1; (z22-z21) = whatever*pdir; |
| 701 |
rt x24 = w - pcshiftx; y24 = 1/2h; |
| 702 |
x25 = 1/2[x22,x24]; bot y25 = 0; |
| 703 |
pth1 := z21--z22{down}..{down}z24..{-pdir}z25; |
| 704 |
z31 = z25; |
| 705 |
lft x33 = pcshiftx; bot y33 = 0; |
| 706 |
pth2 := z33{pdir}..{right}z31; |
| 707 |
%%ductus:=true; |
| 708 |
if ductus: |
| 709 |
pickup stylus; |
| 710 |
fi |
| 711 |
draw pth1; draw pth2; |
| 712 |
%% angled decoration |
| 713 |
x105 = x101; y105 = 1/3h; |
| 714 |
x185 = 2w; |
| 715 |
(z185-z105) = whatever*pdir; |
| 716 |
z106 = (z105--z185) intersectionpoint pth1; |
| 717 |
z107 = (x105,y105-angdec); |
| 718 |
x187 = x185; y107 - y105 = y187 - y185; |
| 719 |
z108 = (z107--z187) intersectionpoint pth1; |
| 720 |
pickup stylus; |
| 721 |
draw z105--z106; draw z107--z108; |
| 722 |
ductus:=false; |
| 723 |
penlabels(1,2,3,4,5,6,7,8,100); |
| 724 |
endchar; % end "P" |
| 725 |
|
| 726 |
cmchar "PGOTH letter Q"; |
| 727 |
beginchar("Q", 2cap_sb#+hstretch*((8)*stem_width#), |
| 728 |
caprat*x_height#, 0); |
| 729 |
adjust_fit(0,0); |
| 730 |
pcshiftx := cap_sb; |
| 731 |
path pth[]; |
| 732 |
pickup quill; |
| 733 |
lft x1=pcshiftx; rt x3=w-pcshiftx-stem_width; y1=y3=h/2; |
| 734 |
x2=x4=w/2; top y2=h; bot y4=0; |
| 735 |
pth1 := z1..z2..z3..z4..cycle; |
| 736 |
%% tail |
| 737 |
pth2 := z1..z4..z3; |
| 738 |
z11 = directionpoint pdir of pth2; |
| 739 |
rt x13 = w-pcshiftx; bot y13 = 0; |
| 740 |
pth3 := z11{pdir}..{pdir}z13; |
| 741 |
%% vertical decoration |
| 742 |
z101=z2; z102=z4; |
| 743 |
z103 = (x101-perpdec, y101); z104 = (x103,y102); |
| 744 |
%% angled decoration |
| 745 |
z108 = (lft x3,y3); |
| 746 |
x107 = x101; (z108-z107) = whatever*(pdir); |
| 747 |
z105 = (x107, y107+angdec); |
| 748 |
x106a = 2w; (z106a-z105) = whatever*(pdir); |
| 749 |
z106 = (z105--z106a) intersectionpoint pth1; |
| 750 |
%%ductus:=true; |
| 751 |
if ductus: |
| 752 |
pickup stylus; |
| 753 |
fi |
| 754 |
draw pth1; draw pth3; |
| 755 |
pickup stylus; |
| 756 |
draw z101--z102; draw z103--z104; |
| 757 |
draw z105--z106; draw z107--z108; |
| 758 |
ductus:=false; |
| 759 |
penlabels(1,2,3,4,5,100); |
| 760 |
endchar; % end "Q" |
| 761 |
|
| 762 |
cmchar "PGOTH letter R"; |
| 763 |
beginchar("R", 2cap_sb#+hstretch*((8+wided)*stem_width#), |
| 764 |
caprat*x_height#, 0); |
| 765 |
adjust_fit(0,0); |
| 766 |
pcshiftx := cap_sb; |
| 767 |
path pth[]; |
| 768 |
numeric n[]; |
| 769 |
numeric st; st := stem_width; |
| 770 |
pickup quill; |
| 771 |
%% stem |
| 772 |
n1 = h; % x-height |
| 773 |
lft x1=lft x2=pcshiftx+3st; |
| 774 |
y1=h; y2=0; |
| 775 |
z12 = 1/2[z1,z2]; |
| 776 |
draw_upcurlstem(1,12); |
| 777 |
draw_downdiamondstem(12,2,wided,widedmin,diawd,diang); |
| 778 |
%% top arm |
| 779 |
%%z3=(x1,1/2n1); |
| 780 |
x3 = x1; top y3 = 14/16n1; |
| 781 |
z7c = 1/2[z2,z3]; |
| 782 |
top y3a = n1; (z3a-z3) = whatever*pdir; |
| 783 |
rt x7a = w - pcshiftx - 2st; (z7a-z7c) = whatever*pdir; |
| 784 |
x4 = 1/2[x3a,x7a]; y4 = y3a; |
| 785 |
x5 = x7a; y5 = 1/2[y3a, y7a]; |
| 786 |
z7 = (rt x7c, y7c); |
| 787 |
pth1 := z3{pdir}..z4..z5..{-pdir}z7; |
| 788 |
%% lower arm |
| 789 |
z21=z7; |
| 790 |
z24=(x5,y2a); |
| 791 |
x23 = x24; y23 = 1/2[y21,y24]; |
| 792 |
rt x25 = w-pcshiftx; bot y25 = 0; |
| 793 |
pth2 := z21{pdir}..{down}z23..z24..{pdir}z25; |
| 794 |
pickup quill; |
| 795 |
%%ductus:=true; |
| 796 |
if ductus: |
| 797 |
pickup stylus; |
| 798 |
fi |
| 799 |
draw pth1; % upper bowl |
| 800 |
draw pth2; % lower half |
| 801 |
%% decorations |
| 802 |
z1tr = (rt x1, top y1); |
| 803 |
pickup stylus; |
| 804 |
z102 = 2/3[z2b,z2c]; x101 = x102; top y101 = h; |
| 805 |
x103 = x1tr; y103 = y101; |
| 806 |
draw z103--z101--z102; |
| 807 |
x105 = x101; y105 = 1/2[y7,y3]; |
| 808 |
y185 = 2w; (z185-z105) = whatever*pdir; |
| 809 |
z106 = (z105--z185) intersectionpoint pth1; |
| 810 |
x107 = x105; y107 = y105-angdec; |
| 811 |
x187 = x185; y187-y185 = y107-y105; |
| 812 |
%%z108 = (z107--z187) intersectionpoint pth1; |
| 813 |
draw z105--z106; |
| 814 |
%%draw z107--z108; |
| 815 |
ductus:=false; |
| 816 |
penlabels(1,2,3,4,5,6,7,8,9,13,14,21,22,23,24,25,100); |
| 817 |
endchar; % end "R" |
| 818 |
|
| 819 |
cmchar "PGOTH letter S"; |
| 820 |
beginchar("S", 2cap_sb#+hstretch*((8)*stem_width#), |
| 821 |
caprat*x_height#, 0); |
| 822 |
adjust_fit(0,0); |
| 823 |
numeric n[]; |
| 824 |
numeric st; st := stem_width; |
| 825 |
path pth[]; |
| 826 |
pcshiftx := cap_sb; |
| 827 |
pickup quill; |
| 828 |
pickup threequarterquill; |
| 829 |
%% top |
| 830 |
n1 := 1; |
| 831 |
lft x1 = pcshiftx + n1*st; top y1 = h; |
| 832 |
rt x3 = w - pcshiftx; y3 = y1; |
| 833 |
x2 = 1/2[x1,x3]; top y2 = y1; |
| 834 |
pth1 := z1..z2..{pdir}z3; |
| 835 |
draw pth1; |
| 836 |
%% bottom |
| 837 |
lft x4 = pcshiftx; bot y4 = 0; |
| 838 |
rt x6 = w -pcshiftx - n1*st; y6 = y4; |
| 839 |
x5 = 1/2[x4,x6]; bot y5 = y4; |
| 840 |
pth2 := z4{pdir}..z5..z6; |
| 841 |
draw pth2; |
| 842 |
%% top path |
| 843 |
z100 = (1/2w, 1/2h); |
| 844 |
z11 = z1; z15 = z6; |
| 845 |
x13 = x100; y13 = y100 + st; |
| 846 |
pth3 := z11..{right}z13{right}..z15; |
| 847 |
draw pth3; |
| 848 |
%% bottom path |
| 849 |
z21 = z11; z25 = z6; |
| 850 |
x23 = x100; y100 - y23 = y13 - y100; |
| 851 |
pth4 := z21..{right}z23{right}..z25; |
| 852 |
draw pth4; |
| 853 |
%% decorations |
| 854 |
%% top |
| 855 |
z101 = (x2+angdec,y2); y181 = 0; (z101-z181) = whatever*pdir; |
| 856 |
z102 = (z101--z181) intersectionpoint pth3; |
| 857 |
z103 = (x101-angdec, y101); x183-x181 = x103-x101; y183 = 0; |
| 858 |
z104 = (z103--z183) intersectionpoint pth3; |
| 859 |
%% bottom |
| 860 |
z201 = (x5,y5); y281 = h; (z201-z281) = whatever*pdir; |
| 861 |
z202 = (z201--z281) intersectionpoint pth4; |
| 862 |
z203 = (x201-angdec, y201); x283-x281 = x203-x201; y283 = h; |
| 863 |
z204 = (z203--z283) intersectionpoint pth4; |
| 864 |
pickup stylus; |
| 865 |
draw z101--z102; draw z103--z104; |
| 866 |
draw z201--z202; draw z203--z204; |
| 867 |
|
| 868 |
%%ductus:=true; |
| 869 |
if ductus: |
| 870 |
pickup stylus; |
| 871 |
fi |
| 872 |
ductus:=false; |
| 873 |
penlabels(1,2,3,4,5,6,7,11,17,20,26,27,28,100,101,102,103,104,201,202,203,204); |
| 874 |
endchar; % end "S" |
| 875 |
|
| 876 |
cmchar "PGOTH letter T"; |
| 877 |
beginchar("T", 2cap_sb#+hstretch*((7)*stem_width#), |
| 878 |
caprat*x_height#, 0); |
| 879 |
adjust_fit(0,0); |
| 880 |
pcshiftx := cap_sb; |
| 881 |
numeric n[]; |
| 882 |
numeric st; st := stem_width; |
| 883 |
path pth[]; |
| 884 |
pickup quill; |
| 885 |
%% bar |
| 886 |
top y3=h; n3 := h - top y3; |
| 887 |
lft x1 = pcshiftx; rt x2=w-pcshiftx; |
| 888 |
y1 = y3-n3; y2=y3; |
| 889 |
x3=1/2[x1,x2]; |
| 890 |
pth1 := z1{pdir}..z3..z2{pdir}; |
| 891 |
%% bowl |
| 892 |
n1 := w; % width of bowl |
| 893 |
n2 := h; % height of bowl |
| 894 |
lft x4 = pcshiftx; y4 = 1/2h; |
| 895 |
x5=x3; bot y5 = 0; |
| 896 |
rt x6 = w-pcshiftx; y6 = 6/16h; |
| 897 |
%%pth2 := z3..z4{down}..z5{right}..z6{pdir}; |
| 898 |
%% decoration |
| 899 |
x101 = lft x3; y101=y3; |
| 900 |
x181 = x101; y181=-h/4; z191 = 1/2[z101,z181]; |
| 901 |
%%z102 = z191--z181 intersectionpoint pth2; %%% ???? NO INTERSECTION!!!!!! |
| 902 |
z102=(x101,y5); |
| 903 |
z103 = (x101+3thin, y101); z104 = (x103,y102); |
| 904 |
lft x7 = x104; y7 = 10/16[y104,y103]; |
| 905 |
pth2 := z3..z4{down}..z5{right}..z6{up}..{-pdir}z7; |
| 906 |
z105 = (x104,y104+4thin); z107=(x105,y105+3thin); |
| 907 |
x185 = 2w; (z185-z105) = whatever*(pdir); |
| 908 |
z106 = (z105--z185) intersectionpoint pth2; |
| 909 |
z108 = (x106,y106+3thin); |
| 910 |
pickup stylus; |
| 911 |
draw z101--z102; draw z103--z104; |
| 912 |
draw z105--z106; draw z107--z108; |
| 913 |
pickup quill; |
| 914 |
%%ductus:=true; |
| 915 |
if ductus: |
| 916 |
pickup stylus; |
| 917 |
fi |
| 918 |
draw pth1; %% bar |
| 919 |
draw pth2; %% bowl |
| 920 |
ductus:=false; |
| 921 |
penlabels(1,2,3,4,5,6,11,12,100,101,102,103,104,181,191); |
| 922 |
endchar; % end "T" |
| 923 |
|
| 924 |
cmchar "PGOTH letter U"; |
| 925 |
beginchar("U", 2cap_sb#+hstretch*((8)*stem_width#), |
| 926 |
caprat*x_height#, 0); |
| 927 |
adjust_fit(0,0); |
| 928 |
pcshiftx := cap_sb; |
| 929 |
numeric n[]; |
| 930 |
numeric st; st := stem_width; |
| 931 |
path pth[]; |
| 932 |
pickup quill; |
| 933 |
%% stem tops |
| 934 |
lft x1 = pcshiftx + 3st; y1 = h; |
| 935 |
rt x3 = w - pcshiftx - widedmin*st; y3 = h; |
| 936 |
x7 = x1 - 3/2st; bot y7 = 0; |
| 937 |
rt x9 = lft x3; bot y9 = 0; |
| 938 |
pth1 := z7{pdir}..{pdir}z9; |
| 939 |
draw pth1; |
| 940 |
%% stem bottoms |
| 941 |
z2 = (z1 -- (x1,-h)) intersectionpoint pth1; |
| 942 |
x4 = x3; bot y4 = top y9; |
| 943 |
draw_upcurlstem(1,2); |
| 944 |
draw_updiamondstem(3,4,wided,widedmin,diawd,diang); |
| 945 |
%% decorations |
| 946 |
z1tr = (rt x1, top y1); |
| 947 |
pickup stylus; |
| 948 |
z99 = 2/3[z3b,z3c]; |
| 949 |
x101 - x1 = x3 - x99; top y101 = h; |
| 950 |
x102 = x101; y102 = y2; |
| 951 |
x103 = x1tr; y103 = y101; |
| 952 |
draw z103--z101--z102; |
| 953 |
x105 = x101; y105 = 1/3h; |
| 954 |
x106 = x3; (z106-z105) = whatever*pdir; |
| 955 |
z107 = (x105, y105-angdec); x108 = x106; y108-y106 = y107-y105; |
| 956 |
draw z105--z106; draw z107--z108; |
| 957 |
%%ductus:=true; |
| 958 |
if ductus: |
| 959 |
pickup stylus; |
| 960 |
fi |
| 961 |
ductus:=false; |
| 962 |
penlabels(1,2,3,4,5,6,7,8,9,11,13,14,16,33,100); |
| 963 |
endchar; % end "U" |
| 964 |
|
| 965 |
cmchar "PGOTH letter V"; |
| 966 |
beginchar("V", 2cap_sb#+hstretch*((8)*stem_width#), |
| 967 |
caprat*x_height#, 0); |
| 968 |
adjust_fit(0,0); |
| 969 |
numeric n[]; |
| 970 |
numeric st; st := stem_width; |
| 971 |
path pth[]; |
| 972 |
pcshiftx := cap_sb; |
| 973 |
pickup quill; |
| 974 |
%% left stem top |
| 975 |
lft x1 = pcshiftx + 3st; y1 = h; |
| 976 |
x7 = x1 - 3/2st; bot y7 = 0; |
| 977 |
x9 = w/2; bot y9 = 0; |
| 978 |
pth1 := z7{pdir}..{right}z9; |
| 979 |
draw pth1; |
| 980 |
%% left stem bottom |
| 981 |
x81 = x1; y81 = - h; |
| 982 |
z2 = (z1--z81) intersectionpoint pth1; |
| 983 |
draw_upcurlstem(1,2); |
| 984 |
%% right stem |
| 985 |
z6 = z9; |
| 986 |
rt x5 = w - pcshiftx; top y5 = 3/4h; |
| 987 |
x3 = 1/2[rt x1, lft x5]; |
| 988 |
x4 = 1/2[x3,x5]; top y4 = h; |
| 989 |
y3 = 1/2[y4,y5]; |
| 990 |
pth2 := z6{pdir}..{up}z5..{left}z4..{-pdir}z3; |
| 991 |
draw pth2; |
| 992 |
pth3 := pth1 & pth2; |
| 993 |
%% decoration |
| 994 |
z1tr = (rt x1, top y1); |
| 995 |
x101 = x1tr + 2/3wided*st; |
| 996 |
pickup stylus; |
| 997 |
top y101 = h; |
| 998 |
z103 = (x1tr,y101); |
| 999 |
z181 = (x101,-w); |
| 1000 |
z102 = (z101--z181) intersectionpoint pth3; |
| 1001 |
draw z103--z101--z102; |
| 1002 |
x105 = x101; y105 = 1/3[y102,y101]; |
| 1003 |
x185 = 2w; (z185-z105) = whatever*pdir; |
| 1004 |
z106 = (z105--z185) intersectionpoint pth2; |
| 1005 |
z107 = (x105, y105-angdec); |
| 1006 |
x187 = x185; y187-y185 = y107-y105; |
| 1007 |
z108 = (z107--z187) intersectionpoint pth2; |
| 1008 |
draw z105--z106; draw z107--z108; |
| 1009 |
|
| 1010 |
%%ductus:=true; |
| 1011 |
if ductus: |
| 1012 |
pickup stylus; |
| 1013 |
fi |
| 1014 |
|
| 1015 |
ductus:=false; |
| 1016 |
penlabels(1,2,3,4,5,11,13,14,23,26,100); |
| 1017 |
endchar; % end "V" |
| 1018 |
|
| 1019 |
cmchar "PGOTH letter W"; |
| 1020 |
beginchar("W", 2cap_sb#+hstretch*((12)*stem_width#), |
| 1021 |
caprat*x_height#, 0); |
| 1022 |
adjust_fit(0,0); |
| 1023 |
numeric n[]; |
| 1024 |
numeric st; st := stem_width; |
| 1025 |
path pth[]; |
| 1026 |
pcshiftx := cap_sb; |
| 1027 |
pickup quill; |
| 1028 |
%% top of stems |
| 1029 |
lft x1 = pcshiftx + 3st; y1 = h; |
| 1030 |
rt x999 = w - pcshiftx; |
| 1031 |
x3 = 1/2[x1,x999]; y3 = h; |
| 1032 |
%% bowl bottoms |
| 1033 |
x21 = x1 - 3/2st; bot y21 = 0; |
| 1034 |
rt x23 = lft x3; bot y23 = 0; |
| 1035 |
pth1 := z21{pdir}..z23; |
| 1036 |
draw pth1; |
| 1037 |
lft x31 = rt x23; bot y31 = top y23; |
| 1038 |
x33 = 1/2[x31,x999]; bot y33 = 0; |
| 1039 |
pth2 := z31{pdir}..z33; |
| 1040 |
draw pth2; |
| 1041 |
%% bottom of stems |
| 1042 |
z2 = (z1--(x1,0)) intersectionpoint pth1; |
| 1043 |
x4 = x3; bot y4 = top y23; |
| 1044 |
draw_upcurlstem(1,2); |
| 1045 |
draw_updiamondstem(3,4,wided,widedmin,diawd,diang); |
| 1046 |
%% right V stem |
| 1047 |
z16 = z33; |
| 1048 |
x15 = x999; top y15 = 3/4h; |
| 1049 |
x13 = 1/2[rt x3, lft x15]; |
| 1050 |
x14 = 1/2[x13,x15]; top y14 = h; |
| 1051 |
y13 = 1/2[y14,y15]; |
| 1052 |
pth3 = z16{pdir}..{up}z15..{left}z14..{-pdir}z13; |
| 1053 |
draw pth3; |
| 1054 |
%% decorations |
| 1055 |
z1tr = (rt x1, top y1); |
| 1056 |
z3tr = (rt x3, top y3); |
| 1057 |
pickup stylus; |
| 1058 |
%% for U |
| 1059 |
z99 = 2/3[z3b,z3c]; |
| 1060 |
x101 - x1 = x3 - x99; top y101 = h; |
| 1061 |
x102 = x101; y102 = y2; |
| 1062 |
x103 = x1tr; y103 = y101; |
| 1063 |
draw z103--z101--z102; |
| 1064 |
x105 = x101; y105 = 1/3h; |
| 1065 |
x106 = x3; (z106-z105) = whatever*pdir; |
| 1066 |
z107 = (x105, y105-angdec); x108 = x106; y108-y106 = y107-y105; |
| 1067 |
draw z105--z106; draw z107--z108; |
| 1068 |
%% for V |
| 1069 |
|
| 1070 |
x301 = x3tr+2/3wided*st; top y301 = y3e; |
| 1071 |
z381 = (x301,-w); |
| 1072 |
z302 = (z301--z381) intersectionpoint pth2; |
| 1073 |
draw z3e--z301--z302; |
| 1074 |
x305 = x301; y305 = 1/3[y302,y301]; |
| 1075 |
x385 = 2w; (z385-z305) = whatever*pdir; |
| 1076 |
z306 = (z305--z385) intersectionpoint pth3; |
| 1077 |
z307 = (x305, y305-angdec); |
| 1078 |
x387 = x385; y387-y385 = y307-y305; |
| 1079 |
z308 = (z307--z387) intersectionpoint pth3; |
| 1080 |
draw z305--z306; draw z307--z308; |
| 1081 |
|
| 1082 |
ductus:=false; |
| 1083 |
penlabels(1,2,3,4,5,6,7,8,9,11,13,14,33,34,53,16,100); |
| 1084 |
endchar; % end "W" |
| 1085 |
|
| 1086 |
cmchar "PGOTH letter X"; |
| 1087 |
beginchar("X", 2cap_sb#+hstretch*((8)*stem_width#), |
| 1088 |
caprat*x_height#, 0); |
| 1089 |
adjust_fit(0,0); |
| 1090 |
path pth[]; |
| 1091 |
numeric n[]; |
| 1092 |
numeric st; st := stem_width; |
| 1093 |
pcshiftx := cap_sb; |
| 1094 |
pickup quill; |
| 1095 |
%% center stem |
| 1096 |
lft x1 = lft x2 = pcshiftx + 3st; |
| 1097 |
y1 = 3/4h; y2 = 1/4h; |
| 1098 |
draw z1--z2; |
| 1099 |
%% top right |
| 1100 |
z21 = z1; top y22 = h; (z22-z21) = whatever*pdir; |
| 1101 |
rt x24 = w-pcshiftx; y24 = y21; |
| 1102 |
pth1 := z21--z22{-ppdir}..{pdir}z24; |
| 1103 |
draw pth1; |
| 1104 |
%% bottom right |
| 1105 |
z31 = z2; |
| 1106 |
rt x33 = w-pcshiftx; bot y33 = 0; |
| 1107 |
pth2 := z31{-ppdir}..{pdir}z33; |
| 1108 |
draw pth2; |
| 1109 |
%% bottom left |
| 1110 |
z41 = z2; |
| 1111 |
bot y43 = -1/4h; (z41-z43) = whatever*pdir; |
| 1112 |
x45 = x43 + st; y45=y43; |
| 1113 |
pth3 := z41--z43{-pdir}..{pdir}z45; |
| 1114 |
pickup stylus; |
| 1115 |
draw pth3; |
| 1116 |
pickup quill; |
| 1117 |
%% top left |
| 1118 |
x11 = x1; y11 = h; |
| 1119 |
draw_upcurlstem(11,1); |
| 1120 |
%% decoration |
| 1121 |
x81 = rt x1; |
| 1122 |
pickup stylus; |
| 1123 |
x101 = x102 = x81 + 2/3wided*st; |
| 1124 |
z101 = whatever[z1,z22]; |
| 1125 |
z102 = (z101--(x101,0)) intersectionpoint pth2; |
| 1126 |
draw z101--z102; |
| 1127 |
pickup quill; |
| 1128 |
%% middle arms |
| 1129 |
z120 = 1/2[z1,z2]; |
| 1130 |
z51 = z120; |
| 1131 |
lft x53 = pcshiftx; top y53 = y51; |
| 1132 |
x52 = 1/2[x51,x53]; y52 = y51; |
| 1133 |
pth5 := z51--z52{left}..{-pdir}z53; |
| 1134 |
draw pth5; |
| 1135 |
lft x61 = x101; y61 = y120; |
| 1136 |
rt x63 = w-pcshiftx; bot y63 = y61; |
| 1137 |
x62 = 1/2[x61,x63]; y62 = y61; |
| 1138 |
pth6 := z61--z62{right}..{pdir}z63; |
| 1139 |
draw pth6; |
| 1140 |
ductus:=false; |
| 1141 |
penlabels(1,2,3,4,5,6,7,8,10,25,251,252,40,50,51,52,53,61,62,63,101,102,150,60,160,100); |
| 1142 |
endchar; % end "X" |
| 1143 |
|
| 1144 |
cmchar "PGOTH letter Y"; |
| 1145 |
beginchar("Y", 2cap_sb#+hstretch*((8)*stem_width#), |
| 1146 |
caprat*x_height#, 1/2caprat*x_height#); |
| 1147 |
adjust_fit(0,0); |
| 1148 |
numeric n[]; |
| 1149 |
numeric st; st := stem_width; |
| 1150 |
path pth[]; |
| 1151 |
pcshiftx := cap_sb; |
| 1152 |
pickup quill; |
| 1153 |
%% stem tops |
| 1154 |
lft x1 = pcshiftx + 3st; y1 = h; |
| 1155 |
rt x3 = w - pcshiftx - widedmin*st; y3 = h; |
| 1156 |
x7 = x1 - 3/2st; bot y7 = 0; |
| 1157 |
x9 = 1/2[x1,x3]; bot y9 = 0; |
| 1158 |
pth1 := z7{pdir}..{right}z9; |
| 1159 |
draw pth1; |
| 1160 |
%% left stem bottom |
| 1161 |
x81 = x1; y81 = - h; |
| 1162 |
z2 = (z1--z81) intersectionpoint pth1; |
| 1163 |
draw_upcurlstem(1,2); |
| 1164 |
%% right stem |
| 1165 |
x4 = x3; y4 = 0; |
| 1166 |
x5 = x4; y5 = -1/4d; |
| 1167 |
lft x6 = x9; bot y6 = -d; |
| 1168 |
draw_updiamondstem(3,4,wided,widedmin,diawd,diang); |
| 1169 |
draw z6{pdir}..{up}z5--z4; |
| 1170 |
z3cd = 1/2[z3c,z3d]; |
| 1171 |
pth2 = z5--z3a--z3cd; |
| 1172 |
%% fill bowl bottom |
| 1173 |
x91 = x3; (z91-z9) = whatever*pdir; |
| 1174 |
draw z9--z91; |
| 1175 |
|
| 1176 |
%% decoration |
| 1177 |
z1tr = (rt x1, top y1); |
| 1178 |
x101 = x1tr + 2/3wided*st; |
| 1179 |
pickup stylus; |
| 1180 |
top y101 = h; |
| 1181 |
z103 = (x1tr,y101); |
| 1182 |
z181 = (x101,-w); |
| 1183 |
z102 = (z101--z181) intersectionpoint pth1; |
| 1184 |
draw z103--z101--z102; |
| 1185 |
x105 = x101; y105 = 1/3[y102,y101]; |
| 1186 |
x185 = 2w; (z185-z105) = whatever*pdir; |
| 1187 |
z106 = (z105--z185) intersectionpoint pth2; |
| 1188 |
z107 = (x105, y105-angdec); |
| 1189 |
x187 = x185; y187-y185 = y107-y105; |
| 1190 |
z108 = (z107--z187) intersectionpoint pth2; |
| 1191 |
draw z105--z106; draw z107--z108; |
| 1192 |
ductus:=false; |
| 1193 |
penlabels(1,2,3,4,5,6,7,8,9,10,100,101,102,181); |
| 1194 |
endchar; % end "Y" |
| 1195 |
|
| 1196 |
cmchar "PGOTH letter Z"; |
| 1197 |
beginchar("Z", 2cap_sb#+hstretch*((5)*stem_width#), |
| 1198 |
caprat*x_height#, 0); |
| 1199 |
adjust_fit(0,0); |
| 1200 |
numeric n[]; |
| 1201 |
numeric st; st := stem_width; |
| 1202 |
path pth[]; |
| 1203 |
pcshiftx := cap_sb; |
| 1204 |
pickup quill; |
| 1205 |
%% top bar ends |
| 1206 |
top y12 = h; |
| 1207 |
n1 := h - y12; |
| 1208 |
lft x1 = pcshiftx; rt x2 = w-pcshiftx-perpdec; |
| 1209 |
%%y1 = y12-n1; y2=y12+n1; |
| 1210 |
y1 = y12-n1/2; y2=y12; |
| 1211 |
x12 = 1/2[x1,x2]; |
| 1212 |
pth1 := z1{pdir}..z12{right}..z2{pdir}; |
| 1213 |
x102 = rt x2; y102 = top y2; x202 = x102+perpdec; y202=y102; |
| 1214 |
%% bottom bar ends |
| 1215 |
bot y34 = 0; |
| 1216 |
x3=x1+perpdec; rt x4= w-pcshiftx; |
| 1217 |
y3=y34-n1/2; y4=y34; |
| 1218 |
x34 = 1/2[x3,x4]; |
| 1219 |
pth2 := z3{pdir}..z34{right}..z4{pdir}; |
| 1220 |
x203 = lft x3; y203 = bot y3; x103 = x203-perpdec; y103=y203; |
| 1221 |
%% centre bar |
| 1222 |
z5 = (x1,1/2[y1,y3]); z6 = (x4,1/2[y2,y4]); z56 = 1/2[z5,z6]; |
| 1223 |
pth3 := z5{pdir}..z56{right}..z6{pdir}; |
| 1224 |
draw pth1; draw pth2; % bars |
| 1225 |
draw pth3; |
| 1226 |
%% decorations |
| 1227 |
pickup stylus; |
| 1228 |
draw z102--z103; draw z202--z203; |
| 1229 |
unfill z102--z103--z203--z202--cycle; |
| 1230 |
draw z102--z103; draw z202--z203; |
| 1231 |
ductus:=false; |
| 1232 |
penlabels(1,2,3,4,5,6,10o,10i,20o,20i,100); |
| 1233 |
endchar; % end "Z" |
| 1234 |
|