| 1 |
%Boisik Latin letters in Roman form |
| 2 |
%(plus blackboard-bold and sans-serif variants for math only!) |
| 3 |
|
| 4 |
numeric bbs; bbs:=if cap_hair+eps>tiny-eps: 2 else 1 fi; %correction for BB letters |
| 5 |
|
| 6 |
charscription(14u,cap_height,0)( |
| 7 |
numeric alpha, right_stem, left_stem; |
| 8 |
lft x1l=2u; rt x2r=w-2u; bot y1l=bot y2r=0; |
| 9 |
x3l=.5w; top y3l=h+apex_o; |
| 10 |
left_stem=cap_hair; |
| 11 |
right_stem=cap_stem; |
| 12 |
alpha=diag_ratio(2,left_stem,y3l-y1l,x3l-x1l); |
| 13 |
pos1(alpha*left_stem,0); pos2(alpha*right_stem,0); |
| 14 |
pos1'(alpha*left_stem,0); pos2'(alpha*right_stem,0); |
| 15 |
y4=y5=.35h; z1'l=z3l=z2'r; |
| 16 |
z3'=whatever[z1'r,z1r]=whatever[z2'l,z2l]; y3'l=y3'r=y3'-.25[cap_hair,cap_stem]; |
| 17 |
z3'l=whatever[z3',z1r]; z3'r=whatever[z3',z2l]; |
| 18 |
pos4(cap_bar,angle(z3'-z1r)); pos5(cap_bar,angle(z3'-z2l)); |
| 19 |
z4l=whatever[z1'r,z3']; z5l=whatever[z2'l,z3']; |
| 20 |
cap_serifs_bl(1l); cap_serifs_br(1r); cap_serifs_br_p(2r,.8); cap_serifs_bl(2l); |
| 21 |
y3''=y1r.b if bold_face: -hair fi; z3''=whatever[z1r,z3']; |
| 22 |
filldraw z1l+ser_boule*up..{left}z1l.a{left}..{right}z1l.c..diag_serif(1l,3l)---z3l--- |
| 23 |
diag_serif(2r,3l)..{right}z2r.c..z2r.a{left}..z2r+ser_boule*up.. |
| 24 |
{left}z2l.a..{right}z2l.c..diag_serif(2l,3')---obl(5l,2l,4l)--- |
| 25 |
obl(4l,5l,1l)---z3'' ..z1r.c{right}.. |
| 26 |
z1r.a{left}..cycle; |
| 27 |
infill z3'r..z3'l---obl(4r,3'l,5r)---obl(5r,4r,3'r)---cycle; |
| 28 |
penlabels(1,1',2,2',3,3',4,5); labels(3''); |
| 29 |
); |
| 30 |
|
| 31 |
iff known chars.latin_A: |
| 32 |
bskchar "The letter A"; |
| 33 |
beginchar(chars.latin_A,14u#,cap_height#,0); uni "0x0041"; |
| 34 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 35 |
pickup tiny.nib; |
| 36 |
usechar; |
| 37 |
endchar; |
| 38 |
|
| 39 |
iff known chars.latin_Aacute: |
| 40 |
bskchar "The letter A with acute"; |
| 41 |
beginchar(chars.latin_Aacute,14u#,Acc_height#,0); uni "0x00C1"; |
| 42 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 43 |
pickup tiny.nib; |
| 44 |
usechar; |
| 45 |
x101=x2'l; |
| 46 |
acute(100,101).capital; |
| 47 |
endchar; |
| 48 |
|
| 49 |
iff known chars.latin_Agrave: |
| 50 |
bskchar "The letter A with grave"; |
| 51 |
beginchar(chars.latin_Agrave,14u#,Acc_height#,0); uni "0x00C0"; |
| 52 |
pickup tiny.nib; |
| 53 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 54 |
usechar; |
| 55 |
x101=x3l+(x3l-x2'l); |
| 56 |
grave(100,101).capital; |
| 57 |
endchar; |
| 58 |
|
| 59 |
iff known chars.latin_Adoublegrave: |
| 60 |
bskchar "The letter A with doublegrave"; |
| 61 |
beginchar(chars.latin_Adoublegrave,14u#,Acc_height#,0); uni "0x0200"; |
| 62 |
pickup tiny.nib; |
| 63 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 64 |
usechar; |
| 65 |
x102-x100=3u; .5[x101,x103]=x3l; |
| 66 |
d_grave(100,101,102,103,whatever).capital; |
| 67 |
endchar; |
| 68 |
|
| 69 |
iff known chars.latin_Aumlaut: |
| 70 |
bskchar "The letter A with umlaut"; |
| 71 |
beginchar(chars.latin_Aumlaut,14u#,Acc_height#,0); uni "0x00C4"; |
| 72 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 73 |
pickup tiny.nib; |
| 74 |
usechar; |
| 75 |
.5[x100,x101]=x3l; x101-x100=2/3(x5-x4); |
| 76 |
umlaut(100,101); |
| 77 |
endchar; |
| 78 |
|
| 79 |
iff known chars.latin_Acircumflex: |
| 80 |
bskchar "The letter A with circumflex"; |
| 81 |
beginchar(chars.latin_Acircumflex,14u#,Acc_height#,0); uni "0x00C2"; |
| 82 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 83 |
pickup tiny.nib; |
| 84 |
usechar; |
| 85 |
x101=x3l; |
| 86 |
circumflex(100,101,102).capital; |
| 87 |
endchar; |
| 88 |
|
| 89 |
iff known chars.latin_Acaron: |
| 90 |
bskchar "The letter A with caron"; |
| 91 |
beginchar(chars.latin_Acaron,14u#,Acc_height#,0); uni "0x01CD"; |
| 92 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 93 |
pickup tiny.nib; |
| 94 |
usechar; |
| 95 |
x101=x1'r; bot y101l=cap_height+apex_o; |
| 96 |
hacek(100,101,102).capital; |
| 97 |
endchar; |
| 98 |
|
| 99 |
iff known chars.latin_Abreve: |
| 100 |
bskchar "The letter A with breve"; |
| 101 |
beginchar(chars.latin_Abreve,14u#,Acc_height#+apex_o#,0); uni "0x0102"; |
| 102 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 103 |
pickup tiny.nib; |
| 104 |
usechar; |
| 105 |
x101=x1'r; x102-x100=5u; bot y101l=top cap_height+apex_o; |
| 106 |
breve(100,101,102).capital; |
| 107 |
endchar; |
| 108 |
|
| 109 |
iff known chars.latin_Ainvbreve: |
| 110 |
bskchar "The letter A with inverted breve"; |
| 111 |
beginchar(chars.latin_Ainvbreve,14u#,Acc_height#,0); uni "0x0202"; |
| 112 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 113 |
pickup tiny.nib; |
| 114 |
usechar; |
| 115 |
x101=x1'r; x102-x100=5u; |
| 116 |
tieacc(100,101,102).capital; |
| 117 |
endchar; |
| 118 |
|
| 119 |
iff known chars.latin_Amacron: |
| 120 |
bskchar "The letter A with macron"; |
| 121 |
beginchar(chars.latin_Amacron,14u#,Acc_height#-.1x_height#,0); uni "0x0100"; |
| 122 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 123 |
pickup tiny.nib; |
| 124 |
usechar; |
| 125 |
macron(100,101); |
| 126 |
endchar; |
| 127 |
|
| 128 |
iff known chars.latin_Atilde: |
| 129 |
bskchar "The letter A with tilde"; |
| 130 |
beginchar(chars.latin_Atilde,14u#,Acc_height#,0); uni "0x00C3"; |
| 131 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 132 |
pickup tiny.nib; |
| 133 |
usechar; |
| 134 |
x101-x100=6u; bot y100=top y3l; |
| 135 |
tilde(100,101).capital; |
| 136 |
endchar; |
| 137 |
|
| 138 |
iff known chars.latin_Aring: |
| 139 |
bskchar "The letter A with ring"; |
| 140 |
beginchar(chars.latin_Aring,14u#,Acc_height#,0); uni "0x00C5"; |
| 141 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 142 |
pickup tiny.nib; |
| 143 |
usechar; |
| 144 |
x100=x3l; x100-x101=1.3u; |
| 145 |
ring(100,101).capital; |
| 146 |
endchar; |
| 147 |
|
| 148 |
iff known chars.latin_Adotabove: |
| 149 |
bskchar "The letter A with dot above"; |
| 150 |
beginchar(chars.latin_Adotabove,14u#,Acc_height#,0); uni "0x0226"; |
| 151 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 152 |
pickup tiny.nib; |
| 153 |
usechar; |
| 154 |
x100=x3l; |
| 155 |
dotabove(100); |
| 156 |
endchar; |
| 157 |
|
| 158 |
iff known chars.latin_A_BB: |
| 159 |
bskchar "The blackboard-bold letter A"; |
| 160 |
beginchar(chars.latin_A_BB,14u#,cap_height#,0); uni "0x1D538"; |
| 161 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 162 |
pickup tiny.nib; |
| 163 |
usechar; |
| 164 |
numeric oblu.more; oblu.more:=2oblu; |
| 165 |
bot y100=y2r.c; z100=whatever[z3l,z2r]; |
| 166 |
infill ifobl(3',3l,2r,2l,,more)---obl(100,3l,2r.c)..z2r---obl(2l,2r,3')---cycle; |
| 167 |
labels(100); |
| 168 |
endchar; |
| 169 |
|
| 170 |
iff known chars.latin_Aogonek: |
| 171 |
bskchar "The letter A with ogonek"; |
| 172 |
beginchar(chars.latin_Aogonek,14u#,cap_height#,.85desc_depth#); uni "0x0104"; |
| 173 |
adjust_fit(0,0); |
| 174 |
pickup tiny.nib; |
| 175 |
numeric alpha, right_stem, left_stem; |
| 176 |
lft x1l=2u; rt x2r=w-2u; bot y1l=bot y2r=0; |
| 177 |
x3l=.5w; top y3l=h+apex_o; |
| 178 |
left_stem=cap_hair; |
| 179 |
right_stem=cap_stem; |
| 180 |
alpha=diag_ratio(2,left_stem,y3l-y1l,x3l-x1l); |
| 181 |
pos1(alpha*left_stem,0); pos2(alpha*right_stem,0); |
| 182 |
pos1'(alpha*left_stem,0); pos2'(alpha*right_stem,0); |
| 183 |
pos6(stem,0); pos7(curve,0); pos8(hair,45); pos9(hair,160); |
| 184 |
y4=y5=.35h; z1'l=z3l=z2'r; |
| 185 |
z3'=whatever[z1'r,z1r]=whatever[z2'l,z2l]; y3'l=y3'r=y3'-.25[cap_hair,cap_stem]; |
| 186 |
z3'l=whatever[z3',z1r]; z3'r=whatever[z3',z2l]; |
| 187 |
pos4(cap_bar,angle(z3'-z1r)); pos5(cap_bar,angle(z3'-z2l)); |
| 188 |
z4l=whatever[z1'r,z3']; z5l=whatever[z2'l,z3']; |
| 189 |
cap_serifs_bl(1l); cap_serifs_br(1r); cap_serifs_br_p(2r,.8); cap_serifs_bl(2l); |
| 190 |
y3''=y1r.b if bold_face: -hair fi; z3''=whatever[z1r,z3']; |
| 191 |
x6=x7l+1.5u=x2l.a; x8-x7l=3u; rt x9l=x8+1.5u; |
| 192 |
bot y6=0; y7=-.5d; bot y8l=-d; y9=-2/3d; |
| 193 |
filldraw z1l+ser_boule*up..{left}z1l.a{left}..{right}z1l.c..diag_serif(1l,3l)--z3l-- |
| 194 |
diag_serif(2r,3l)..{right}z2r.c..z2r.a{left}..z2+ser_boule*up.. |
| 195 |
{left}z6r&z6r..z7r..z8r..{z6-z7}z9r..z9l{z7-z6}..z8l..z7l..{z6r-z7l}z6l..{right}z2l.c..diag_serif(2l,3')---obl(5l,2l,4l)--- |
| 196 |
obl(4l,5l,1l)---z3'' ..z1r.c{right}.. |
| 197 |
z1r.a{left}..cycle; |
| 198 |
infill z3'r..z3'l---obl(4r,3'l,5r)---obl(5r,4r,3'r)---cycle; |
| 199 |
penlabels(1,1',2,2',3,3',4,5,6,7,8,9); labels(3''); |
| 200 |
endchar; |
| 201 |
|
| 202 |
iff known chars.latin_A_SS: |
| 203 |
bskchar "The sans-serif letter A"; |
| 204 |
beginchar(chars.latin_A_SS,14u#,cap_height#,0); uni "0x1D5A0"; |
| 205 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 206 |
pickup tiny.nib; |
| 207 |
numeric alpha, right_stem, left_stem; |
| 208 |
lft x1l=2u; rt x2r=w-2u; bot y1l=bot y2r=0; |
| 209 |
x3l=.5w; top y3l=h+apex_o; |
| 210 |
left_stem=cap_hair; |
| 211 |
right_stem=cap_stem; |
| 212 |
alpha=diag_ratio(2,left_stem,y3l-y1l,x3l-x1l); |
| 213 |
pos1(alpha*left_stem,0); pos2(alpha*right_stem,0); |
| 214 |
pos1'(alpha*left_stem,0); pos2'(alpha*right_stem,0); |
| 215 |
y4=y5=.35h; z1'l=z3l=z2'r; |
| 216 |
z3'=whatever[z1'r,z1r]=whatever[z2'l,z2l]; y3'l=y3'r=y3'-.25[cap_hair,cap_stem]; |
| 217 |
z3'l=whatever[z3',z1r]; z3'r=whatever[z3',z2l]; |
| 218 |
pos4(cap_bar,angle(z3'-z1r)); pos5(cap_bar,angle(z3'-z2l)); |
| 219 |
z4l=whatever[z1'r,z3']; z5l=whatever[z2'l,z3']; |
| 220 |
cap_serifs_bl(1l); cap_serifs_br(1r); cap_serifs_br_p(2r,.8); cap_serifs_bl(2l); |
| 221 |
y3''=y1r.b if bold_face: -hair fi; z3''=whatever[z1r,z3']; |
| 222 |
y100l=y100r=y101l=y101r=.5[y1l.b,y1]; |
| 223 |
z100l=whatever[z1l,z3l]; z100r=whatever[z1r,z4l]; |
| 224 |
z101l=whatever[z2l,z5l]; z101r=whatever[z2r,z3l]; |
| 225 |
oblu:=cap_bar; |
| 226 |
filldraw z100l---z3l---z101r..z2..z101l---obl(5l,2l,4l)---obl(4l,5l,1l)---z100r...z1...cycle; |
| 227 |
infill z3'r..z3'l---obl(4r,3'l,5r)---obl(5r,4r,3'r)---cycle; |
| 228 |
penlabels(1,1',2,2',3,3',4,5,100,101); labels(3''); |
| 229 |
endchar; |
| 230 |
|
| 231 |
charscription(13u,cap_height,0)( |
| 232 |
numeric tim[]; path p[]; |
| 233 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 234 |
bot y1=0; top y2=h-drop_stem; |
| 235 |
lft x1l= lft x2l= 2u; |
| 236 |
pos3(ser_height,270); pos4(cap_hair,270); pos5(cap_curve,0); |
| 237 |
pos6(.75cap_hair,90); pos7(ser_height,90); |
| 238 |
pos8(.7ser_height,270); pos9(cap_hair,270); pos10(.95cap_curve,180); |
| 239 |
x3=x7=x1r; y7=y6=com_height; rt x5r=w-u; y5=.45[y4,y6]; |
| 240 |
bot y3r=bot y4r=0; x6=.5[x7,x9]; x4=.5[x1r,x5l]; |
| 241 |
y8l+serif_o=y9l; top y9l=h+drop_stem; x8=x3; x9=.5[x6,x4]; |
| 242 |
x5-x10=.3cap_curve; y10=.45[y9,y6]; |
| 243 |
cap_serifs_tl(2l); cap_serifs_bl(1l); |
| 244 |
p0=z1l.b{down}..{left}z1l.c..z1l.a{right}..z1+ser_boule*up..z3r---z4r..z5r..z6r---z7; |
| 245 |
p1=z7l{dir90}..{right}z6l..z5l..{left}z4l..{up}z3l; |
| 246 |
p2=z2l.b{up}..{left}z2l.c..{right}z2l.a..z9l..z10l..z6---z7; |
| 247 |
p3=z7r{dir-90}..{right}z6r..z10r..z9r{left}..{down}z8r; |
| 248 |
z0=bsktouch(p0,2up,p2,2down); |
| 249 |
tim1=xpart(p0 intersectiontimes (z0--(x0,bar_height))); |
| 250 |
tim2=xpart(p2 intersectiontimes (z0--(x0,x_height))); |
| 251 |
filldraw subpath(0,rundy(p0,tim1).zpet) of p0 |
| 252 |
..(reverse subpath(0,rundy(p2,tim2).zpet) of p2)--cycle; |
| 253 |
infill p1---cycle; |
| 254 |
infill p3---cycle; |
| 255 |
penlabels(0,1,2,3,4,5,6,7,8,9,10); |
| 256 |
); |
| 257 |
|
| 258 |
iff known chars.latin_B: |
| 259 |
bskchar "The letter B"; |
| 260 |
beginchar(chars.latin_B,13u#,cap_height#,0); uni "0x0042"; |
| 261 |
italcorr .5[x_height#,cap_height#]*slant-.25u#; |
| 262 |
adjust_fit(cap_serif_fit#,0); |
| 263 |
pickup tiny.nib; |
| 264 |
usechar; |
| 265 |
math_fit(0,.75ic#); |
| 266 |
endchar; |
| 267 |
|
| 268 |
iff known chars.latin_B_BB: |
| 269 |
bskchar "The blackboard-bold letter B"; |
| 270 |
beginchar(chars.latin_B_BB,13u#,cap_height#,0); uni "0x1D539"; |
| 271 |
italcorr .5[x_height#,cap_height#]*slant-.25u#; |
| 272 |
adjust_fit(cap_serif_fit#,0); |
| 273 |
pickup tiny.nib; |
| 274 |
usechar; |
| 275 |
bot z100=(x1l,y1l.c); top z101=(x2l,y2l.c); |
| 276 |
infill obl(2r,2l,1r)---obl(1r,2r,1l)---z1l...obl(100,1l.c,2l)---obl(101,1l,2l.c)...z2l---cycle; |
| 277 |
z102=bsktouch(subpath(3,4) of p2,bbs*dir-90,p3,dir60); |
| 278 |
z103=bsktouch(subpath(5,6) of p0,bbs*dir90,p1,dir-60); |
| 279 |
tim100-5=xpart(subpath(5,6) of p0 intersectiontimes (z103--(x103,y4r))); |
| 280 |
tim101-3=xpart(subpath(3,4) of p2 intersectiontimes (z102--(x102,y9l+5))); |
| 281 |
tim102=xpart(p3 intersectiontimes (z102--(x102,y10))); |
| 282 |
tim103=xpart(p3 intersectiontimes ((x0-hair-1,y0)--(x0-hair-1,y10))); |
| 283 |
tim104=xpart(p1 intersectiontimes ((x0-hair-1,y0)--(x0-hair-1,y5))); |
| 284 |
tim105=xpart(p1 intersectiontimes (z4+u*right--(x4+u,y5))); |
| 285 |
tim106=xpart(p1 intersectiontimes (z103--(x103,y5))); |
| 286 |
infill subpath(rundy(p0,(tim100,bbw)),rundy(p0,tim1).zpet) of p0 |
| 287 |
..(reverse subpath(rundy(p2,(tim101,bbw)),rundy(p2,tim2).zpet) of p2) |
| 288 |
..(reverse subpath(tim103,rundy(p3,(tim102,bbw)).zpet) of p3) |
| 289 |
..subpath(tim104,rundy(p1,(tim106,bbw)).zpet) of p1..cycle; |
| 290 |
labels(102,103); |
| 291 |
endchar; |
| 292 |
|
| 293 |
iff known chars.latin_B_SS: |
| 294 |
bskchar "The sans-serif letter B"; |
| 295 |
beginchar(chars.latin_B_SS,13u#,cap_height#,0); uni "0x1D5A1"; |
| 296 |
italcorr .5[x_height#,cap_height#]*slant-.25u#; |
| 297 |
adjust_fit(cap_serif_fit#,0); |
| 298 |
pickup tiny.nib; |
| 299 |
numeric tim[]; path p[]; |
| 300 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 301 |
bot y1=0; top y2=h-drop_stem; |
| 302 |
lft x1l= lft x2l= 2u; |
| 303 |
pos3(1.5cap_stem,270); pos4(cap_hair,270); pos5(cap_curve,0); |
| 304 |
pos6(cap_hair,90); pos7(1.5cap_stem,90); |
| 305 |
pos8(ser_height,270); pos9(cap_hair,270); pos10(.95cap_curve,180); |
| 306 |
x3=x7=x1r; y7=y6=com_height; rt x5r=w-u; y5=.45[y4,y6]; |
| 307 |
bot y3r=bot y4r=0; x6=.5[x7,x9]; x4=.5[x1r,x5l]; |
| 308 |
y8l+serif_o=y9l; top y9l=h+drop_stem; x8=x3; x9=.5[x6,x4]; |
| 309 |
x5-x10=.3cap_curve; y10=.45[y9,y6]; |
| 310 |
cap_serifs_tl(2l); cap_serifs_bl(1l); |
| 311 |
p0=z1l.b{down}..z1..z3r---z4r..z5r..z6r---z7; |
| 312 |
p1=z7l{dir90}..{right}z6l..z5l..{left}z4l..{up}z3l; |
| 313 |
p2=z2l.b{up}..z2---z9l..z10l..z6---z7; |
| 314 |
p3=z7r{dir-90}..{right}z6r..z10r..z9r{left}..{down}z8r; |
| 315 |
z0=bsktouch(p0,2up,p2,2down); |
| 316 |
tim1=xpart(p0 intersectiontimes (z0--(x0,bar_height))); |
| 317 |
tim2=xpart(p2 intersectiontimes (z0--(x0,x_height))); |
| 318 |
filldraw subpath(0,rundy(p0,tim1).zpet) of p0 |
| 319 |
..(reverse subpath(0,rundy(p2,tim2).zpet) of p2)--cycle; |
| 320 |
infill p1---cycle; |
| 321 |
infill p3---cycle; |
| 322 |
penlabels(0,1,2,3,4,5,6,7,8,9,10); |
| 323 |
endchar; |
| 324 |
|
| 325 |
iff known chars.sign_baht: |
| 326 |
bskchar "Baht sign"; |
| 327 |
beginchar(chars.sign_baht,13u#,Acc_height#,Acc_height#-cap_height#); uni "0x0E3F"; |
| 328 |
italcorr .5[x_height#,cap_height#]*slant-.25u#; |
| 329 |
adjust_fit(cap_serif_fit#,0); |
| 330 |
pickup tiny.nib; |
| 331 |
numeric tim[]; path p[]; |
| 332 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 333 |
bot y1=0; top y2=cap_height-drop_stem; |
| 334 |
lft x1l= lft x2l= 2u; |
| 335 |
pos3(ser_height,270); pos4(cap_hair,270); pos5(cap_curve,0); |
| 336 |
pos6(.75cap_hair,90); pos7(ser_height,90); |
| 337 |
pos8(.7ser_height,270); pos9(cap_hair,270); pos10(.95cap_curve,180); |
| 338 |
pos11(hair,0); pos12(hair,0); |
| 339 |
x3=x7=x1r; y7=y6=com_height; rt x5r=w-u; y5=.45[y4,y6]; |
| 340 |
bot y3r=bot y4r=0; x6=.5[x7,x9]; x4=.5[x1r,x5l]; |
| 341 |
y8l+serif_o=y9l; top y9l=cap_height+drop_stem; x8=x3; x9=.5[x6,x4]; |
| 342 |
x5-x10=.3cap_curve; y10=.45[y9,y6]; |
| 343 |
x11=x12=.5[x4,x9]; top y11=h; bot y12=-d; |
| 344 |
cap_serifs_tl(2l); cap_serifs_bl(1l); |
| 345 |
p0=z1l.b{down}..{left}z1l.c..z1l.a{right}..z1+ser_boule*up..z3r---z4r..z5r..z6r---z7; |
| 346 |
p1=z7l{dir90}..{right}z6l..z5l..{left}z4l..{up}z3l; |
| 347 |
p2=z2l.b{up}..{left}z2l.c..{right}z2l.a..z9l..z10l..z6---z7; |
| 348 |
p3=z7r{dir-90}..{right}z6r..z10r..z9r{left}..{down}z8r; |
| 349 |
p4=z12l--z11l; |
| 350 |
p5=z11r--z12r; |
| 351 |
z0=bsktouch(p0,2up,p2,2down); |
| 352 |
tim1=xpart(p0 intersectiontimes (z0--(x0,bar_height))); |
| 353 |
tim2=xpart(p2 intersectiontimes (z0--(x0,x_height))); |
| 354 |
(tim3,tim4)=p2 intersectiontimes p4; |
| 355 |
(tim5,tim6)=p2 intersectiontimes p5; |
| 356 |
(tim7,tim8)=p0 intersectiontimes p4; |
| 357 |
(tim9,tim10)=p0 intersectiontimes p5; |
| 358 |
(tim11,tim12)=p1 intersectiontimes p4; |
| 359 |
(tim13-2,tim14)=subpath(2,infinity) of p1 intersectiontimes p4; |
| 360 |
(tim15,tim16)=p1 intersectiontimes p5; |
| 361 |
(tim17-2,tim18)=subpath(2,infinity) of p1 intersectiontimes p5; |
| 362 |
(tim19,tim20)=p3 intersectiontimes p4; |
| 363 |
(tim21-2,tim22)=subpath(2,infinity) of p3 intersectiontimes p4; |
| 364 |
(tim23,tim24)=p3 intersectiontimes p5; |
| 365 |
(tim25-2,tim26)=subpath(2,infinity) of p3 intersectiontimes p5; |
| 366 |
filldraw subpath(0,rundy(p0,tim7).zpet) of p0 |
| 367 |
..(reverse (subpath(rundy(p5,tim10),infinity) of p5 |
| 368 |
..subpath(0,rundy(p4,tim8).zpet) of p4)) |
| 369 |
..subpath(rundy(p0,tim9),rundy(p0,tim1).zpet) of p0 |
| 370 |
..(reverse (subpath(0,rundy(p2,tim3).zpet) of p2 |
| 371 |
..subpath(rundy(p4,tim4),infinity) of p4 |
| 372 |
..subpath(0,rundy(p5,tim6).zpet) of p5 |
| 373 |
..subpath(rundy(p2,tim5),rundy(p2,tim2).zpet) of p2)) |
| 374 |
--cycle; |
| 375 |
infill subpath(0,rundy(p1,tim11).zpet) of p1 |
| 376 |
..subpath(rundy(p4,tim12).zpet,rundy(p4,tim14)) of p4 |
| 377 |
..subpath(rundy(p1,tim13),infinity) of p1---cycle; |
| 378 |
infill subpath(rundy(p1,tim15),rundy(p1,tim17).zpet) of p1 |
| 379 |
..subpath(rundy(p5,tim18).zpet,rundy(p5,tim16)) of p5..cycle; |
| 380 |
infill subpath(0,rundy(p3,tim19).zpet) of p3 |
| 381 |
..subpath(rundy(p4,tim20),rundy(p4,tim22).zpet) of p4 |
| 382 |
..subpath(rundy(p3,tim21),infinity) of p3---cycle; |
| 383 |
infill subpath(rundy(p3,tim23),rundy(p3,tim25).zpet) of p3 |
| 384 |
..subpath(rundy(p5,tim26),rundy(p5,tim24).zpet) of p5..cycle; |
| 385 |
penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12); |
| 386 |
endchar; |
| 387 |
|
| 388 |
charscription(13.3u,cap_height,0)( |
| 389 |
path p[]; numeric tim[], sersh; |
| 390 |
sersh=.15tiny; |
| 391 |
pos1(cap_curve,0); pos2(1.1cap_hair,90); pos3(cap_hair,180); pos4(cap_hair,270); |
| 392 |
lft x1l=u-o; rt x3r=w-u; y1=y3=.5h; x2=x4=.5[x1,x3]; bot y2l=-o; top y4l=h+o; |
| 393 |
p0:=z1r{down}..z2r..z3r..z4r..{down}cycle; |
| 394 |
p1:=z1l{down}..z2l..z3l..z4l..{down}cycle; |
| 395 |
z5'=((.5w,y3+.2h)--(2w,y3+.2h)) intersectionpoint p0; tim1= ypart(((.5w,y3+.2h)--(2w,y3+.2h)) intersectiontimes reverse p0); |
| 396 |
z5''=((.5w,y3-.2h+o)--(2w,y3-.2h+o)) intersectionpoint p0; tim2= ypart(((.5w,y3-.2h)--(2w,y3-.2h)) intersectiontimes p0); |
| 397 |
z5'a=z5'+serif_o*right; z5'b=(x5'a-sersh,h+o); z5'c=(.35[x4,x3r],y3); |
| 398 |
z5'd=(z5'c--z5'b) intersectionpoint p1; z5'e=.35[z5'b,z5'd]; |
| 399 |
tim3=ypart(((.5w,y5'e+.15ser_height)--(w,y5'e+.15ser_height)) intersectiontimes p1); |
| 400 |
z5''a=z5''+serif_o*right; z5''b=(x5''a-sersh,0); z5''c=(.15[x4,x3r],y3); |
| 401 |
z5''d=(z5''c--z5''b) intersectionpoint p1; z5''e=.5[z5''b,z5''d]; |
| 402 |
tim4=ypart(((.5w,y5''e-.25ser_height)--(w,y5''e-.25ser_height)) intersectiontimes p1); |
| 403 |
p2:=counterclockwise (subpath(0,tim1) of reverse p0..z5'a--z5'b---z5'e..subpath (tim3,5) of p1.. |
| 404 |
reverse (subpath(0,tim2) of p0..z5''a--z5''b---z5''e.. |
| 405 |
reverse subpath (1,tim4) of p1) & cycle); |
| 406 |
bskcharscriptcmd; |
| 407 |
filldraw p2; |
| 408 |
penlabels(1,2,3,4); labels(5,5',5'a,5'b,5'c,5'd,5'e,5'',5''a,5''b,5''c,5''d,5''e,); |
| 409 |
); |
| 410 |
|
| 411 |
iff known chars.latin_C: |
| 412 |
bskchar "The letter C"; |
| 413 |
beginchar(chars.latin_C,13.3u#,cap_height#,0); uni "0x0043"; |
| 414 |
italcorr cap_height#*slant; |
| 415 |
adjust_fit(0,0); |
| 416 |
pickup tiny.nib; |
| 417 |
usechar; |
| 418 |
math_fit(-.5cap_height#*slant+.5u#,.75ic#); |
| 419 |
endchar; |
| 420 |
|
| 421 |
iff known chars.latin_Ccaron: |
| 422 |
bskchar "The letter C with caron"; |
| 423 |
beginchar(chars.latin_Ccaron,13.3u#,Acc_height#,0); uni "0x010C"; |
| 424 |
italcorr cap_height#*slant; |
| 425 |
adjust_fit(0,0); |
| 426 |
pickup tiny.nib; |
| 427 |
usechar; |
| 428 |
x101=x4; |
| 429 |
hacek(100,101,102).capital; |
| 430 |
endchar; |
| 431 |
|
| 432 |
iff known chars.latin_Cacute: |
| 433 |
bskchar "The letter C with acute"; |
| 434 |
beginchar(chars.latin_Cacute,13.3u#,Acc_height#,0); uni "0x0106"; |
| 435 |
italcorr cap_height#*slant; |
| 436 |
adjust_fit(0,0); |
| 437 |
pickup tiny.nib; |
| 438 |
usechar; |
| 439 |
x101=x4-u; |
| 440 |
acute(100,101).capital; |
| 441 |
endchar; |
| 442 |
|
| 443 |
iff known chars.latin_Ccircumflex: |
| 444 |
bskchar "The letter C with circumflex"; |
| 445 |
beginchar(chars.latin_Ccircumflex,13.3u#,Acc_height#,0); uni "0x0108"; |
| 446 |
italcorr cap_height#*slant; |
| 447 |
adjust_fit(0,0); |
| 448 |
pickup tiny.nib; |
| 449 |
usechar; |
| 450 |
x101=x4; |
| 451 |
circumflex(100,101,102).capital; |
| 452 |
endchar; |
| 453 |
|
| 454 |
iff known chars.latin_Cdotabove: |
| 455 |
bskchar "The letter C with dot above"; |
| 456 |
beginchar(chars.latin_Cdotabove,13.3u#,Acc_height#,0); uni "0x010A"; |
| 457 |
italcorr cap_height#*slant; |
| 458 |
adjust_fit(0,0); |
| 459 |
pickup tiny.nib; |
| 460 |
usechar; |
| 461 |
x100=x4; |
| 462 |
dotabove(100); |
| 463 |
endchar; |
| 464 |
|
| 465 |
iff known chars.latin_C_BB: |
| 466 |
bskchar "The blackboard-bold letter C"; |
| 467 |
beginchar(chars.latin_C_BB,13.3u#,cap_height#,0); uni "0x2102"; |
| 468 |
italcorr cap_height#*slant; |
| 469 |
adjust_fit(0,0); |
| 470 |
pickup tiny.nib; |
| 471 |
usechar; |
| 472 |
p100:=subpath(-1,1) of p0; |
| 473 |
p101:=reverse subpath(-1,1) of p1; |
| 474 |
oblu:=1.25bbw; |
| 475 |
z100=bsktouch(subpath(0,1) of p100,bbs*up,p101,down); |
| 476 |
z101=bsktouch(p100,bbs*down,subpath(0,1) of p101,up); |
| 477 |
tim100=xpart(p100 intersectiontimes (z100--(x100,y1))); |
| 478 |
tim101=xpart(p101 intersectiontimes (z100--(x100,y4l+5))); |
| 479 |
tim102=xpart(p100 intersectiontimes (z101--(x101,y1))); |
| 480 |
tim103=xpart(p101 intersectiontimes (z101--(x101,y2l-5))); |
| 481 |
infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100 |
| 482 |
..subpath(rundy(p101,tim103),rundy(p101,tim101).zpet) of p101..cycle; |
| 483 |
labels(100,101); |
| 484 |
endchar; |
| 485 |
|
| 486 |
iff known chars.sign_centigrade: |
| 487 |
bskchar "Centigrade sign"; |
| 488 |
beginchar(chars.sign_centigrade,17.3u#,asc_height#+o#,0); uni "0x2103"; |
| 489 |
italcorr cap_height#*slant; |
| 490 |
adjust_fit(0,0); |
| 491 |
pickup tiny.nib; |
| 492 |
usechar shifted (4u*right); |
| 493 |
save x,y; |
| 494 |
pos1a(hair,0); pos1b(hair,90); |
| 495 |
pos1c(hair,180); pos1d(hair,270); |
| 496 |
z0=(3u,h-2u)=.5[z1a,z1c]=.5[z1b,z1d]; |
| 497 |
x1b=x1d; y1a=y1c; y1d-y1b=(x1c-x1a); x1a.l=x1; lft x1=u; |
| 498 |
filldraw z1a.l{down}..z1b.l..z1c.l..z1d.l..cycle; |
| 499 |
infill z1a.r{down}..z1b.r..z1c.r..z1d.r..cycle; |
| 500 |
penlabels(1a,1b,1c,1d); labels(0); |
| 501 |
endchar; |
| 502 |
|
| 503 |
iff known chars.sign_copyright: |
| 504 |
bskchar "Copyright sign (circled C)"; |
| 505 |
beginchar(chars.sign_copyright,15u#,asc_height#,0); uni "0x00A9"; |
| 506 |
italcorr x_height#*slant+.25u#; |
| 507 |
adjust_fit(0,0); |
| 508 |
pickup tiny.nib; |
| 509 |
numeric zv; zv=.66; |
| 510 |
lft x6=u; x2=w-x6; y2=.5h; top y8=h; |
| 511 |
lft x11=3u; x12+x11=w; x13=x11; x14=x12; |
| 512 |
y11=y12; y13=y14; .5[y11,y13]=y2; y11-y13=spread; |
| 513 |
circle_points(rule_thickness); |
| 514 |
filldraw draw_circle.l; |
| 515 |
infill draw_circle.r; |
| 516 |
save x,y; |
| 517 |
multiply(1.5*zv)(cap_curve,cap_hair,ser_height,serif_o); |
| 518 |
usechar shifted -z5''c scaled zv shifted (.5WW+.33u,.5HH); |
| 519 |
endchar; |
| 520 |
|
| 521 |
iff known chars.sign_copyleft: |
| 522 |
bskchar "Copyleft sign (circled turned C)"; |
| 523 |
beginchar(chars.sign_copyleft,15u#,asc_height#,0); uni "non"; |
| 524 |
italcorr x_height#*slant+.25u#; |
| 525 |
adjust_fit(0,0); |
| 526 |
pickup tiny.nib; |
| 527 |
numeric zv; zv=.66; |
| 528 |
lft x6=u; x2=w-x6; y2=.5h; top y8=h; |
| 529 |
lft x11=3u; x12+x11=w; x13=x11; x14=x12; |
| 530 |
y11=y12; y13=y14; .5[y11,y13]=y2; y11-y13=spread; |
| 531 |
circle_points(rule_thickness); |
| 532 |
filldraw draw_circle.l; |
| 533 |
infill draw_circle.r; |
| 534 |
save x,y; |
| 535 |
def bskcharscriptcmd:= |
| 536 |
save counterclockwise; |
| 537 |
vardef counterclockwise primary c:= reverse c |
| 538 |
enddef |
| 539 |
enddef; |
| 540 |
multiply(1.5*zv)(cap_curve,cap_hair,ser_height,serif_o); |
| 541 |
usechar slanted (-slant) shifted -z5''c reflectedabout (origin,(0,h)) slanted (slant) scaled zv shifted (.5WW+slant*5u,.5HH); |
| 542 |
endchar; |
| 543 |
|
| 544 |
iff known chars.sign_euro: |
| 545 |
bskchar "The Euro sign"; |
| 546 |
beginchar(chars.sign_euro,12u#,cap_height#,0); uni "0x20AC"; |
| 547 |
italcorr cap_height#*slant; |
| 548 |
adjust_fit(0,0); |
| 549 |
pickup tiny.nib; |
| 550 |
path p[]; numeric tim[], sersh; |
| 551 |
sersh=.15tiny; |
| 552 |
pos1(cap_curve,0); pos2(1.1cap_hair,90); pos3(cap_hair,180); pos4(cap_hair,270); |
| 553 |
pos6(cap_bar,90); pos7(cap_bar,90); |
| 554 |
pos8(.5[cap_stem,cap_hair],90); pos9(.5[cap_stem,cap_hair],90); |
| 555 |
lft x1l=2u; rt x3r=w-o; y1=y3=.5h; x2=x4=.5[x1,x3]; bot y2l=-o; top y4l=h+o; |
| 556 |
lft x8=.75u; lft x6=u; x9=x4; z6-z8=z7-z9; .5[y6,y8]=bot y1-o; y6l-y8r=cap_bar+cap_stem; |
| 557 |
z9-z8=whatever*dir(10); |
| 558 |
p0:=z1r{down}..z2r..z3r..z4r..{down}cycle; |
| 559 |
p1:=z1l{down}..z2l..z3l..z4l..{down}cycle; |
| 560 |
z5'=((.5w,y3+.3h)--(2w,y3+.3h)) intersectionpoint p0; tim1= ypart(((.5w,y3+.3h)--(2w,y3+.3h)) intersectiontimes reverse p0); |
| 561 |
z5''=((.5w,y3-.3h+o)--(2w,y3-.3h+o)) intersectionpoint p0; tim2= ypart(((.5w,y3-.3h)--(2w,y3-.3h)) intersectiontimes p0); |
| 562 |
z5'a=z5'+serif_o*right; z5'b=(x5'a-sersh,h+o); z5'c=(.35[x4,x3r],y3); |
| 563 |
z5'd=(z5'c--z5'b) intersectionpoint p1; z5'e=.35[z5'b,z5'd]; |
| 564 |
tim3=ypart(((.5w,y5'e+.15ser_height)--(w,y5'e+.15ser_height)) intersectiontimes p1); |
| 565 |
z5''a=z5''+serif_o*right; z5''b=(x5''a-sersh,0); z5''c=(.15[x4,x3r],y3); |
| 566 |
z5''d=(z5''c--z5''b) intersectionpoint p1; z5''e=.5[z5''b,z5''d]; |
| 567 |
tim4=ypart(((.5w,y5''e-.25ser_height)--(w,y5''e-.25ser_height)) intersectiontimes p1); |
| 568 |
bskpoints(6,7,hair,hair); bskpoints(8,9,hair,hair); |
| 569 |
p2:=subpath(0,tim1) of reverse p0..z5'a--z5'b{dir225}..subpath (tim3,5) of p1.. |
| 570 |
reverse (subpath(0,tim2) of p0..z5''a--z5''b{dir135}.. |
| 571 |
reverse subpath (1,tim4) of p1) & cycle; |
| 572 |
p3:=z6l--z7ll; |
| 573 |
p4:=z7r--z6r; |
| 574 |
p5:=z8l--z9ll; |
| 575 |
p6:=z9r--z8r; |
| 576 |
(tim5,tim6)=subpath(0,1) of p2 intersectiontimes p3; |
| 577 |
(tim7,tim8)=subpath(0,1) of p2 intersectiontimes p4; |
| 578 |
(tim9-1,tim10)=subpath(1,length p2) of p2 intersectiontimes p4; |
| 579 |
(tim11-1,tim12)=subpath(1,length p2) of p2 intersectiontimes p3; |
| 580 |
(tim13-1,tim14)=subpath(1,length p2) of p2 intersectiontimes p6; |
| 581 |
(tim15-1,tim16)=subpath(1,length p2) of p2 intersectiontimes p5; |
| 582 |
(tim17-10,tim18)=subpath(10,length p2) of p2 intersectiontimes p5; |
| 583 |
(tim19-10,tim20)=subpath(10,length p2) of p2 intersectiontimes p6; |
| 584 |
filldraw subpath(0,rundy(p2,tim5).zpet) of p2 |
| 585 |
..subpath(rundy(p3,tim6),infinity) of p3 |
| 586 |
..subpath(0,rundy(p4,tim8).zpet) of p4 |
| 587 |
..subpath(rundy(p2,tim7),rundy(p2,tim9).zpet) of p2 |
| 588 |
..subpath(rundy(p4,tim10), infinity) of p4 |
| 589 |
..subpath(0,rundy(p3,tim12).zpet) of p3 |
| 590 |
..subpath(rundy(p2,tim11),rundy(p2,tim13).zpet) of p2 |
| 591 |
..subpath(rundy(p6,tim14),infinity) of p6 |
| 592 |
..subpath(0,rundy(p5,tim16).zpet) of p5 |
| 593 |
..subpath(rundy(p2,tim15),rundy(p2,tim17).zpet) of p2 |
| 594 |
..subpath(rundy(p5,tim18),infinity) of p5 |
| 595 |
..subpath(0,rundy(p6,tim20).zpet) of p6 |
| 596 |
..subpath(rundy(p2,tim19),length p2) of p2..cycle; |
| 597 |
penlabels(1,2,3,4,6,7,8,9); labels(5,5',5'a,5'b,5'c,5'd,5'e,5'',5''a,5''b,5''c,5''d,5''e,); |
| 598 |
endchar; |
| 599 |
|
| 600 |
iff known chars.latin_Ccedilla: |
| 601 |
bskchar "The letter C with cedilla"; |
| 602 |
beginchar(chars.latin_Ccedilla,13.3u#,cap_height#,.65desc_depth#); uni "0x00C7"; |
| 603 |
italcorr cap_height#*slant; |
| 604 |
adjust_fit(0,0); |
| 605 |
pickup tiny.nib; |
| 606 |
path p[],po; numeric tim[], sersh; |
| 607 |
sersh=.15tiny; |
| 608 |
pos1(cap_curve,0); pos2(1.1cap_hair,90); pos3(cap_hair,180); pos4(cap_hair,270); |
| 609 |
pos6(.5stem,0); pos7(.5stem,0); pos8(stem,0); pos9(.5stem,-110); |
| 610 |
lft x1l=u-o; rt x3r=w-u; y1=y3=.5h; x2=x4=.5[x1,x3]; bot y2l=-o; top y4l=h+o; |
| 611 |
p0:=z1r{down}..z2r..z3r..z4r..{down}cycle; |
| 612 |
p1:=z1l{down}..z2l..z3l..z4l..{down}cycle; |
| 613 |
z5'=((.5w,y3+.2h)--(2w,y3+.2h)) intersectionpoint p0; tim1= ypart(((.5w,y3+.2h)--(2w,y3+.2h)) intersectiontimes reverse p0); |
| 614 |
z5''=((.5w,y3-.2h+o)--(2w,y3-.2h+o)) intersectionpoint p1; tim2= ypart(((.5w,y3-.2h)--(2w,y3-.2h)) intersectiontimes p1); |
| 615 |
z5'a=z5'+serif_o*right; z5'b=(x5'a-sersh,h+o); z5'c=(.35[x4,x3r],y3); |
| 616 |
z5'd=(z5'c--z5'b) intersectionpoint p1; z5'e=.35[z5'b,z5'd]; |
| 617 |
tim3=ypart(((.5w,y5'e+.15ser_height)--(w,y5'e+.15ser_height)) intersectiontimes p1); |
| 618 |
z5''a=z5''+serif_o*right; z5''b=(x5''a-sersh,0); z5''c=(.15[x4,x3r],y3); |
| 619 |
z5''d=(z5''c--z5''b) intersectionpoint p1; z5''e=.5[z5''b,z5''d]; |
| 620 |
tim4=ypart(((.5w,y5''e-.25ser_height)--(w,y5''e-.25ser_height)) intersectiontimes p1); |
| 621 |
x6l=x7l=x2; y6=0; y7=-hair; y8=-.5d; |
| 622 |
rt x8r-lft x9r=4u; x6r-lft x9r=2u; y9r=-d; |
| 623 |
p3:=z7r..{down}z8r..{left}z9r..{right}z9l..{up}z8l..z7l--z6l; |
| 624 |
p4:=reverse(z6r{down}..subpath (rundy(p3,(0,curve)),infinity) of p3); |
| 625 |
filldraw subpath(0,tim1) of reverse p0..z5'a--z5'b---z5'e |
| 626 |
..subpath (tim3,length p1) of p1 |
| 627 |
& subpath(0,rundy(p1,1).zpet) of p1 |
| 628 |
..subpath(rundy(p4,0),rundy(p4,infinity).zpet) of p4 |
| 629 |
..reverse (subpath(0,tim2) of p0..z5''a--z5''b---z5''e |
| 630 |
..reverse subpath (rundy(p1,1),tim4) of p1) & cycle; |
| 631 |
penlabels(1,2,3,4,6,7,8,9); labels(5,5',5'a,5'b,5'c,5'd,5'e,5'',5''a,5''b,5''c,5''d,5''e,); |
| 632 |
penlabels(); |
| 633 |
endchar; |
| 634 |
|
| 635 |
iff known chars.sign_cedi: |
| 636 |
bskchar "Cedi sign"; |
| 637 |
beginchar(chars.sign_cedi,13.3u#,Acc_height#,Acc_height#-cap_height#); uni "0x20B5"; |
| 638 |
italcorr cap_height#*slant; |
| 639 |
adjust_fit(0,0); |
| 640 |
pickup tiny.nib; |
| 641 |
path p[]; numeric tim[], sersh; |
| 642 |
sersh=.15tiny; |
| 643 |
pos1(cap_curve,0); pos2(1.1cap_hair,90); pos3(cap_hair,180); pos4(cap_hair,270); |
| 644 |
pos7(hair,0); pos8(hair,0); |
| 645 |
lft x1l=u-o; rt x3r=w-u; y1=y3=.5cap_height; x2=x4=.5[x1,x3]; bot y2l=-o; top y4l=cap_height+o; |
| 646 |
x7=x8=x4; top y7=h; bot y8=-d; |
| 647 |
p0:=z1r{down}..z2r..z3r..z4r..{down}z1r; |
| 648 |
p1:=z1l{up}..z4l..z3l..z2l..{up}z1l; |
| 649 |
p2:=z7r--z8r; |
| 650 |
p3:=z8l--z7l; |
| 651 |
z5'=((.5w,y3+.2cap_height)--(2w,y3+.2cap_height)) intersectionpoint p0; |
| 652 |
tim1= ypart(((.5w,y3+.2cap_height)--(2w,y3+.2cap_height)) intersectiontimes p0); |
| 653 |
z5''=((.5w,y3-.2cap_height+o)--(2w,y3-.2cap_height+o)) intersectionpoint p0; |
| 654 |
tim2= ypart(((.5w,y3-.2cap_height)--(2w,y3-.2cap_height)) intersectiontimes p0); |
| 655 |
z5'a=z5'+serif_o*right; z5'b=(x5'a-sersh,cap_height+o); z5'c=(.35[x4,x3r],y3); |
| 656 |
z5'd=(z5'c--z5'b) intersectionpoint p1; z5'e=.35[z5'b,z5'd]; |
| 657 |
tim3=ypart(((.5w,y5'e+.15ser_height)--(w,y5'e+.15ser_height)) intersectiontimes p1); |
| 658 |
z5''a=z5''+serif_o*right; z5''b=(x5''a-sersh,0); z5''c=(.15[x4,x3r],y3); |
| 659 |
z5''d=(z5''c--z5''b) intersectionpoint p1; z5''e=.5[z5''b,z5''d]; |
| 660 |
tim4=ypart(((.5w,y5''e-.25ser_height)--(w,y5''e-.25ser_height)) intersectiontimes p1); |
| 661 |
(tim5-2,tim6)=subpath(2,infinity) of p0 intersectiontimes p2; |
| 662 |
(tim7-2,tim8)=subpath(2,infinity) of p0 intersectiontimes p3; |
| 663 |
(tim9,tim10)=subpath(0,3) of p0 intersectiontimes p2; |
| 664 |
(tim11-2,tim12)=subpath(2,infinity) of p1 intersectiontimes p2; |
| 665 |
(tim13-2,tim14)=subpath(2,infinity) of p1 intersectiontimes p3; |
| 666 |
(tim15,tim16)=subpath(0,2) of p1 intersectiontimes p3; |
| 667 |
(tim17,tim18)=subpath(0,2) of p1 intersectiontimes p2; |
| 668 |
(tim19,tim20)=subpath(0,3) of p0 intersectiontimes p3; |
| 669 |
filldraw z5'e---z5'b--z5'a..subpath(tim1,rundy(p0,tim5).zpet) of p0 |
| 670 |
..subpath(rundy(p2,tim6),rundy(p2,tim10).zpet) of p2 |
| 671 |
..subpath(rundy(p0,tim9),tim2) of p0..z5''a--z5''b---z5''e |
| 672 |
..subpath(tim4,rundy(p1,tim11).zpet) of p1 |
| 673 |
..subpath(rundy(p2,tim12),infinity) of p2 |
| 674 |
..subpath(0,rundy(p3,tim14).zpet) of p3 |
| 675 |
..subpath(rundy(p1,tim13),infinity) of p1 |
| 676 |
..subpath(0,rundy(p1,tim15).zpet) of p1 |
| 677 |
..subpath(rundy(p3,tim16),infinity) of p3 |
| 678 |
..subpath(0,rundy(p2,tim18).zpet) of p2 |
| 679 |
..subpath(rundy(p1,tim17),tim3) of p1..cycle; |
| 680 |
infill subpath(rundy(p3,tim20),rundy(p3,tim8).zpet) of p3 |
| 681 |
..subpath(rundy(p0,tim7),infinity) of p0 |
| 682 |
..subpath(0,rundy(p0,tim19).zpet) of p0..cycle; |
| 683 |
penlabels(1,2,3,4,7,8); labels(5,5',5'a,5'b,5'c,5'd,5'e,5'',5''a,5''b,5''c,5''d,5''e,); |
| 684 |
endchar; |
| 685 |
|
| 686 |
iff known chars.latin_C_SS: |
| 687 |
bskchar "The sans-serif letter C"; |
| 688 |
beginchar(chars.latin_C_SS,12.5u#,cap_height#,0); uni "0x1D5A2"; |
| 689 |
italcorr cap_height#*slant; |
| 690 |
adjust_fit(0,0); |
| 691 |
pickup tiny.nib; |
| 692 |
path p[]; numeric tim[]; |
| 693 |
pos1(cap_curve,0); pos2(cap_hair,90); pos3(cap_hair,180); pos4(1.1cap_hair,270); |
| 694 |
lft x1l=u-o; rt x3r=w-u; y1=y3=.5h; x2=x4=.5[x1,x3]; bot y2l=-o; top y4l=h+o; |
| 695 |
p0:=z1r{down}..z2r..z3r..z4r..{down}cycle; |
| 696 |
p1:=z1l{down}..z2l..z3l..z4l..{down}cycle; |
| 697 |
z5'=((.5w,y3+.2h)--(2w,y3+.2h)) intersectionpoint p0; |
| 698 |
tim1= ypart(((.5w,y3+.2h)--(2w,y3+.2h)) intersectiontimes reverse p0); |
| 699 |
z5''=((.5w,y3-.2h+o)--(2w,y3-.2h+o)) intersectionpoint p0; |
| 700 |
tim2= ypart(((.5w,y3-.2h)--(2w,y3-.2h)) intersectiontimes p0); |
| 701 |
tim3=ypart(((.5w,y3+.2h)--(w,y3+.2h)) intersectiontimes p1); |
| 702 |
tim4=ypart(((.5w,y3-.2h)--(w,y3-.2h)) intersectiontimes p1); |
| 703 |
filldraw subpath(0,tim1) of reverse p0 |
| 704 |
..subpath (tim3,5) of p1 |
| 705 |
..reverse (subpath(0,tim2) of p0..reverse subpath (1,tim4) of p1) & cycle; |
| 706 |
penlabels(1,2,3,4); labels(5,5',5''); |
| 707 |
endchar; |
| 708 |
|
| 709 |
charscription(15u,cap_height,0)( |
| 710 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 711 |
bot y1=0; top y2=h-drop_stem; |
| 712 |
lft x1l= lft x2l= 2u; |
| 713 |
pos3(ser_height,270); pos4(cap_hair,270); pos5(cap_curve,0); |
| 714 |
pos6(cap_hair,90); pos7(.75ser_height,90); |
| 715 |
x3=x7=x1r; y7r+serif_o=y6r; top y6r=h+drop_stem; rt x5r=w-u; y5=.52[y4,y6]; |
| 716 |
bot y3r=bot y4r=0; x6=x4 if not monospace:+u fi; x6=.5[x1r,x5l]-u; |
| 717 |
cap_serifs_tl(2l); cap_serifs_bl(1l); |
| 718 |
filldraw z1l.b{down}..{left}z1l.c..z1l.a{right}..z1+ser_boule*up..z3r--- |
| 719 |
z4r..z5r..{left}z6r..z2l.a{left}..z2l.c{right}..{down}z2l.b---cycle; |
| 720 |
infill z7l..{right}z6l..z5l..{left}z4l..z3l---cycle; |
| 721 |
penlabels(1,2,3,4,5,6,7); |
| 722 |
); |
| 723 |
|
| 724 |
iff known chars.latin_D: |
| 725 |
bskchar "The letter D"; |
| 726 |
beginchar(chars.latin_D,15u#,cap_height#,0); uni "0x0044"; |
| 727 |
italcorr x_height#*slant-.25u#; |
| 728 |
adjust_fit(cap_serif_fit#,0); |
| 729 |
pickup tiny.nib; |
| 730 |
usechar; |
| 731 |
math_fit(0,.75ic#); |
| 732 |
endchar; |
| 733 |
|
| 734 |
iff known chars.latin_Dcaron: |
| 735 |
bskchar "The letter D with caron"; |
| 736 |
beginchar(chars.latin_Dcaron,15u#,Acc_height#,0); uni "0x010E"; |
| 737 |
italcorr x_height#*slant-.25u#; |
| 738 |
adjust_fit(cap_serif_fit#,0); |
| 739 |
pickup tiny.nib; |
| 740 |
usechar; |
| 741 |
x101=.6[x2r,x6]; |
| 742 |
hacek(100,101,102).capital; |
| 743 |
endchar; |
| 744 |
|
| 745 |
iff known chars.latin_D_BB: |
| 746 |
bskchar "The blackboard-bold letter D"; |
| 747 |
beginchar(chars.latin_D_BB,15u#,cap_height#,0); uni "0x1D53B"; |
| 748 |
italcorr x_height#*slant-.25u#; |
| 749 |
adjust_fit(cap_serif_fit#,0); |
| 750 |
pickup tiny.nib; |
| 751 |
usechar; |
| 752 |
path p[]; numeric tim[]; |
| 753 |
bot z100=(x1l,y1l.c); top z101=(x2l,y2l.c); |
| 754 |
infill obl(2r,2l,1r)---obl(1r,2r,1l)---z1l...obl(100,1l.c,2l)---obl(101,1l,2l.c)...z2l---cycle; |
| 755 |
p100=z4r{right}..z5r..{left}z6r; |
| 756 |
p101=z6l{right}..z5l..{left}z4l; |
| 757 |
z102=bsktouch(subpath (0,1) of p100,bbs*up,p101,down); |
| 758 |
z103=bsktouch(subpath (0,1) of p101,bbs*up,p100,down); |
| 759 |
tim100=xpart(p100 intersectiontimes (z102--(x102,y4r))); |
| 760 |
tim101=xpart(p101 intersectiontimes (z102--(x102,y5))); |
| 761 |
tim102=xpart(p100 intersectiontimes (z103--(x103,y6r))); |
| 762 |
tim103=xpart(p101 intersectiontimes (z103--(x103,y5))); |
| 763 |
oblu:=1.25bbw; |
| 764 |
infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100 |
| 765 |
..subpath(rundy(p101,tim103),rundy(p101,tim101).zpet) of p101..cycle; |
| 766 |
labels(102,103); |
| 767 |
endchar; |
| 768 |
|
| 769 |
iff known chars.latin_D_SS: |
| 770 |
bskchar "The sans-serif letter D"; |
| 771 |
beginchar(chars.latin_D_SS,14u#,cap_height#,0); uni "0x1D5A3"; |
| 772 |
italcorr x_height#*slant-.25u#; |
| 773 |
adjust_fit(cap_serif_fit#,0); |
| 774 |
pickup tiny.nib; |
| 775 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 776 |
bot y1=0; top y2=h-drop_stem; |
| 777 |
lft x1l= lft x2l= 2u; |
| 778 |
pos3(1.5cap_stem,270); pos4(cap_hair,270); pos5(cap_curve,0); |
| 779 |
pos6(cap_hair,90); pos7(1.5cap_stem,90); |
| 780 |
x3=x7=x1r; y7r+serif_o=y6r; top y6r=h+drop_stem; rt x5r=w-u; y5=.52[y4,y6]; |
| 781 |
bot y3r=bot y4r=0; x6=x4 if not monospace and ((substring(0,5) of font_identifier_) <> "BSKHC"):+u fi; x6=.5[x1r,x5l]-u; |
| 782 |
cap_serifs_tl(2l); cap_serifs_bl(1l); |
| 783 |
filldraw z1l.b{down}..z1..z3r---z4r..z5r..{left}z6r---z2..z2l.b---cycle; |
| 784 |
infill z7l..{right}z6l..z5l..{left}z4l..z3l---cycle; |
| 785 |
penlabels(1,2,3,4,5,6,7); |
| 786 |
endchar; |
| 787 |
|
| 788 |
charscription(15.5u,cap_height,0)( |
| 789 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 790 |
bot y1=0; top y2=h-drop_stem; |
| 791 |
lft x1l= lft x2l= 2.5u; |
| 792 |
pos3(ser_height,270); pos4(cap_hair,270); pos5(cap_curve,0); |
| 793 |
pos6(cap_hair,90); pos7(.75ser_height,90); |
| 794 |
pos8(bar,90); pos8'(bar,90); pos9(bar,90); pos9'(bar,90); |
| 795 |
x3=x7=x1r; y7r+serif_o=y6r; top y6r=h+drop_stem; rt x5r=w-u; y5=.52[y4,y6]; |
| 796 |
bot y3r=bot y4r=0; x6=x4 if not monospace:+u fi; x6=.5[x1r,x5l]-u; |
| 797 |
cap_serifs_tl(2l); cap_serifs_bl(1l); |
| 798 |
x9-x8=4u if bold_face:+u fi; y9=y9'=y8=y8'=.8[bar_height,x_height]; lft x8=u; |
| 799 |
x8'=x1l; x9'=x1r; bskpoints(8,9,hair,hair); |
| 800 |
filldraw z1l.b{down}..{left}z1l.c..z1l.a{right}..z1+ser_boule*up..z3r |
| 801 |
---z4r..z5r..{left}z6r..z2l.a{left}..z2l.c{right}..{down}z2l.b |
| 802 |
---obl(8'r,2l,8rr)---z8rr..z8l---obl(8'l,8l,1l)---cycle; |
| 803 |
infill z7l..{right}z6l..z5l..{left}z4l..z3l---obl(9'l,1l,9l)---z9ll..z9r---obl(9'r,9r,2r)---cycle; |
| 804 |
penlabels(1,2,3,4,5,6,7,8,8',9,9'); labels(8rr,9ll); |
| 805 |
); |
| 806 |
|
| 807 |
iff known chars.latin_Dstroke: |
| 808 |
bskchar "The letter D with stroke"; |
| 809 |
beginchar(chars.latin_Dstroke,15.5u#,cap_height#,0); uni "0x0110"; |
| 810 |
italcorr x_height#*slant-.25u#; |
| 811 |
adjust_fit(0,0); |
| 812 |
pickup tiny.nib; |
| 813 |
usechar; |
| 814 |
endchar; |
| 815 |
|
| 816 |
iff known chars.latin_Eth: |
| 817 |
bskchar "The letter Eth"; |
| 818 |
beginchar(chars.latin_Eth,15.5u#,cap_height#,0); uni "0x00D0"; |
| 819 |
italcorr x_height#*slant-.25u#; |
| 820 |
adjust_fit(0,0); |
| 821 |
pickup tiny.nib; |
| 822 |
usechar; |
| 823 |
endchar; |
| 824 |
|
| 825 |
charscription(13.5u, cap_height,0)( |
| 826 |
path p; |
| 827 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 828 |
pos5(cap_bar,90); pos6(cap_bar,90); pos5'(ser_height,90); pos6'(1.21beak,90); |
| 829 |
bot y1=0; top y2=h; bot y3r=0; rt x3r=w-u; |
| 830 |
top y4r=h; rt x4r=w-2.5u; |
| 831 |
lft x1l=lft x2l=2u; |
| 832 |
y5=y5'=y6=y6'=.52[y1,y2]; x5=x2r+cap_hair; x6=x2r+3/8(x4-x2r); x5'=x2r; x6'-x6=1.5u; |
| 833 |
cap_serifs_tl(2l); cap_serifs_bl(1l); |
| 834 |
p=reverse arm_top_r_points(2r,4); |
| 835 |
filldraw z1l.b{down}..{left}z1l.c..z1l.a{right}..z1+ser_boule*up.. |
| 836 |
arm_bot_r_points(1r,3).alt---z5'l{dir80}..z5l---z6l.. |
| 837 |
z6'l+.5serif_o*left{down}..z6'l{dir87}..{dir93}z6'r.. |
| 838 |
{down}z6'r+.5serif_o*left..z6r---z5r..{dir100}z5'r--- |
| 839 |
p---z2l.a..{right}z2l.c..z2l.b---cycle; |
| 840 |
penlabels(1,2,5,5',6,6'); |
| 841 |
); |
| 842 |
|
| 843 |
iff known chars.latin_E: |
| 844 |
bskchar "The letter E"; |
| 845 |
beginchar(chars.latin_E,13.5u#,cap_height#,0); uni "0x0045"; |
| 846 |
italcorr cap_height#*slant-1.75u#; |
| 847 |
adjust_fit(cap_serif_fit#,0); |
| 848 |
pickup tiny.nib; |
| 849 |
usechar; |
| 850 |
math_fit(0,ic#); |
| 851 |
endchar; |
| 852 |
|
| 853 |
iff known chars.latin_Eacute: |
| 854 |
bskchar "The letter E with acute"; |
| 855 |
beginchar(chars.latin_Eacute,13.5u#,Acc_height#,0); uni "0x00C9"; |
| 856 |
italcorr cap_height#*slant-1.75u#; |
| 857 |
adjust_fit(cap_serif_fit#,0); |
| 858 |
pickup tiny.nib; |
| 859 |
usechar; |
| 860 |
x101=x6-u; |
| 861 |
acute(100,101).capital; |
| 862 |
endchar; |
| 863 |
|
| 864 |
iff known chars.latin_Ecaron: |
| 865 |
bskchar "The letter E with caron"; |
| 866 |
beginchar(chars.latin_Ecaron,13.5u#,Acc_height#,0); uni "0x011A"; |
| 867 |
italcorr cap_height#*slant-1.75u#; |
| 868 |
adjust_fit(cap_serif_fit#,0); |
| 869 |
pickup tiny.nib; |
| 870 |
usechar; |
| 871 |
x101=x6; |
| 872 |
hacek(100,101,102).capital; |
| 873 |
endchar; |
| 874 |
|
| 875 |
iff known chars.latin_Egrave: |
| 876 |
bskchar "The letter E with grave"; |
| 877 |
beginchar(chars.latin_Egrave,13.5u#,Acc_height#,0); uni "0x00C8"; |
| 878 |
italcorr cap_height#*slant-1.75u#; |
| 879 |
adjust_fit(cap_serif_fit#,0); |
| 880 |
pickup tiny.nib; |
| 881 |
usechar; |
| 882 |
x101=.5[x4d,x6]; |
| 883 |
grave(100,101).capital; |
| 884 |
endchar; |
| 885 |
|
| 886 |
iff known chars.latin_Edoublegrave: |
| 887 |
bskchar "The letter E with double grave"; |
| 888 |
beginchar(chars.latin_Edoublegrave,13.5u#,Acc_height#,0); uni "0x0204"; |
| 889 |
italcorr cap_height#*slant-1.75u#; |
| 890 |
adjust_fit(cap_serif_fit#,0); |
| 891 |
pickup tiny.nib; |
| 892 |
usechar; |
| 893 |
x102-x100=3u; .5[x100,x101]=x2r; |
| 894 |
d_grave(100,101,102,103,whatever).capital; |
| 895 |
endchar; |
| 896 |
|
| 897 |
iff known chars.latin_Ecircumflex: |
| 898 |
bskchar "The letter E with circumflex"; |
| 899 |
beginchar(chars.latin_Ecircumflex,13.5u#,Acc_height#,0); uni "0x00CA"; |
| 900 |
italcorr cap_height#*slant-1.75u#; |
| 901 |
adjust_fit(cap_serif_fit#,0); |
| 902 |
pickup tiny.nib; |
| 903 |
usechar; |
| 904 |
x101=x6; |
| 905 |
circumflex(100,101,102).capital; |
| 906 |
endchar; |
| 907 |
|
| 908 |
iff known chars.latin_Eumlaut: |
| 909 |
bskchar "The letter E with umlaut"; |
| 910 |
beginchar(chars.latin_Eumlaut,13.5u#,Acc_height#,0); uni "0x00CB"; |
| 911 |
italcorr cap_height#*slant-1.75u#; |
| 912 |
adjust_fit(cap_serif_fit#,0); |
| 913 |
pickup tiny.nib; |
| 914 |
usechar; |
| 915 |
.5[x100,x101]=x6l; x101-x100=x6'-x2r; |
| 916 |
umlaut(100,101); |
| 917 |
endchar; |
| 918 |
|
| 919 |
iff known chars.latin_Emacron: |
| 920 |
bskchar "The letter E with macron"; |
| 921 |
beginchar(chars.latin_Emacron,13.5u#,Acc_height#-.1x_height#,0); uni "0x0112"; |
| 922 |
italcorr cap_height#*slant-1.75u#; |
| 923 |
adjust_fit(cap_serif_fit#,0); |
| 924 |
pickup tiny.nib; |
| 925 |
usechar; |
| 926 |
lft x100=rt x2r; x101-x100=5u; |
| 927 |
macron(100,101); |
| 928 |
endchar; |
| 929 |
|
| 930 |
iff known chars.latin_Edotabove: |
| 931 |
bskchar "The letter E with dot above"; |
| 932 |
beginchar(chars.latin_Edotabove,13.5u#,Acc_height#,0); uni "0x0116"; |
| 933 |
italcorr cap_height#*slant-1.75u#; |
| 934 |
adjust_fit(cap_serif_fit#,0); |
| 935 |
pickup tiny.nib; |
| 936 |
usechar; |
| 937 |
x100=x6; |
| 938 |
dotabove(100); |
| 939 |
endchar; |
| 940 |
|
| 941 |
iff known chars.latin_Ebreve: |
| 942 |
bskchar "The letter E with breve"; |
| 943 |
beginchar(chars.latin_Ebreve,13.5u#,Acc_height#,0); uni "0x0114"; |
| 944 |
italcorr cap_height#*slant-1.75u#; |
| 945 |
adjust_fit(cap_serif_fit#,0); |
| 946 |
pickup tiny.nib; |
| 947 |
usechar; |
| 948 |
x101=x6; x102-x100=5u; |
| 949 |
bot bot y101l=cap_height; |
| 950 |
breve(100,101,102).capital; |
| 951 |
endchar; |
| 952 |
|
| 953 |
iff known chars.latin_Einvbreve: |
| 954 |
bskchar "The letter E with inverted breve"; |
| 955 |
beginchar(chars.latin_Einvbreve,13.5u#,Acc_height#+o#,0); uni "0x0206"; |
| 956 |
italcorr cap_height#*slant-1.75u#; |
| 957 |
adjust_fit(cap_serif_fit#,0); |
| 958 |
pickup tiny.nib; |
| 959 |
usechar; |
| 960 |
x101=x6; x102-x100=5u; |
| 961 |
bot bot y100=cap_height+o; |
| 962 |
tieacc(100,101,102).capital; |
| 963 |
endchar; |
| 964 |
|
| 965 |
iff known chars.latin_E_BB: |
| 966 |
bskchar "The blackboard-bold letter E"; |
| 967 |
beginchar(chars.latin_E_BB,13.5u#,cap_height#,0); uni "0x1D53C"; |
| 968 |
italcorr cap_height#*slant-1.75u#; |
| 969 |
adjust_fit(cap_serif_fit#,0); |
| 970 |
pickup tiny.nib; |
| 971 |
usechar; |
| 972 |
bot z100=(x1l,y1l.c); top z101=(x2l,y2l.c); |
| 973 |
infill obl(2r,2l,1r)---obl(1r,2r,1l)---z1l...obl(100,1l.c,2l)---obl(101,1l,2l.c)...z2l---cycle; |
| 974 |
endchar; |
| 975 |
|
| 976 |
iff known chars.latin_Eogonek: |
| 977 |
bskchar "The letter E with ogonek"; |
| 978 |
beginchar(chars.latin_Eogonek,13.5u#,cap_height#,.85desc_depth#); uni "0x0118"; |
| 979 |
italcorr cap_height#*slant-1.75u#; |
| 980 |
adjust_fit(0,0); |
| 981 |
pickup tiny.nib; |
| 982 |
path p[]; numeric tim[]; |
| 983 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 984 |
pos5(cap_bar,90); pos6(cap_bar,90); pos5'(ser_height,90); pos6'(1.21beak,90); |
| 985 |
pos7(stem,0); pos8(curve,0); pos9(hair,45); pos10(hair,160); |
| 986 |
bot y1=0; top y2=h; bot y3r=0; rt x3r=w-u; |
| 987 |
top y4r=h; rt x4r=w-2.5u; |
| 988 |
lft x1l=lft x2l=2u; |
| 989 |
y5=y5'=y6=y6'=.52[y1,y2]; x5=x2r+cap_hair; x6=x2r+3/8(x4-x2r); |
| 990 |
x5'=x2r; x6'-x6=1.5u; |
| 991 |
x7=x8l+1.5u=x3a-o; x9-x8l=3u; rt x10l=x9+1.5u; |
| 992 |
bot y7=0; y8=-.5d; bot y9l=-d; y10=-2/3d; |
| 993 |
cap_serifs_tl(2l); cap_serifs_bl(1l); |
| 994 |
p0=reverse arm_top_r_points(2r,4); |
| 995 |
p1=arm_bot_r_points(1r,3).alt; |
| 996 |
p2=z7l{z8l-z7r}..z8l...z9l..{z7-z8}z10l..z10r{z8-z7}..z9r..z8r..z7r |
| 997 |
&z7r..z7+.5o*up; |
| 998 |
(tim1,tim2)=p1 intersectiontimes p2; |
| 999 |
(tim3,tim4-2)=p1 intersectiontimes subpath(2,infinity) of p2; |
| 1000 |
filldraw z1l.b{down}..{left}z1l.c..z1l.a{right}..z1+ser_boule*up.. |
| 1001 |
subpath(0,rundy(p1,(tim1,2hair)).zpet) of p1 |
| 1002 |
..subpath(rundy(p2,(tim2,2hair)),rundy(p2,tim4).zpet) of p2 |
| 1003 |
..subpath(rundy(p1,tim3),infinity) of p1---z5'l{dir80}..z5l---z6l.. |
| 1004 |
z6'l+.5serif_o*left{down}..z6'l{dir87}..{dir93}z6'r.. |
| 1005 |
{down}z6'r+.5serif_o*left..z6r---z5r..{dir100}z5'r--- |
| 1006 |
p0---z2l.a..{right}z2l.c..z2l.b---cycle; |
| 1007 |
penlabels(1,2,5,5',6,6',7,8,9,10); |
| 1008 |
endchar; |
| 1009 |
|
| 1010 |
iff known chars.latin_Ecedilla: |
| 1011 |
bskchar "The letter E with cedilla"; |
| 1012 |
beginchar(chars.latin_Ecedilla,13.5u#,cap_height#,.65desc_depth#); uni "0x0228"; |
| 1013 |
italcorr cap_height#*slant-1.75u#; |
| 1014 |
adjust_fit(0,0); |
| 1015 |
pickup tiny.nib; |
| 1016 |
path p[]; |
| 1017 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 1018 |
pos5(cap_bar,90); pos6(cap_bar,90); pos5'(ser_height,90); pos6'(1.21beak,90); |
| 1019 |
pos7(.5stem,0); pos8(.5stem,0); pos9(stem,0); pos10(.5stem,-110); |
| 1020 |
bot y1=0; top y2=h; bot y3r=0; rt x3r=w-u; |
| 1021 |
top y4r=h; rt x4r=w-2.5u; |
| 1022 |
lft x1l=lft x2l=2u; |
| 1023 |
y5=y5'=y6=y6'=.52[y1,y2]; x5=x2r+cap_hair; x6=x2r+3/8(x4-x2r); x5'=x2r; x6'-x6=1.5u; |
| 1024 |
cap_serifs_tl(2l); cap_serifs_bl(1l); |
| 1025 |
p0=reverse arm_top_r_points(2r,4); |
| 1026 |
x7l=x8l=x6'; bot y7=0; y8=-hair; y9=-.5d; |
| 1027 |
rt x9r-lft x10r=4u; x7r-lft x10r=2u; y10r=-d; |
| 1028 |
p1:=z8r..{down}z9r..{left}z10r..{right}z10l..{up}z9l..z8l--z7l; |
| 1029 |
p2:=reverse(z7r{down}..subpath (rundy(p1,(0,curve)),infinity) of p1); |
| 1030 |
p3:=arm_bot_r_points(1r,3).alt; |
| 1031 |
filldraw z1l.b{down}..{left}z1l.c..z1l.a{right}..z1+ser_boule*up..{right}z7l+hair*left..subpath(rundy(p2,0),rundy(p2,infinity).zpet) of p2..z7r+stem*right---subpath(1,infinity) of p3---z5'l{dir80}..z5l---z6l..z6'l+.5serif_o*left{down}..z6'l{dir87}..{dir93}z6'r..{down}z6'r+.5serif_o*left..z6r---z5r..{dir100}z5'r---p0---z2l.a..{right}z2l.c..z2l.b---cycle; |
| 1032 |
penlabels(1,2,5,5',6,6',7,8,9,10); |
| 1033 |
endchar; |
| 1034 |
|
| 1035 |
iff known chars.latin_E_SS: |
| 1036 |
bskchar "The sans-serif letter E"; |
| 1037 |
beginchar(chars.latin_E_SS,12u#,cap_height#,0); uni "0x1D5A4"; |
| 1038 |
italcorr cap_height#*slant-1.75u#; |
| 1039 |
adjust_fit(cap_serif_fit#,0); |
| 1040 |
pickup tiny.nib; |
| 1041 |
pos1(cap_stem,0); pos2(cap_stem,0); pos3(cap_hair,-90); pos4(cap_hair,90); |
| 1042 |
pos5(cap_bar,90); pos6(cap_bar,90); pos5'(1.5cap_stem,90); |
| 1043 |
bot y1=0; top y2=h; bot y3r=0; rt x3r=w-u; |
| 1044 |
top y4r=h; rt x4r=w-2.5u; |
| 1045 |
lft x1l=lft x2l=2u; |
| 1046 |
y5=y5'=y6=y6'=.52[y1,y2]; x5=x2r+cap_hair; x6=x2r+4/8(x4-x2r); x5'=x2r; x6'-x6=u; |
| 1047 |
cap_serifs_tl(2l); cap_serifs_bl(1l); |
| 1048 |
z1'=(x1r,y3l); z2'=(x2r,y4l); |
| 1049 |
oblu:=cap_hair; |
| 1050 |
filldraw z1l.b{down}..z1---z3r+cap_stem*left...z3...z3l+cap_stem*left---obl(1',3l,5'l) |
| 1051 |
---z5'l{dir80}..z5l---z6l...z6'...z6r---z5r..{dir100}z5'r---obl(2',5'r,4l) |
| 1052 |
---z4l+cap_stem*left...z4...z4r+cap_stem*left---z2..z2l.b---cycle; |
| 1053 |
penlabels(1,2,3,4,5,5',6); labels(1',2',6'); |
| 1054 |
endchar; |
| 1055 |
|
| 1056 |
charscription(18u,cap_height,0)( |
| 1057 |
numeric alpha; |
| 1058 |
path p; oblu.more:=3oblu; |
| 1059 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 1060 |
pos5(cap_bar,90); pos6(cap_bar,90); pos5'(ser_height,90); pos6'(1.21beak,90); |
| 1061 |
bot y1=0; top y2=h; bot y3r=0; rt x3r=w-u; |
| 1062 |
top y4r=h; rt x4r=w-2u; |
| 1063 |
lft x1l=lft x2l=8.5u; |
| 1064 |
lft x7l=2u; y7l=y1; |
| 1065 |
alpha=diag_ratio(2,cap_hair,y2l-y7l,x2l-x7l); |
| 1066 |
pos7(alpha*cap_hair,0); |
| 1067 |
y5=y5'=y6=y6'=.475[y1,y2]; x5=x2r+cap_hair; x6=x2r+3/8(x4-x2r); x5'=x2r; x6'-x6=1.5u; |
| 1068 |
cap_serifs_tl(2l); cap_serifs_bl(1l); |
| 1069 |
cap_serifs_bl(7l); cap_serifs_br(7r); |
| 1070 |
if monospace: |
| 1071 |
pos3(beak,-90); %Bottom arm |
| 1072 |
z3c=(x3-2/3u,y3); z3d=(.5[x3e,x3c],y3e); |
| 1073 |
z3e=z1r+(alt_cap_hair-currentbreadth,cap_jut); |
| 1074 |
z3f=z1r+.75ser_height*up; |
| 1075 |
penlabels(3); labels(3c,3d,3e,3f); |
| 1076 |
pos4(.65beak,90); %Top arm |
| 1077 |
z4a=z2r+.55ser_height*down; z4b=z2r+(cap_jut,-cap_hair+currentbreadth); |
| 1078 |
z4c=z4l+serif_o*left; |
| 1079 |
penlabels(4); labels(4a,4b,4c); |
| 1080 |
else: p=reverse arm_top_r_points(2r,4); |
| 1081 |
fi; |
| 1082 |
x2l'=x2l; z2l'=whatever[z2l+alpha*(cap_hair-.5currentbreadth)*right,z7]; |
| 1083 |
pos9(cap_bar,90); y8r-y8l=cap_bar-tiny; .5[y8r,y8l]=y9=y5; |
| 1084 |
x1l-x9=x5-x5'; z8r=whatever[z7,z2l']; z8l=whatever[z7,z2l']; |
| 1085 |
y8'r=y8r; y8'l=y8l; x8'l=x8'r=.5[x8l,x8r]+(x5-x5'); |
| 1086 |
filldraw z1l.b{down}..{left}z1l.c..z1l.a{right}..z1+ser_boule*up.. |
| 1087 |
if monospace: z1r---z3r+o*left..z3r+o*up---z3l..z3l+o*left{down} |
| 1088 |
..z3c..z3d---z3e..{up}z3f |
| 1089 |
else: arm_bot_r_points(1r,3).alt fi |
| 1090 |
---z5'l{dir80}..z5l---z6l..z6'l+.5serif_o*left{down}.. |
| 1091 |
z6'l{dir87}..{dir93}z6'r..{down}z6'r+.5serif_o*left.. |
| 1092 |
z6r---z5r..{dir100}z5'r--- |
| 1093 |
if monospace: z4a{up}..z4b---z4b+o*right..{dir-45}z4c..z4l |
| 1094 |
---z4r+o*down..z4r+o*left---z2r |
| 1095 |
else: p fi |
| 1096 |
---obl(2l,2r,7l)--- |
| 1097 |
diag_serif(7l,2l)..{left}z7l.c..z7l.a{right}.. |
| 1098 |
z7+ser_boule*up..{right}z7r.a..{left}z7r.c.. |
| 1099 |
diag_serif(7r,2r)---obl(8l,7r,9l)---z9l{right}..(x1l,y5'l)---cycle; |
| 1100 |
oblu:=2oblu; if x8r+oblu>x9r: oblu:=f_obl; fi |
| 1101 |
infill (x1l,y5'r)..{left}z9r---obl(8r,9r,2l')--- |
| 1102 |
obl(2l',7l,1l).more--cycle; |
| 1103 |
penlabels(1,2,2l',5,5',6,6',7,8,8',9); |
| 1104 |
); |
| 1105 |
|
| 1106 |
iff known chars.latin_AE: |
| 1107 |
bskchar "The ligature AE"; |
| 1108 |
beginchar(chars.latin_AE,18u#,cap_height#,0); uni "0x00C6"; |
| 1109 |
italcorr cap_height#*slant-u#; |
| 1110 |
adjust_fit(cap_serif_fit#,0); |
| 1111 |
pickup tiny.nib; |
| 1112 |
usechar; |
| 1113 |
endchar; |
| 1114 |
|
| 1115 |
iff known chars.latin_AEmacron: |
| 1116 |
bskchar "The ligature AE with macron"; |
| 1117 |
beginchar(chars.latin_AEmacron,18u#,Acc_height#-.1x_height#,0); uni "0x01E2"; |
| 1118 |
italcorr cap_height#*slant-u#; |
| 1119 |
adjust_fit(cap_serif_fit#,0); |
| 1120 |
pickup tiny.nib; |
| 1121 |
usechar; |
| 1122 |
.5[x100,x101]=x6; |
| 1123 |
macron(100,101); |
| 1124 |
endchar; |
| 1125 |
|
| 1126 |
iff known chars.latin_AEacute: |
| 1127 |
bskchar "The ligature AE with acute"; |
| 1128 |
beginchar(chars.latin_AEacute,18u#,Acc_height#,0); uni "0x01FC"; |
| 1129 |
italcorr cap_height#*slant-u#; |
| 1130 |
adjust_fit(cap_serif_fit#,0); |
| 1131 |
pickup tiny.nib; |
| 1132 |
usechar; |
| 1133 |
x101=x2; |
| 1134 |
acute(100,101).capital; |
| 1135 |
endchar; |
| 1136 |
|
| 1137 |
iff known chars.latin_OE: |
| 1138 |
bskchar "The ligature OE"; |
| 1139 |
beginchar(chars.latin_OE,19u#,cap_height#,0); uni "0x0152"; |
| 1140 |
italcorr cap_height#*slant-1.5u#; |
| 1141 |
adjust_fit(cap_serif_fit#,0); |
| 1142 |
pickup tiny.nib; |
| 1143 |
numeric alpha; |
| 1144 |
path p; |
| 1145 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 1146 |
pos5(cap_bar,90); pos6(cap_bar,90); pos5'(ser_height,90); pos6'(1.21beak,90); |
| 1147 |
bot y1=0; top y2=h; bot y3r=0; rt x3r=w-u; |
| 1148 |
top y4r=h; rt x4r=w-2.5u; |
| 1149 |
lft x1l=lft x2l=8.5u; |
| 1150 |
pos7(cap_curve,0); lft x7l=u-o; y7=.5h; |
| 1151 |
y5=y5'=y6=y6'=.5[y1,y2]; x5=x2r+cap_hair; x6=x2r+3/8(x4-x2r); x5'=x2r; x6'-x6=1.5u; |
| 1152 |
cap_serifs_tl(2l); cap_serifs_bl(1l); |
| 1153 |
if monospace: |
| 1154 |
pos3(beak,-90); %Bottom arm |
| 1155 |
z3c=(x3-2/3u,y3); z3d=(.5[x3e,x3c],y3e); |
| 1156 |
z3e=z1r+(alt_cap_hair-currentbreadth,cap_jut); |
| 1157 |
z3f=z1r+.75ser_height*up; |
| 1158 |
penlabels(3); labels(3c,3d,3e,3f); |
| 1159 |
pos4(.65beak,90); %Top arm |
| 1160 |
z4a=z2r+.55ser_height*down; z4b=z2r+(cap_jut,-cap_hair+currentbreadth); |
| 1161 |
z4c=z4l+serif_o*left; |
| 1162 |
penlabels(4); labels(4a,4b,4c); |
| 1163 |
else: p=reverse arm_top_r_points(2r,4); |
| 1164 |
fi; |
| 1165 |
filldraw z2l.a+o*up..z7l..z1l.a+o*down{right}..z1+ser_boule*up.. |
| 1166 |
if monospace: z1r---z3r+o*left..z3r+o*up---z3l..z3l+o*left{down} |
| 1167 |
..z3c..z3d---z3e..{up}z3f |
| 1168 |
else: arm_bot_r_points(1r,3).alt fi |
| 1169 |
---z5'l{dir80}..z5l---z6l.. |
| 1170 |
z6'l+.5serif_o*left{down}..z6'l{dir87}..{dir93}z6'r.. |
| 1171 |
{down}z6'r+.5serif_o*left..z6r---z5r..{dir100}z5'r--- |
| 1172 |
if monospace: z4a{up}..z4b---z4b+o*right..{dir-45}z4c..z4l |
| 1173 |
---z4r+o*down..z4r+o*left---z2r |
| 1174 |
else: p fi |
| 1175 |
..z2..cycle; |
| 1176 |
infill z1l.b{down}..{left}z1l.c+top o*down..z7r..{right}z2l.c+top o*up..z2l.b---cycle; |
| 1177 |
penlabels(1,2,2l',5,5',6,6',7); |
| 1178 |
endchar; |
| 1179 |
|
| 1180 |
charscription(12u,cap_height,0)( |
| 1181 |
path p; |
| 1182 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 1183 |
pos5(cap_bar,90); pos6(cap_bar,90); pos5'(ser_height,90); pos6'(1.21beak,90); |
| 1184 |
bot y1=0; top y2=h; |
| 1185 |
top y3r=h; rt x3r=w-u; |
| 1186 |
lft x1l=lft x2l=2u; |
| 1187 |
y5=y5'=y6=y6'=.52[y1,y2]; x5=x2r+cap_hair; x6=x2r+3/8(x3-x2r); x5'=x2r; x6'-x6=1.5u; |
| 1188 |
cap_serifs_tl(2l); cap_serifs_bl(1l); cap_serifs_br_p(1r,1.1); |
| 1189 |
p=reverse arm_top_r_points(2r,3); |
| 1190 |
filldraw z1l.b{down}..{left}z1l.c..z1l.a{right}..z1+ser_boule*up.. |
| 1191 |
{right}z1r.a..{left}z1r.c..z1r.b---z5'l{dir80}..z5l--- |
| 1192 |
z6l..z6'l+.5serif_o*left{down}..z6'l{dir87}..{dir93}z6'r.. |
| 1193 |
{down}z6'r+.5serif_o*left..z6r---z5r..{dir100}z5'r--- |
| 1194 |
p--z2l.a..{right}z2l.c..z2l.b---cycle; |
| 1195 |
penlabels(1,2,5,5',6,6'); |
| 1196 |
); |
| 1197 |
|
| 1198 |
iff known chars.latin_F: |
| 1199 |
bskchar "The letter F"; |
| 1200 |
beginchar(chars.latin_F,12u#,cap_height#,0); uni "0x0046"; |
| 1201 |
italcorr cap_height#*slant; |
| 1202 |
adjust_fit(cap_serif_fit#,0); |
| 1203 |
pickup tiny.nib; |
| 1204 |
usechar; |
| 1205 |
math_fit(0,ic#-4u#); |
| 1206 |
endchar; |
| 1207 |
|
| 1208 |
iff known chars.latin_F_BB: |
| 1209 |
bskchar "The blackboard-bold letter F"; |
| 1210 |
beginchar(chars.latin_F_BB,12u#,cap_height#,0); uni "0x1D53D"; |
| 1211 |
italcorr cap_height#*slant; |
| 1212 |
adjust_fit(cap_serif_fit#,0); |
| 1213 |
pickup tiny.nib; |
| 1214 |
usechar; |
| 1215 |
bot z100=(x1l,y1l.c); top z101=(x2l,y2l.c); |
| 1216 |
infill obl(2r,2l,1r)---obl(1r,2r,1l)---z1l...obl(100,1l.c,2l)---obl(101,1l,2l.c)...z2l---cycle; |
| 1217 |
math_fit(0,ic#-3u#); |
| 1218 |
endchar; |
| 1219 |
|
| 1220 |
iff known chars.latin_F_SS: |
| 1221 |
bskchar "The sans-serif letter F"; |
| 1222 |
beginchar(chars.latin_F_SS,11u#,cap_height#,0); uni "0x1D5A5"; |
| 1223 |
italcorr cap_height#*slant; |
| 1224 |
adjust_fit(cap_serif_fit#,0); |
| 1225 |
pickup tiny.nib; |
| 1226 |
path p; |
| 1227 |
pos1(cap_stem,0); pos2(cap_stem,0); pos3(cap_hair,90); |
| 1228 |
pos5(cap_bar,90); pos6(cap_bar,90); pos5'(ser_height,90); |
| 1229 |
bot y1=0; top y2=h; |
| 1230 |
top y3r=h; rt x3r=w-u; |
| 1231 |
lft x1l=lft x2l=2u; |
| 1232 |
y5=y5'=y6=y6'=.52[y1,y2]; x5=x2r+cap_hair; x6=x2r+4/8(x3-x2r); x5'=x2r; x6'-x6=u; |
| 1233 |
cap_serifs_tl(2l); cap_serifs_bl(1l); cap_serifs_br_p(1r,1.1); |
| 1234 |
z2'=(x2r,y3l); |
| 1235 |
oblu:=cap_hair; |
| 1236 |
filldraw z1l.b{down}..z1..z1r.b---z5'l{dir80}..z5l--- |
| 1237 |
z6l...z6'...z6r---z5r..{dir100}z5'r---obl(2',5'r,3l)---z3l+cap_stem*left |
| 1238 |
...z3...z3r+cap_stem*left---z2..z2l.b---cycle; |
| 1239 |
penlabels(1,2,3,5,5',6); labels(2',6'); |
| 1240 |
math_fit(0,ic#-3u#); |
| 1241 |
endchar; |
| 1242 |
|
| 1243 |
charscription(14.3u,cap_height,0)( |
| 1244 |
path p[]; numeric tim[], sersh; |
| 1245 |
sersh=.15tiny; |
| 1246 |
pos1(cap_curve,0); pos2(1.1cap_hair,90); pos3(cap_hair,180); pos4(cap_hair,270); |
| 1247 |
lft x1l=u-o; rt x3r=w-2.3u; y1=y3=.5h; x2=x4=.5[x1,x3]; bot y2l=-o; top y4l=h+o; |
| 1248 |
penpos6(beak,0); rt x6r=w-u; |
| 1249 |
p0:=z1r{down}..z2r..z3r..z4r..{down}cycle; |
| 1250 |
p1:=z1l{down}..z2l..z3l..z4l..{down}cycle; |
| 1251 |
tim1= ypart(((.5w,y3+.2h)--(2w,y3+.2h)) intersectiontimes reverse p0); |
| 1252 |
z5'=(x6,y3+.2h); |
| 1253 |
z5'a=z5'+serif_o*right; z5'b=(x5'a-sersh,h+o); z5'c=(.35[x4,x3r],y3); |
| 1254 |
z5'd=(z5'c--z5'b) intersectionpoint p1; z5'e=.35[z5'b,z5'd]; |
| 1255 |
tim3=ypart(((.5w,y5'e+if monospace: .1 else: .15 fi \\ser_height)--(w,y5'e+if monospace: .15 else: .25 fi\\ser_height)) intersectiontimes p1); |
| 1256 |
x5''a=x6r-.5cap_stem; y5''a=y3-.2h; z5''=z5''a+serif_o*left; |
| 1257 |
y6=y5''a+cap_hair; |
| 1258 |
z5''b=(x5''a-sersh,cap_hair); z5''c=(.5[x4,x1r],y3); |
| 1259 |
z5''d=(z5''c--z5''b) intersectionpoint p1; z5''e=.5[z5''b,z5''d]; z5''f=z5''a+cap_stem*left; |
| 1260 |
tim4=ypart(((.5w,y5''e-.25ser_height)--(w,y5''e-.25ser_height)) intersectiontimes p1); |
| 1261 |
tim5=ypart((z5''f--(x5''f,0)) intersectiontimes p0); |
| 1262 |
if x6l>x5''f: x6l:=x5''f-(x6r-x5''a); fi |
| 1263 |
filldraw z1r{up}..z4r..{direction tim1 of reverse p0}z5'..z5'a--z5'b---z5'e |
| 1264 |
..subpath (tim3,5) of p1.. |
| 1265 |
reverse (subpath(0,tim5) of p0---z5''f..{left}z6l..z6l+serif_o*up |
| 1266 |
--z6r+serif_o*up..z6r{left}..z5''a---z5''b---z5''e.. |
| 1267 |
reverse subpath (1,tim4) of p1) & cycle; |
| 1268 |
penlabels(1,2,3,4,6); labels(5,5',5'a,5'b,5'c,5'd,5'e,5'',5''a,5''b,5''c,5''d,5''e,5''f); |
| 1269 |
); |
| 1270 |
|
| 1271 |
iff known chars.latin_G: |
| 1272 |
bskchar "The letter G"; |
| 1273 |
beginchar(chars.latin_G,14.3u#,cap_height#,0); uni "0x0047"; |
| 1274 |
italcorr cap_height#*slant-2u#; |
| 1275 |
adjust_fit(0,0); |
| 1276 |
pickup tiny.nib; |
| 1277 |
usechar; |
| 1278 |
math_fit(-.5cap_height#*slant+.5u#,ic#); |
| 1279 |
endchar; |
| 1280 |
|
| 1281 |
iff known chars.latin_Gacute: |
| 1282 |
bskchar "The letter G with acute"; |
| 1283 |
beginchar(chars.latin_Gacute,14.3u#,Acc_height#,0); uni "0x01F4"; |
| 1284 |
italcorr cap_height#*slant-2u#; |
| 1285 |
adjust_fit(0,0); |
| 1286 |
pickup tiny.nib; |
| 1287 |
usechar; |
| 1288 |
.5[x100,x101]=x4; |
| 1289 |
acute(100,101).capital; |
| 1290 |
endchar; |
| 1291 |
|
| 1292 |
iff known chars.latin_Gcaron: |
| 1293 |
bskchar "The letter G with caron"; |
| 1294 |
beginchar(chars.latin_Gcaron,14.3u#,Acc_height#,0); uni "0x01E6"; |
| 1295 |
italcorr cap_height#*slant-2u#; |
| 1296 |
adjust_fit(0,0); |
| 1297 |
pickup tiny.nib; |
| 1298 |
usechar; |
| 1299 |
x101=x4; |
| 1300 |
hacek(100,101,102).capital; |
| 1301 |
endchar; |
| 1302 |
|
| 1303 |
iff known chars.latin_Gcircumflex: |
| 1304 |
bskchar "The letter G with circumflex"; |
| 1305 |
beginchar(chars.latin_Gcircumflex,14.3u#,Acc_height#,0); uni "0x011C"; |
| 1306 |
italcorr cap_height#*slant-2u#; |
| 1307 |
adjust_fit(0,0); |
| 1308 |
pickup tiny.nib; |
| 1309 |
usechar; |
| 1310 |
x101=x4; |
| 1311 |
circumflex(100,101,102).capital; |
| 1312 |
endchar; |
| 1313 |
|
| 1314 |
iff known chars.latin_Gcedilla: |
| 1315 |
bskchar "The letter G with cedilla (treated as comma)"; |
| 1316 |
beginchar(chars.latin_Gcedilla,14.3u#,cap_height#,.75comma_depth#); uni "0x0122"; |
| 1317 |
italcorr cap_height#*slant-2u#; |
| 1318 |
adjust_fit(0,0); |
| 1319 |
pickup tiny.nib; |
| 1320 |
usechar; |
| 1321 |
x100=x2; top y100''r=-2o; |
| 1322 |
comma(100,.75dot_size,.5hair,.75comma_depth); |
| 1323 |
endchar; |
| 1324 |
|
| 1325 |
iff known chars.latin_Gdotabove: |
| 1326 |
bskchar "The letter G with dot above"; |
| 1327 |
beginchar(chars.latin_Gdotabove,14.3u#,Acc_height#,0); uni "0x0120"; |
| 1328 |
italcorr cap_height#*slant-2u#; |
| 1329 |
adjust_fit(0,0); |
| 1330 |
pickup tiny.nib; |
| 1331 |
usechar; |
| 1332 |
x100=x4; |
| 1333 |
dotabove(100); |
| 1334 |
endchar; |
| 1335 |
|
| 1336 |
iff known chars.latin_Gbreve: |
| 1337 |
bskchar "The letter G with breve"; |
| 1338 |
beginchar(chars.latin_Gbreve,14.3u#,Acc_height#+o#,0); uni "0x011E"; |
| 1339 |
italcorr cap_height#*slant-2u#; |
| 1340 |
adjust_fit(0,0); |
| 1341 |
pickup tiny.nib; |
| 1342 |
usechar; |
| 1343 |
x101=x4; x102-x100=5u; bot y101l=top y4l+o; |
| 1344 |
breve(100,101,102).capital; |
| 1345 |
endchar; |
| 1346 |
|
| 1347 |
iff known chars.latin_G_BB: |
| 1348 |
bskchar "The blackboard-bold letter G"; |
| 1349 |
beginchar(chars.latin_G_BB,14.3u#,cap_height#,0); uni "0x1D53E"; |
| 1350 |
italcorr cap_height#*slant-2u#; |
| 1351 |
adjust_fit(0,0); |
| 1352 |
pickup tiny.nib; |
| 1353 |
path p[]; |
| 1354 |
usechar; |
| 1355 |
oblu.more:=2oblu; |
| 1356 |
infill obl(5''a,5''f,5''b)---obl(5''b,5''a,5''d).more |
| 1357 |
---obl(5''d,5''b,5''f)---obl(5''f,5''e,5''a)---cycle; |
| 1358 |
p100:=subpath(-1,1) of p0; |
| 1359 |
p101:=reverse subpath(-1,1) of p1; |
| 1360 |
oblu:=1.25bbw; |
| 1361 |
z100=bsktouch(subpath(0,1) of p100,bbs*up,p101,down); |
| 1362 |
z101=bsktouch(p100,bbs*down,subpath(0,1) of p101,up); |
| 1363 |
tim100=xpart(p100 intersectiontimes (z100--(x100,y1))); |
| 1364 |
tim101=xpart(p101 intersectiontimes (z100--(x100,y4l+5))); |
| 1365 |
tim102=xpart(p100 intersectiontimes (z101--(x101,y1))); |
| 1366 |
tim103=xpart(p101 intersectiontimes (z101--(x101,y2l-5))); |
| 1367 |
infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100 |
| 1368 |
..subpath(rundy(p101,tim103),rundy(p101,tim101).zpet) of p101..cycle; |
| 1369 |
labels(100,101); |
| 1370 |
endchar; |
| 1371 |
|
| 1372 |
iff known chars.latin_G_SS: |
| 1373 |
bskchar "The sans-serif letter G"; |
| 1374 |
beginchar(chars.latin_G_SS,12.5u#,cap_height#,0); uni "0x1D5A6"; |
| 1375 |
italcorr cap_height#*slant-u#; |
| 1376 |
adjust_fit(0,0); |
| 1377 |
pickup tiny.nib; |
| 1378 |
path p[]; numeric tim[], sersh; |
| 1379 |
sersh=.15tiny; |
| 1380 |
pos1(cap_curve,0); pos2(1.1cap_hair,90); pos3(cap_hair,180); pos4(cap_hair,270); |
| 1381 |
lft x1l=u-o; rt x3r=w-1.5u; y1=y3=.5h; x2=x4=.5[x1,x3]; bot y2l=-o; top y4l=h+o; |
| 1382 |
penpos6(cap_stem,0); rt x6r=w-u; |
| 1383 |
p0:=z1r{down}..z2r..z3r..z4r..{down}cycle; |
| 1384 |
p1:=z1l{down}..z2l..z3l..z4l..{down}cycle; |
| 1385 |
tim1= ypart(((.5w,y3+.2h)--(2w,y3+.2h)) intersectiontimes p0); |
| 1386 |
tim3= ypart(((.5w,y3+.2h)--(2w,y3+.2h)) intersectiontimes p1); |
| 1387 |
z5'=(x3r,y3+.2h); |
| 1388 |
y6=bar_height; |
| 1389 |
z5''b=(x6r,cap_hair); z5''c=(.5[x4,x1r],y3); |
| 1390 |
z5''d=(z5''c--z5''b) intersectionpoint p1; z5''e=.5[z5''b,z5''d]; z5''f=z5''a+cap_stem*left; |
| 1391 |
tim4=ypart(((.5w,y5''e-.25ser_height)--(w,y5''e-.25ser_height)) intersectiontimes p1); |
| 1392 |
tim5=ypart((z6l--(x6l,0)) intersectiontimes p0); |
| 1393 |
filldraw reverse subpath (tim1,length(p0)) of p0 |
| 1394 |
..subpath (tim3,5) of p1..reverse (subpath(0,tim5) of p0---z6l--z6r---z5''b---z5''e |
| 1395 |
..reverse subpath (1,tim4) of p1) & cycle; |
| 1396 |
penlabels(1,2,3,4,6); labels(5,5',5'a,5'b,5'c,5'd,5'e,5'',5''a,5''b,5''c,5''d,5''e,5''f); |
| 1397 |
endchar; |
| 1398 |
|
| 1399 |
iff known chars.sign_guarani: |
| 1400 |
bskchar "Guarani sign"; |
| 1401 |
beginchar(chars.sign_guarani,14.3u#,Acc_height#,Acc_height#-cap_height#); uni "0x20B2"; |
| 1402 |
italcorr cap_height#*slant-2u#; |
| 1403 |
adjust_fit(0,0); |
| 1404 |
pickup tiny.nib; |
| 1405 |
path p[]; numeric tim[], sersh; |
| 1406 |
sersh=.15tiny; |
| 1407 |
pos1(cap_curve,0); pos2(1.1cap_hair,90); pos3(cap_hair,180); pos4(cap_hair,270); |
| 1408 |
pos7(hair,0); pos8(hair,0); |
| 1409 |
lft x1l=u-o; rt x3r=w-2.3u; y1=y3=.5cap_height; x2=x4=.5[x1,x3]; bot y2l=-o; top y4l=cap_height+o; |
| 1410 |
penpos6(beak,0); rt x6r=w-u; x7=x8=x4; top y7=h; bot y8=-d; |
| 1411 |
p0:=z1r{down}..z2r..z3r..z4r..{down}z1r; |
| 1412 |
p1:=z1l{up}..z4l..z3l..z2l..{up}z1l; |
| 1413 |
p2:=z7r--z8r; |
| 1414 |
p3:=z8l--z7l; |
| 1415 |
tim1= ypart(((.5w,y3+.2cap_height)--(2w,y3+.2cap_height)) intersectiontimes p0); |
| 1416 |
z5'=(x6,y3+.2cap_height); |
| 1417 |
z5'a=z5'+serif_o*right; z5'b=(x5'a-sersh,cap_height+o); z5'c=(.35[x4,x3r],y3); |
| 1418 |
if xpart(point tim1 of p0) > x5'a: x5'a:=xpart(point tim1 of p0)+1 fi; |
| 1419 |
z5'd=(z5'c--z5'b) intersectionpoint p1; z5'e=.35[z5'b,z5'd]; |
| 1420 |
tim3=ypart(((.5w,y5'e+if monospace: .1 else: .15 fi \\ser_height)--(w,y5'e+if monospace: .15 else: .25 fi\\ser_height)) intersectiontimes p1); |
| 1421 |
x5''a=x6r-.5cap_stem; y5''a=y3-.2h; z5''=z5''a+serif_o*left; |
| 1422 |
y6=y5''a+cap_hair; |
| 1423 |
z5''b=(x5''a-sersh,cap_hair); z5''c=(.5[x4,x1r],y3); |
| 1424 |
z5''d=(z5''c--z5''b) intersectionpoint p1; z5''e=.5[z5''b,z5''d]; z5''f=z5''a+cap_stem*left; |
| 1425 |
tim4=ypart(((.5w,y5''e-.25ser_height)--(w,y5''e-.25ser_height)) intersectiontimes p1); |
| 1426 |
tim2=ypart((z5''f--(x5''f,0)) intersectiontimes p0); |
| 1427 |
if x6l>x5''f: x6l:=x5''f-(x6r-x5''a); fi |
| 1428 |
(tim5-2,tim6)=subpath(2,infinity) of p0 intersectiontimes p2; |
| 1429 |
(tim7-2,tim8)=subpath(2,infinity) of p0 intersectiontimes p3; |
| 1430 |
(tim9,tim10)=subpath(0,3) of p0 intersectiontimes p2; |
| 1431 |
(tim11-2,tim12)=subpath(2,infinity) of p1 intersectiontimes p2; |
| 1432 |
(tim13-2,tim14)=subpath(2,infinity) of p1 intersectiontimes p3; |
| 1433 |
(tim15,tim16)=subpath(0,2) of p1 intersectiontimes p3; |
| 1434 |
(tim17,tim18)=subpath(0,2) of p1 intersectiontimes p2; |
| 1435 |
(tim19,tim20)=subpath(0,3) of p0 intersectiontimes p3; |
| 1436 |
filldraw z5'e---z5'b--z5'a..subpath(tim1,rundy(p0,tim5).zpet) of p0 |
| 1437 |
..subpath(rundy(p2,tim6),rundy(p2,tim10).zpet) of p2 |
| 1438 |
..subpath(rundy(p0,tim9),tim2) of p0---z5''f..{left}z6l |
| 1439 |
..z6l+serif_o*up--z6r+serif_o*up..z6r{left}..z5''a---z5''b---z5''e |
| 1440 |
..subpath(tim4,rundy(p1,tim11).zpet) of p1 |
| 1441 |
..subpath(rundy(p2,tim12),infinity) of p2 |
| 1442 |
..subpath(0,rundy(p3,tim14).zpet) of p3 |
| 1443 |
..subpath(rundy(p1,tim13),infinity) of p1 |
| 1444 |
..subpath(0,rundy(p1,tim15).zpet) of p1 |
| 1445 |
..subpath(rundy(p3,tim16),infinity) of p3 |
| 1446 |
..subpath(0,rundy(p2,tim18).zpet) of p2 |
| 1447 |
..subpath(rundy(p1,tim17),tim3) of p1..cycle; |
| 1448 |
infill subpath(rundy(p3,tim20),rundy(p3,tim8).zpet) of p3 |
| 1449 |
..subpath(rundy(p0,tim7),infinity) of p0 |
| 1450 |
..subpath(0,rundy(p0,tim19).zpet) of p0..cycle; |
| 1451 |
penlabels(1,2,3,4,6,7,8); labels(5,5',5'a,5'b,5'c,5'd,5'e,5'',5''a,5''b,5''c,5''d,5''e,5''f); |
| 1452 |
endchar; |
| 1453 |
|
| 1454 |
charscription(15u,cap_height,0)( |
| 1455 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 1456 |
pos3(cap_stem,0); pos4(cap_stem,0); |
| 1457 |
bot y1=0; top y2=h; |
| 1458 |
lft x1l=lft x2l=2u; |
| 1459 |
cap_serifs_tl(2l); cap_serifs_tr(2r); cap_serifs_bl(1l); cap_serifs_br(1r); |
| 1460 |
bot y3=0; top y4=h; |
| 1461 |
rt x3r=rt x4r=w-2u; |
| 1462 |
cap_serifs_tl(4l); cap_serifs_tr(4r); cap_serifs_bl(3l); cap_serifs_br(3r); |
| 1463 |
pos5(cap_hair,90); pos6(cap_hair,90); |
| 1464 |
pos7(ser_height,90); pos8(ser_height,90); |
| 1465 |
y5=y6=.52h; x5=x1r.a; x6=x3l.a; |
| 1466 |
y7=y8=y5; x7=x1r; x8=x3l; |
| 1467 |
filldraw z1l.b{down}..{left}z1l.c..z1l.a{right}..z1+ser_boule*up.. |
| 1468 |
{right}z1r.a..z1r.c{left}..z1r.b---z7l{dir80}..z5l---z6l.. |
| 1469 |
{dir-80}z8l---z3l.b{down}..{left}z3l.c..z3l.a{right}.. |
| 1470 |
z3+ser_boule*up..{right}z3r.a..z3r.c{left}..z3r.b---z4r.b.. |
| 1471 |
{right}z4r.c..z4r.a---z4l.a..{right}z4l.c..z4l.b--- |
| 1472 |
z8r{dir-100}..z6r---z5r..{dir100}z7r---z2r.b..{right}z2r.c.. |
| 1473 |
z2r.a---z2l.a..{right}z2l.c..z2l.b---cycle; |
| 1474 |
penlabels(1,2,3,4,5,6,7,8); |
| 1475 |
); |
| 1476 |
|
| 1477 |
iff known chars.latin_H: |
| 1478 |
bskchar "The letter H"; |
| 1479 |
beginchar(chars.latin_H,15u#,cap_height#,0); uni "0x0048"; |
| 1480 |
italcorr cap_height#*slant+.25u#; |
| 1481 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 1482 |
pickup tiny.nib; |
| 1483 |
usechar; |
| 1484 |
math_fit(0,.75ic#); |
| 1485 |
endchar; |
| 1486 |
|
| 1487 |
iff known chars.latin_Hcaron: |
| 1488 |
bskchar "The letter H with caron"; |
| 1489 |
beginchar(chars.latin_Hcaron,15u#,Acc_height#,0); uni "0x021E"; |
| 1490 |
italcorr cap_height#*slant+.25u#; |
| 1491 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 1492 |
pickup tiny.nib; |
| 1493 |
usechar; |
| 1494 |
x101=.5w; |
| 1495 |
hacek(100,101,102).capital; |
| 1496 |
endchar; |
| 1497 |
|
| 1498 |
iff known chars.latin_Hcircumflex: |
| 1499 |
bskchar "The letter H with circumflex"; |
| 1500 |
beginchar(chars.latin_Hcircumflex,15u#,Acc_height#,0); uni "0x0124"; |
| 1501 |
italcorr cap_height#*slant+.25u#; |
| 1502 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 1503 |
pickup tiny.nib; |
| 1504 |
usechar; |
| 1505 |
x101=.5w; |
| 1506 |
circumflex(100,101,102).capital; |
| 1507 |
endchar; |
| 1508 |
|
| 1509 |
iff known chars.latin_H_BB: |
| 1510 |
bskchar "The blackboard-bold letter H"; |
| 1511 |
beginchar(chars.latin_H_BB,15u#,cap_height#,0); uni "0x210D"; |
| 1512 |
italcorr cap_height#*slant+.25u#; |
| 1513 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 1514 |
pickup tiny.nib; |
| 1515 |
usechar; |
| 1516 |
bot z100=(x1l,y1l.c); top z101=(x2l,y2l.c); |
| 1517 |
bot z102=(x3r,y3r.c); top z103=(x4r,y4r.c); |
| 1518 |
infill obl(2r,2l,1r)---obl(1r,2r,1l)---z1l...obl(100,1l.c,2l)---obl(101,1l,2l.c)...z2l---cycle; |
| 1519 |
infill obl(4l,4r,3l)---obl(3l,4l,3r)---z3r...obl(102,3r.c,4r)---obl(103,3r,4r.c)...z4r---cycle; |
| 1520 |
endchar; |
| 1521 |
|
| 1522 |
iff known chars.latin_Hstroke: |
| 1523 |
bskchar "The letter H with stroke"; |
| 1524 |
beginchar(chars.latin_Hstroke,15u#,cap_height#,0); uni "0x0126"; |
| 1525 |
italcorr cap_height#*slant+.25u#; |
| 1526 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 1527 |
pickup tiny.nib; |
| 1528 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 1529 |
pos3(cap_stem,0); pos4(cap_stem,0); |
| 1530 |
bot y1=0; top y2=h; |
| 1531 |
lft x1l=lft x2l=2u; |
| 1532 |
cap_serifs_tl(2l); cap_serifs_tr(2r); cap_serifs_bl(1l); cap_serifs_br(1r); |
| 1533 |
bot y3=0; top y4=h; |
| 1534 |
rt x3r=rt x4r=w-2u; |
| 1535 |
cap_serifs_tl(4l); cap_serifs_tr(4r); cap_serifs_bl(3l); cap_serifs_br(3r); |
| 1536 |
pos5(cap_hair,90); pos6(cap_hair,90); |
| 1537 |
pos7(ser_height,90); pos8(ser_height,90); |
| 1538 |
y5=y6=.52h; x5=x1r.a; x6=x3l.a; |
| 1539 |
y7=y8=y5; x7=x1r; x8=x3l; |
| 1540 |
forsuffixes i=10,11,12,13,14,15: pos.i(bar,90); y[i]=.35[x_height,h]; endfor; |
| 1541 |
lft x10=.75u; x15=w-x10; x11=x1l; x12=x1r; x13=x3l; x14=x3r; |
| 1542 |
bskpoints(10,15,.5hair,.5hair); |
| 1543 |
filldraw z1l.b{down}..{left}z1l.c..z1l.a{right}..z1+ser_boule*up.. |
| 1544 |
{right}z1r.a..z1r.c{left}..z1r.b---z7l{dir80}..z5l---z6l.. |
| 1545 |
{dir-80}z8l---z3l.b{down}..{left}z3l.c..z3l.a{right}.. |
| 1546 |
z3+ser_boule*up..{right}z3r.a..z3r.c{left}..z3r.b--- |
| 1547 |
obl(14l,3r,15l)---z15ll..z15r---obl(14r,15r,4r)--- |
| 1548 |
z4r.b..{right}z4r.c..z4r.a---z4l.a..{right}z4l.c..z4l.b--- |
| 1549 |
obl(13r,4l,12r)---obl(12r,13r,2r)--- |
| 1550 |
z2r.b..{right}z2r.c..z2r.a---z2l.a..{right}z2l.c..z2l.b--- |
| 1551 |
obl(11r,2l,10r)---z10rr..z10l---obl(11l,10l,1l)---cycle; |
| 1552 |
infill obl(13l,12l,8r)---z8r{dir-100}..z6r---z5r..{dir100}z7r---obl(12l,7r,13l)---cycle; |
| 1553 |
penlabels(1,2,3,4,5,6,7,8,10,11,12,13,14,15); labels(15ll,10rr); |
| 1554 |
endchar; |
| 1555 |
|
| 1556 |
iff known chars.latin_H_SS: |
| 1557 |
bskchar "The sans-serif letter H"; |
| 1558 |
beginchar(chars.latin_H_SS,13.5u#,cap_height#,0); uni "0x1D5A7"; |
| 1559 |
italcorr cap_height#*slant+.25u#; |
| 1560 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 1561 |
pickup tiny.nib; |
| 1562 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 1563 |
pos3(cap_stem,0); pos4(cap_stem,0); |
| 1564 |
bot y1=0; top y2=h; |
| 1565 |
lft x1l=lft x2l=2u; |
| 1566 |
cap_serifs_tl(2l); cap_serifs_tr(2r); cap_serifs_bl(1l); cap_serifs_br(1r); |
| 1567 |
bot y3=0; top y4=h; |
| 1568 |
rt x3r=rt x4r=w-2u; |
| 1569 |
cap_serifs_tl(4l); cap_serifs_tr(4r); cap_serifs_bl(3l); cap_serifs_br(3r); |
| 1570 |
pos5(cap_hair,90); pos6(cap_hair,90); |
| 1571 |
pos7(1.5cap_stem,90); pos8(1.5cap_stem,90); |
| 1572 |
y5=y6=.52h; x5=x1r.a; x6=x3l.a; |
| 1573 |
y7=y8=y5; x7=x1r; x8=x3l; |
| 1574 |
filldraw z1l.b{down}..z1..z1r.b---z7l{dir80}..z5l---z6l.. |
| 1575 |
{dir-80}z8l---z3l.b..z3..z3r.b---z4r.b.. |
| 1576 |
z4..z4l.b---z8r{dir-100}..z6r---z5r..{dir100}z7r---z2r.b..z2..z2l.b---cycle; |
| 1577 |
penlabels(1,2,3,4,5,6,7,8); |
| 1578 |
endchar; |
| 1579 |
|
| 1580 |
charscription(6u,cap_height,0)( |
| 1581 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 1582 |
bot y1=0; top y2=h; |
| 1583 |
x1=x2=.5w; |
| 1584 |
cap_serifs_tl(2l); cap_serifs_tr(2r); cap_serifs_bl(1l); cap_serifs_br(1r); |
| 1585 |
filldraw z1l.b{down}..{left}z1l.c..z1l.a{right}..z1+ser_boule*up.. |
| 1586 |
{right}z1r.a..z1r.c{left}..z1r.b---z2r.b..{right}z2r.c.. |
| 1587 |
z2r.a---z2l.a..{right}z2l.c..z2l.b---cycle; |
| 1588 |
penlabels(1,2); |
| 1589 |
); |
| 1590 |
|
| 1591 |
iff known chars.latin_I: |
| 1592 |
bskchar "The letter I"; |
| 1593 |
beginchar(chars.latin_I,6u#,cap_height#,0); uni "0x0049"; |
| 1594 |
italcorr cap_height#*slant; |
| 1595 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 1596 |
pickup tiny.nib; |
| 1597 |
usechar; |
| 1598 |
math_fit(0,.75ic#); |
| 1599 |
endchar; |
| 1600 |
|
| 1601 |
iff known chars.latin_I_dotless: |
| 1602 |
bskchar "The letter I (dotless I for Small Caps)"; |
| 1603 |
beginchar(chars.latin_I_dotless,6u#,cap_height#,0); uni "non"; |
| 1604 |
italcorr cap_height#*slant; |
| 1605 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 1606 |
pickup tiny.nib; |
| 1607 |
usechar; |
| 1608 |
endchar; |
| 1609 |
|
| 1610 |
iff known chars.latin_Iacute: |
| 1611 |
bskchar "The letter I with acute"; |
| 1612 |
beginchar(chars.latin_Iacute,6u#,Acc_height#,0); uni "0x00CD"; |
| 1613 |
italcorr cap_height#*slant; |
| 1614 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 1615 |
pickup tiny.nib; |
| 1616 |
usechar; |
| 1617 |
.5[x100,x101]=x2; x100r-x101=3u; |
| 1618 |
acute(100,101).capital; |
| 1619 |
endchar; |
| 1620 |
|
| 1621 |
iff known chars.latin_Igrave: |
| 1622 |
bskchar "The letter I with grave"; |
| 1623 |
beginchar(chars.latin_Igrave,6u#,Acc_height#,0); uni "0x00CC"; |
| 1624 |
italcorr cap_height#*slant; |
| 1625 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 1626 |
pickup tiny.nib; |
| 1627 |
usechar; |
| 1628 |
.5[x100,x101]=x2; |
| 1629 |
grave(100,101).capital; |
| 1630 |
endchar; |
| 1631 |
|
| 1632 |
iff known chars.latin_Idoublegrave: |
| 1633 |
bskchar "The letter I with double grave"; |
| 1634 |
beginchar(chars.latin_Idoublegrave,6u#,Acc_height#,0); uni "0x0208"; |
| 1635 |
italcorr cap_height#*slant; |
| 1636 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 1637 |
pickup tiny.nib; |
| 1638 |
usechar; |
| 1639 |
x102-x100=3u; |
| 1640 |
d_grave(100,101,102,103,x1l).capital; |
| 1641 |
endchar; |
| 1642 |
|
| 1643 |
iff known chars.latin_Imacron: |
| 1644 |
bskchar "The letter I with macron"; |
| 1645 |
beginchar(chars.latin_Imacron,6u#,Acc_height#-.1x_height#,0); uni "0x012A"; |
| 1646 |
italcorr (Acc_height#-.1x_height#)*slant+.2u#; |
| 1647 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 1648 |
pickup tiny.nib; |
| 1649 |
usechar; |
| 1650 |
macron(100,101); |
| 1651 |
endchar; |
| 1652 |
|
| 1653 |
iff known chars.latin_Icircumflex: |
| 1654 |
bskchar "The letter I with circumflex"; |
| 1655 |
beginchar(chars.latin_Icircumflex,6u#,Acc_height#,0); uni "0x00CE"; |
| 1656 |
italcorr (cap_height#+.75u#)*slant+.25u#; |
| 1657 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 1658 |
pickup tiny.nib; |
| 1659 |
usechar; |
| 1660 |
x101=x2; |
| 1661 |
circumflex(100,101,102).capital; |
| 1662 |
endchar; |
| 1663 |
|
| 1664 |
iff known chars.latin_Iumlaut: |
| 1665 |
bskchar "The letter I with umlaut"; |
| 1666 |
beginchar(chars.latin_Iumlaut,6u#,Acc_height#,0); uni "0x00CF"; |
| 1667 |
italcorr cap_height#*slant+.25u#; |
| 1668 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 1669 |
pickup tiny.nib; |
| 1670 |
usechar; |
| 1671 |
.5[x100,x101]=x2; x100-x101=3u; |
| 1672 |
umlaut(100,101); |
| 1673 |
endchar; |
| 1674 |
|
| 1675 |
iff known chars.latin_Idotabove: |
| 1676 |
bskchar "The letter I with dot above"; |
| 1677 |
beginchar(chars.latin_Idotabove,6u#,Acc_height#,0); uni "0x0130"; |
| 1678 |
italcorr cap_height#*slant; |
| 1679 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 1680 |
pickup tiny.nib; |
| 1681 |
usechar; |
| 1682 |
x100=x2; |
| 1683 |
dotabove(100); |
| 1684 |
endchar; |
| 1685 |
|
| 1686 |
iff known chars.latin_Ibreve: |
| 1687 |
bskchar "The letter I with breve"; |
| 1688 |
beginchar(chars.latin_Ibreve,6u#,Acc_height#,0); uni "0x012C"; |
| 1689 |
italcorr cap_height#*slant+.25u#; |
| 1690 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 1691 |
pickup tiny.nib; |
| 1692 |
usechar; |
| 1693 |
x101=x2+o; |
| 1694 |
breve(100,101,102).capital; |
| 1695 |
endchar; |
| 1696 |
|
| 1697 |
iff known chars.latin_Iinvbreve: |
| 1698 |
bskchar "The letter I with inverted breve"; |
| 1699 |
beginchar(chars.latin_Iinvbreve,6u#,Acc_height#+o#,0); uni "0x020A"; |
| 1700 |
italcorr cap_height#*slant; |
| 1701 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 1702 |
pickup tiny.nib; |
| 1703 |
usechar; |
| 1704 |
x101=x2+o; |
| 1705 |
bot bot y100=cap_height+o; |
| 1706 |
tieacc(100,101,102).capital; |
| 1707 |
endchar; |
| 1708 |
|
| 1709 |
iff known chars.latin_Itilde: |
| 1710 |
bskchar "The letter I with tilde"; |
| 1711 |
beginchar(chars.latin_Itilde,6u#,Acc_height#,0); uni "0x0128"; |
| 1712 |
italcorr Acc_height#*slant+.5u#; |
| 1713 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 1714 |
pickup tiny.nib; |
| 1715 |
usechar; |
| 1716 |
x101-x100=6u; bot y100=top y2+o; |
| 1717 |
tilde(100,101).capital; |
| 1718 |
endchar; |
| 1719 |
|
| 1720 |
iff known chars.latin_Icaron: |
| 1721 |
bskchar "The letter I with caron"; |
| 1722 |
beginchar(chars.latin_Icaron,6u#,Acc_height#,0); uni "0x01CF"; |
| 1723 |
italcorr Acc_height#*slant+.25u#; |
| 1724 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 1725 |
pickup tiny.nib; |
| 1726 |
usechar; |
| 1727 |
x101=x2; |
| 1728 |
hacek(100,101,102).capital; |
| 1729 |
endchar; |
| 1730 |
|
| 1731 |
iff known chars.latin_I_BB: |
| 1732 |
bskchar "The blackboard-bold letter I"; |
| 1733 |
beginchar(chars.latin_I_BB,6u#,cap_height#,0); uni "0x1D540"; |
| 1734 |
italcorr cap_height#*slant; |
| 1735 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 1736 |
pickup tiny.nib; |
| 1737 |
usechar; |
| 1738 |
bot z100=(x1l,y1l.c); top z101=(x2l,y2l.c); |
| 1739 |
infill obl(2r,2l,1r)---obl(1r,2r,1l)---z1l...obl(100,1l.c,2l)---obl(101,1l,2l.c)...z2l---cycle; |
| 1740 |
endchar; |
| 1741 |
|
| 1742 |
iff known chars.latin_Iogonek: |
| 1743 |
bskchar "The letter I with ogonek"; |
| 1744 |
beginchar(chars.latin_Iogonek,7u#,cap_height#,.85desc_depth#); uni "0x012E"; |
| 1745 |
italcorr cap_height#*slant; |
| 1746 |
adjust_fit(0,0); |
| 1747 |
pickup tiny.nib; |
| 1748 |
path p; |
| 1749 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 1750 |
pos3(stem,0); pos4(curve,0); pos5(hair,45); pos6(hair,160); |
| 1751 |
bot y1=0; top y2=h; |
| 1752 |
x1=x2=.5w; |
| 1753 |
x3=x4l+1.5u; x3=x1l; x5-x4l=3u; rt x6l=x5+1.5u; |
| 1754 |
bot y3=0; y4=-.5d; bot y5l=-d; y6=-2/3d; |
| 1755 |
cap_serifs_tl(2l); cap_serifs_tr(2r); cap_serifs_bl(1l); cap_serifs_br(1r); |
| 1756 |
p:=z3l{z4l-z3r}..z4l...z5l..{z3-z4}z6l..z6r{z4-z3}..z5r..z4r..z3r; |
| 1757 |
filldraw z1l.b{down}..{left}z1l.c..z3l+hair*left |
| 1758 |
..subpath(rundy(p,0),rundy(p,length p).zpet) of p |
| 1759 |
..z3r+hair*right---z1r.a..z1r.c{left}..z1r.b |
| 1760 |
---z2r.b..{right}z2r.c.. |
| 1761 |
z2r.a---z2l.a..{right}z2l.c..z2l.b---cycle; |
| 1762 |
penlabels(1,2,3,4,5,6); |
| 1763 |
endchar; |
| 1764 |
|
| 1765 |
iff known chars.latin_I_SS: |
| 1766 |
bskchar "The sans-serif letter I"; |
| 1767 |
beginchar(chars.latin_I_SS,6u#,cap_height#,0); uni "0x1D5A8"; |
| 1768 |
italcorr cap_height#*slant; |
| 1769 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 1770 |
pickup tiny.nib; |
| 1771 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 1772 |
bot y1=0; top y2=h; |
| 1773 |
x1=x2=.5w; |
| 1774 |
cap_serifs_tl(2l); cap_serifs_tr(2r); cap_serifs_bl(1l); cap_serifs_br(1r); |
| 1775 |
filldraw z1l.b{down}..z1..z1r.b---z2r.b..z2..z2l.b---cycle; |
| 1776 |
penlabels(1,2); |
| 1777 |
endchar; |
| 1778 |
|
| 1779 |
charscription(7u,cap_height,.6desc_depth)( |
| 1780 |
pos1(cap_stem,0); pos2(cap_stem,0); pos3(cap_hair,-90); |
| 1781 |
bot y1=-cap_hair; top y2=h; rt x1r=rt x2r=w-2u; |
| 1782 |
bot y3r=-d; x3=if monospace: .3w else: u fi; top y4=-.3d; x4l=if monospace: cap_stem else: -u fi; |
| 1783 |
cap_serifs_tl(2l); cap_serifs_tr(2r); |
| 1784 |
filldraw z3r{right}...z1r--- z2r.b..{right}z2r.c..z2r.a---z2l.a..{right}z2l.c..z2l.b--- |
| 1785 |
z1l...{left}z3l..reverse smitko(4,cap_stem)..cycle; |
| 1786 |
penlabels(1,2,3,4); labels(4',4'',4'''); |
| 1787 |
); |
| 1788 |
|
| 1789 |
iff known chars.latin_J: |
| 1790 |
bskchar "The letter J"; |
| 1791 |
beginchar(chars.latin_J,7u#,cap_height#,.6desc_depth#); uni "0x004A"; |
| 1792 |
italcorr cap_height#*slant+.5u#; |
| 1793 |
adjust_fit(0,cap_serif_fit#); |
| 1794 |
pickup tiny.nib; |
| 1795 |
usechar; |
| 1796 |
math_fit(.6desc_depth#*slant+1.5u#,ic#-3u#); |
| 1797 |
endchar; |
| 1798 |
|
| 1799 |
iff known chars.latin_J_dotless: |
| 1800 |
bskchar "The letter J (dotless J for Small Caps)"; |
| 1801 |
beginchar(chars.latin_J_dotless,7u#,cap_height#,.6desc_depth#); uni "non"; |
| 1802 |
italcorr cap_height#*slant+.5u#; |
| 1803 |
adjust_fit(0,cap_serif_fit#); |
| 1804 |
pickup tiny.nib; |
| 1805 |
usechar; |
| 1806 |
endchar; |
| 1807 |
|
| 1808 |
iff known chars.latin_Jcircumflex: |
| 1809 |
bskchar "The letter J with circumflex"; |
| 1810 |
beginchar(chars.latin_Jcircumflex,7u#,Acc_height#,.6desc_depth#); uni "0x0134"; |
| 1811 |
italcorr (cap_height#+.75u#)*slant+.5u#; |
| 1812 |
adjust_fit(0,cap_serif_fit#); |
| 1813 |
pickup tiny.nib; |
| 1814 |
usechar; |
| 1815 |
x101=x2; |
| 1816 |
circumflex(100,101,102).capital; |
| 1817 |
endchar; |
| 1818 |
|
| 1819 |
iff known chars.latin_J_BB: |
| 1820 |
bskchar "The blackboard-bold letter J"; |
| 1821 |
beginchar(chars.latin_J_BB,7u#,cap_height#,.6desc_depth#); uni "0x1D541"; |
| 1822 |
italcorr cap_height#*slant+.5u#; |
| 1823 |
adjust_fit(0,cap_serif_fit#); |
| 1824 |
pickup tiny.nib; |
| 1825 |
usechar; |
| 1826 |
path p[]; numeric tim[]; |
| 1827 |
top z100=(x2r,y2r.c); |
| 1828 |
p100=z1l{down}..{left}z3l; |
| 1829 |
p101=z3r{right}..{up}z1r; |
| 1830 |
z101=bsktouch(p100,bbs*down,p101,up); |
| 1831 |
tim100=xpart(p100 intersectiontimes (z101--(x101,y1))); |
| 1832 |
tim101=xpart(p101 intersectiontimes (z101--(x101,y3r))); |
| 1833 |
infill obl(2l,2r,1l)---subpath(0,rundy(p100,(tim100,.75bbw)).zpet) of p100 |
| 1834 |
..subpath(rundy(p101,(tim101,.75bbw)),infinity) of p101---obl(100,1r,2r.c)...z2r---cycle; |
| 1835 |
labels(101); |
| 1836 |
endchar; |
| 1837 |
|
| 1838 |
iff known chars.latin_J_SS: |
| 1839 |
bskchar "The sans-serif letter J"; |
| 1840 |
beginchar(chars.latin_J_SS,7u#,cap_height#,.6desc_depth#); uni "0x1D5A9"; |
| 1841 |
italcorr cap_height#*slant+.5u#; |
| 1842 |
adjust_fit(0,cap_serif_fit#); |
| 1843 |
pickup tiny.nib; |
| 1844 |
pos1(cap_stem,0); pos2(cap_stem,0); pos3(cap_hair,-90); pos4(cap_stem,160); |
| 1845 |
bot y1=-cap_hair; top y2=h; rt x1r=rt x2r=w-2u; |
| 1846 |
bot y3r=-d; x3=u; top y4=-.3d; x4l=-u; z4'=z4+.75currentbreadth*(unitvector(z4l-z4r) rotated 90); |
| 1847 |
cap_serifs_tl(2l); cap_serifs_tr(2r); |
| 1848 |
filldraw z3r{right}...z1r---z2r.b..z2..z2l.b---z1l...{left}z3l..{up}z4l.. |
| 1849 |
if (substring(0,5) of font_identifier_) <> "BSKHC": z4'.. fi {down}z4r..cycle; |
| 1850 |
penlabels(1,2,3,4); labels(4'); |
| 1851 |
endchar; |
| 1852 |
|
| 1853 |
iff known chars.latin_IJ: |
| 1854 |
bskchar "The letter IJ"; |
| 1855 |
beginchar(chars.latin_IJ,12.5u#,cap_height#,.6desc_depth#); uni "0x0132"; |
| 1856 |
italcorr cap_height#*slant+.5u#; |
| 1857 |
adjust_fit(0,cap_serif_fit#); |
| 1858 |
pickup tiny.nib; |
| 1859 |
numeric shift; shift=w-7u; |
| 1860 |
usechar shifted (shift*right); |
| 1861 |
pos5(cap_stem,0); pos6(cap_stem,0); |
| 1862 |
bot y5=0; top y6=h; |
| 1863 |
lft x5l=2u; x5=x6; |
| 1864 |
cap_serifs_tl(6l); cap_serifs_tr(6r); cap_serifs_bl(5l); cap_serifs_br(5r); |
| 1865 |
filldraw z5l.b{down}..{left}z5l.c..z5l.a{right}..z5+ser_boule*up.. |
| 1866 |
{right}z5r.a..z5r.c{left}..z5r.b---z6r.b..{right}z6r.c.. |
| 1867 |
z6r.a---z6l.a..{right}z6l.c..z6l.b---cycle; |
| 1868 |
penlabels(5,6); |
| 1869 |
endchar; |
| 1870 |
|
| 1871 |
charscription(14u,cap_height,0)( |
| 1872 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 1873 |
pos3(whatever,0); pos5(whatever,0); |
| 1874 |
bot y1=0; top y2=h; lft x1l=lft x2l=2u; |
| 1875 |
rt x3r=w-3.5u; top y3=h; rt x5r=w-2u; bot y5r=0; |
| 1876 |
y4r=.4h; x4r=x2r; z4l=z4r+(cap_hair-tiny,0) rotated (angle(z3r-z4r)+90); |
| 1877 |
z3l=z4l+whatever*(z3r-z4r); |
| 1878 |
x6l=x4r+cap_hair+.5u; z6l=whatever[z4r,z3r]; z6'=z6l+(cap_stem-tiny,0) rotated (angle(z5r-z6l)+90); |
| 1879 |
z5l=z6l+whatever*(z5r-z6'); z6r=whatever[z5r,z6']=whatever[z4r,z3r]; |
| 1880 |
x4'=x2r; z4'=whatever[z3l,z4l]; |
| 1881 |
cap_serifs_tl(2l); cap_serifs_tr(2r); cap_serifs_bl(1l); cap_serifs_br(1r); |
| 1882 |
cap_serifs_tl(3l); cap_serifs_tr(3r); cap_serifs_br(5r); cap_serifs_bl(5l); |
| 1883 |
z4r'=z4r+.5u*down; z4r''=z4r+(u,0) rotated (angle(z3r-z4r)); |
| 1884 |
z6l'=z6l+(-u,0) rotated (angle(z3r-z4r)); |
| 1885 |
z6l''=z6l+(u,0) rotated (angle(z5l-z6l)); |
| 1886 |
z6r'=z6r+(u,0) rotated (angle(z5r-z6r)); z6r''=z6r+(u,0) rotated (angle(z3r-z4r)); |
| 1887 |
x2'=x6l; z2'=whatever[z3l,z4l]; z2''=z4'+(0,2u); |
| 1888 |
filldraw z1l.b{down}..{left}z1l.c..z1l.a{right}..z1+ser_boule*up.. |
| 1889 |
{right}z1r.a..z1r.c{left}..z1r.b---z4r..z4r'' |
| 1890 |
if x6l'>x4r'': ..z6l' fi ..z6l''---diag_serif(5l,6l).. |
| 1891 |
{left}z5l.c..z5l.a{right}..z5+ser_boule*up..{right}z5r.a.. |
| 1892 |
{left}z5r.c..diag_serif(5r,6r)---z6r'..z6r''--- |
| 1893 |
diag_serif(3r,4r)..{dir0}z3r.c..z3r.a---z3l.a.. |
| 1894 |
z3l.c{dir0}..diag_serif(3l,4l)---z2'..z2''--- |
| 1895 |
z2r.b..{right}z2r.c..z2r.a---z2l.a..{right}z2l.c..z2l.b---cycle; |
| 1896 |
penlabels(1,2,3,4,5,6); labels(2',2'',4',4r',4r'',6l',6l'',6r',6r''); |
| 1897 |
); |
| 1898 |
|
| 1899 |
iff known chars.latin_K: |
| 1900 |
bskchar "The letter K"; |
| 1901 |
beginchar(chars.latin_K,14u#,cap_height#,0); uni "0x004B"; |
| 1902 |
italcorr cap_height#*slant-u#; |
| 1903 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 1904 |
pickup tiny.nib; |
| 1905 |
usechar; |
| 1906 |
math_fit(0,.75ic#); |
| 1907 |
endchar; |
| 1908 |
|
| 1909 |
iff known chars.latin_Kcaron: |
| 1910 |
bskchar "The letter K with caron"; |
| 1911 |
beginchar(chars.latin_Kcaron,14u#,Acc_height#,0); uni "0x01E8"; |
| 1912 |
italcorr cap_height#*slant-u#; |
| 1913 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 1914 |
pickup tiny.nib; |
| 1915 |
usechar; |
| 1916 |
x101=.5[x2r.a,x3l.a]; |
| 1917 |
hacek(100,101,102).capital; |
| 1918 |
endchar; |
| 1919 |
|
| 1920 |
iff known chars.latin_Kcedilla: |
| 1921 |
bskchar "The letter K with cedilla (treated as comma)"; |
| 1922 |
beginchar(chars.latin_Kcedilla,14u#,cap_height#,.75comma_depth#); uni "0x0136"; |
| 1923 |
italcorr cap_height#*slant-u#; |
| 1924 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 1925 |
pickup tiny.nib; |
| 1926 |
usechar; |
| 1927 |
x100=.5[x1r.a,x5l.a]; top y100''r=0; |
| 1928 |
comma(100,.75dot_size,.5hair,.75comma_depth); |
| 1929 |
endchar; |
| 1930 |
|
| 1931 |
iff known chars.latin_K_BB: |
| 1932 |
bskchar "The blackboard-bold letter K"; |
| 1933 |
beginchar(chars.latin_K_BB,14u#,cap_height#,0); uni "0x1D542"; |
| 1934 |
italcorr cap_height#*slant-u#; |
| 1935 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 1936 |
pickup tiny.nib; |
| 1937 |
usechar; |
| 1938 |
path p[]; numeric tim[]; |
| 1939 |
bot z100=(x1l,y1l.c); top z101=(x2l,y2l.c); |
| 1940 |
infill obl(2r,2l,1r)---obl(1r,2r,1l)---z1l...obl(100,1l.c,2l)---obl(101,1l,2l.c)...z2l---cycle; |
| 1941 |
bot z102=(lft x5r,y5r.c); |
| 1942 |
p100=ifobl(6r,6l,5r,5l,,)---obl(5l,6l,5)---z5r...obl(102,5r.c,6r)---cycle; |
| 1943 |
infill p100; |
| 1944 |
endchar; |
| 1945 |
|
| 1946 |
iff known chars.latin_K_SS: |
| 1947 |
bskchar "The sans-serif letter K"; |
| 1948 |
beginchar(chars.latin_K_SS,13u#,cap_height#,0); uni "0x1D5AA"; |
| 1949 |
italcorr cap_height#*slant-u#; |
| 1950 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 1951 |
pickup tiny.nib; |
| 1952 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 1953 |
pos3(whatever,0); pos5(whatever,0); |
| 1954 |
bot y1=0; top y2=h; lft x1l=lft x2l=2u; |
| 1955 |
rt x3r=w-3u; top y3=h; rt x5r=w-1.5u; bot y5r=0; |
| 1956 |
y4r=.4h; x4r=x2r; z4l=z4r+(cap_hair-tiny,0) rotated (angle(z3r-z4r)+90); |
| 1957 |
z3l=z4l+whatever*(z3r-z4r); |
| 1958 |
x6l=x4r+cap_hair+.5u; z6l=whatever[z4r,z3r]; z6'=z6l+(cap_stem-tiny,0) rotated (angle(z5r-z6l)+90); |
| 1959 |
z5l=z6l+whatever*(z5r-z6'); z6r=whatever[z5r,z6']=whatever[z4r,z3r]; |
| 1960 |
x4'=x2r; z4'=whatever[z3l,z4l]; |
| 1961 |
cap_serifs_tl(2l); cap_serifs_tr(2r); cap_serifs_bl(1l); cap_serifs_br(1r); |
| 1962 |
cap_serifs_tl(3l); cap_serifs_tr(3r); cap_serifs_br(5r); cap_serifs_bl(5l); |
| 1963 |
z4r'=z4r+.5u*down; z4r''=z4r+(u,0) rotated (angle(z3r-z4r)); |
| 1964 |
z6l'=z6l+(-u,0) rotated (angle(z3r-z4r)); |
| 1965 |
z6l''=z6l+(u,0) rotated (angle(z5l-z6l)); |
| 1966 |
z6r'=z6r+(u,0) rotated (angle(z5r-z6r)); z6r''=z6r+(u,0) rotated (angle(z3r-z4r)); |
| 1967 |
x2'=x6l; z2'=whatever[z3l,z4l]; z2''=z4'+(0,2u); |
| 1968 |
y100l=y100r=.5[y3l.b,y3]; y101l=y101r=.5[y5l.b,y5]; |
| 1969 |
z100l=whatever[z3l,z4l]; z100r=whatever[z3r,z4r]; |
| 1970 |
z101l=whatever[z5l,z6l]; z101r=whatever[z5r,z6r]; |
| 1971 |
filldraw z1l.b{down}..z1..z1r.b---z4r..z4r'' |
| 1972 |
if x6l'>x4r'': ..z6l' fi ..z6l''---z101l..z5..z101r---z6r'..z6r''--- |
| 1973 |
z100r...z3...z100l---z2'..z2''---z2r.b..z2..z2l.b---cycle; |
| 1974 |
penlabels(1,2,3,4,5,6,100,101); labels(2',2'',4',4r',4r'',6l',6l'',6r',6r''); |
| 1975 |
endchar; |
| 1976 |
|
| 1977 |
charscription(12.5u,cap_height,0)( |
| 1978 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 1979 |
bot y1=0; top y2=h; bot y3r=0; rt x3r=w-u; |
| 1980 |
lft x1l=lft x2l=2u; |
| 1981 |
cap_serifs_tl(2l); cap_serifs_tr(2r); cap_serifs_bl(1l); |
| 1982 |
filldraw z1l.b{down}..{left}z1l.c..z1l.a{right}..z1+ser_boule*up.. |
| 1983 |
arm_bot_r_points(1r,3).alt---z2r.b..{right}z2r.c..z2r.a--- |
| 1984 |
z2l.a..{right}z2l.c..z2l.b---cycle; |
| 1985 |
penlabels(1,2); |
| 1986 |
); |
| 1987 |
|
| 1988 |
iff known chars.latin_L: |
| 1989 |
bskchar "The letter L"; |
| 1990 |
beginchar(chars.latin_L,12.5u#,cap_height#,0); uni "0x004C"; |
| 1991 |
italcorr .5bar_height#*slant; |
| 1992 |
adjust_fit(cap_serif_fit#,0); |
| 1993 |
pickup tiny.nib; |
| 1994 |
usechar; |
| 1995 |
math_fit(0,ic#); |
| 1996 |
endchar; |
| 1997 |
|
| 1998 |
iff known chars.latin_Ldot: |
| 1999 |
bskchar "The letter L with middle dot"; |
| 2000 |
beginchar(chars.latin_L,14u#,cap_height#,0); uni "0x013F"; |
| 2001 |
italcorr x_height#*slant+.35dot_size#; |
| 2002 |
adjust_fit(cap_serif_fit#,0); |
| 2003 |
pickup tiny.nib; |
| 2004 |
usechar; |
| 2005 |
top y100=x_height; rt x100+.5dot_size=w-.5u; |
| 2006 |
dot(100); |
| 2007 |
endchar; |
| 2008 |
|
| 2009 |
iff known chars.latin_Lacute: |
| 2010 |
bskchar "The letter L with acute"; |
| 2011 |
beginchar(chars.latin_Lacute,12.5u#,Acc_height#,0); uni "0x0139"; |
| 2012 |
italcorr .5bar_height#*slant; |
| 2013 |
adjust_fit(cap_serif_fit#,0); |
| 2014 |
pickup tiny.nib; |
| 2015 |
usechar; |
| 2016 |
x101=x2l; |
| 2017 |
acute(100,101).capital; |
| 2018 |
endchar; |
| 2019 |
|
| 2020 |
iff known chars.latin_Lcaron: |
| 2021 |
bskchar "The letter L with caron (treated like comma)"; |
| 2022 |
beginchar(chars.latin_Lcaron,12.5u#,asc_height#,0); uni "0x013D"; |
| 2023 |
italcorr .5bar_height#*slant; |
| 2024 |
adjust_fit(cap_serif_fit#,0); |
| 2025 |
pickup tiny.nib; |
| 2026 |
usechar; |
| 2027 |
y100''r=h; lft x100'l=rt x2r.a+stem; |
| 2028 |
comma(100,.75dot_size,.5hair,.75comma_depth); |
| 2029 |
endchar; |
| 2030 |
|
| 2031 |
iff known chars.latin_Lcedilla: |
| 2032 |
bskchar "The letter L with cedilla (treated as comma)"; |
| 2033 |
beginchar(chars.latin_Lcedilla,12.5u#,cap_height#,.75comma_depth#); uni "0x013B"; |
| 2034 |
italcorr .5bar_height#*slant; |
| 2035 |
adjust_fit(cap_serif_fit#,0); |
| 2036 |
pickup tiny.nib; |
| 2037 |
usechar; |
| 2038 |
x100=.5w; top y100''r=-o; |
| 2039 |
comma(100,.75dot_size,.5hair,.75comma_depth); |
| 2040 |
endchar; |
| 2041 |
|
| 2042 |
iff known chars.latin_Ldotabove: |
| 2043 |
bskchar "The letter L with dot above"; |
| 2044 |
beginchar(chars.latin_Ldotabove,12.5u#,Acc_height#,0); uni "non"; |
| 2045 |
italcorr .5bar_height#*slant; |
| 2046 |
adjust_fit(cap_serif_fit#,0); |
| 2047 |
pickup tiny.nib; |
| 2048 |
usechar; |
| 2049 |
x100=x2; |
| 2050 |
dotabove(100); |
| 2051 |
endchar; |
| 2052 |
|
| 2053 |
iff known chars.latin_L_BB: |
| 2054 |
bskchar "The blackboard-bold letter L"; |
| 2055 |
beginchar(chars.latin_L_BB,12.5u#,cap_height#,0); uni "0x1D543"; |
| 2056 |
italcorr .5bar_height#*slant; |
| 2057 |
adjust_fit(cap_serif_fit#,0); |
| 2058 |
pickup tiny.nib; |
| 2059 |
usechar; |
| 2060 |
bot z100=(x1l,y1l.c); top z101=(x2l,y2l.c); |
| 2061 |
infill obl(2r,2l,1r)---obl(1r,2r,1l)---z1l...obl(100,1l.c,2l)---obl(101,1l,2l.c)...z2l---cycle; |
| 2062 |
endchar; |
| 2063 |
|
| 2064 |
iff known chars.latin_L_SS: |
| 2065 |
bskchar "The sans-serif letter L"; |
| 2066 |
beginchar(chars.latin_L_SS,12u#,cap_height#,0); uni "0x1D5AB"; |
| 2067 |
adjust_fit(cap_serif_fit#,0); |
| 2068 |
pickup tiny.nib; |
| 2069 |
pos1(cap_stem,0); pos2(cap_stem,0); pos3(cap_hair,-90); |
| 2070 |
bot y1=0; top y2=h; bot y3r=0; rt x3r=w-u; |
| 2071 |
lft x1l=lft x2l=2u; z1'=(x1r,y3l); |
| 2072 |
cap_serifs_tl(2l); cap_serifs_tr(2r); cap_serifs_bl(1l); |
| 2073 |
oblu:=cap_hair; |
| 2074 |
filldraw z1l.b{down}..z1---z3r+cap_stem*left...z3...z3l+cap_stem*left---obl(1',3l,2r) |
| 2075 |
---z2r.b..z2..z2l.b---cycle; |
| 2076 |
penlabels(1,2,3); labels(1'); |
| 2077 |
endchar; |
| 2078 |
|
| 2079 |
iff known chars.latin_Lslash: |
| 2080 |
bskchar "The letter L with slash"; |
| 2081 |
beginchar(chars.latin_Lslash,12.5u#,cap_height#,0); uni "0x0141"; |
| 2082 |
italcorr .5bar_height#*slant; |
| 2083 |
adjust_fit(cap_serif_fit#,0); |
| 2084 |
pickup tiny.nib; |
| 2085 |
numeric theta; |
| 2086 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 2087 |
bot y1=0; top y2=h; bot y3r=0; rt x3r=w-u; |
| 2088 |
lft x1l=lft x2l=2u; |
| 2089 |
cap_serifs_tl(2l); cap_serifs_tr(2r); cap_serifs_bl(1l); |
| 2090 |
x5-x4=4u; x4r=x2l.a; y5-y4=stem; .5[y4,y5]=.8[bar_height,x_height]; |
| 2091 |
theta=angle(z5-z4)+90; |
| 2092 |
pos4(bar,theta); pos5(bar,theta); |
| 2093 |
x4'l=x4'r=x1l; x5'l=x5'r=x1r; |
| 2094 |
z4'l=whatever[z4l,z5l]; z5'l=whatever[z4l,z5l]; |
| 2095 |
z4'r=whatever[z4r,z5r]; z5'r=whatever[z4r,z5r]; |
| 2096 |
bskpoints(4,5,bar,bar); |
| 2097 |
filldraw z1l.b{down}..{left}z1l.c..z1l.a{right}..z1+ser_boule*up.. |
| 2098 |
arm_bot_r_points(1r,3).alt---obl(5'l,1r,5l)---z5ll..z5r---obl(5'r,5r,2r)--- |
| 2099 |
z2r.b..{right}z2r.c..z2r.a--- |
| 2100 |
z2l.a..{right}z2l.c..z2l.b---obl(4'r,2l,4r)---z4rr..z4l---obl(4'l,4l,1l)---cycle; |
| 2101 |
penlabels(1,2,4,4',5,5'); labels(4rr,5ll); |
| 2102 |
endchar; |
| 2103 |
|
| 2104 |
charscription(17u,cap_height,0)( |
| 2105 |
pos1(cap_hair,0); pos2(cap_hair,0); |
| 2106 |
pos3(cap_stem,0); pos4(cap_stem,0); |
| 2107 |
penpos5(whatever,0); penpos6(whatever,90); |
| 2108 |
penpos10(whatever,0); penpos11(whatever,90); |
| 2109 |
bot y1=0; top y2=h; lft x1l=lft x2l=2u; |
| 2110 |
cap_serifs_tl(2l); cap_serifs_bl(1l); cap_serifs_br(1r); |
| 2111 |
bot y3=0; top y4=h; rt x3r=rt x4r=w-2u; |
| 2112 |
cap_serifs_bl_p(3l,.9); cap_serifs_br(3r); cap_serifs_tr(4r); |
| 2113 |
z5r=z2l; z6l=(.49w, if monospace and (x3l-x1r<3cap_stem): 2/3(x3l-x1r) else: -apex_o fi); |
| 2114 |
z7=z6l+(cap_stem,0) rotated (angle(z5r-z6l)-90); |
| 2115 |
z5l=z7+whatever*(z5r-z6l); z6r=z7+whatever*(z5r-z6l); |
| 2116 |
y2'=y5'=y2l.b-cap_hair-o; x2'=x2r; z5'=whatever[z6l,z5r]; z5''=(.5[x2',x5'],y2'+o); |
| 2117 |
z8=z5l+(cap_hair,0) rotated (angle(z6l-z5r)); |
| 2118 |
z10r=z4l; z11l=z6l; |
| 2119 |
z12=z11l+(cap_hair-tiny,0) rotated (angle(z10r-z11l)+90); |
| 2120 |
z10l=z12+whatever*(z10r-z11l); z11r=z12+whatever*(z10r-z11l); |
| 2121 |
z4''=whatever[z10l,z11r]=whatever[z5l,z6r]; |
| 2122 |
y4'=y6'=y4''+cap_hair; z4'=whatever[z10l,z11r]; z6'=whatever[z6r,z5l]; |
| 2123 |
y3'=y3''=y2'; x3'=x3l; z3''=whatever[z11l,z10r]; |
| 2124 |
z10'=z10l+(cap_hair,0) rotated(angle(z11l-z10r)); |
| 2125 |
filldraw z1l.b{down}..{left}z1l.c..z1l.a{right}..z1+ser_boule*up..{right}z1r.a.. |
| 2126 |
z1r.c{left}..z1r.b---z2'..if not bold_face:z5''.. fi z5'---z6l---z3''..z3'---z3l.b.. |
| 2127 |
{left}z3l.c..z3l.a{right}..z3+ser_boule*up..{right}z3r.a..{left}z3r.c.. |
| 2128 |
z3r.b---z4r.b..{right}z4r.c..z4r.a---z4..z10'---z4'..z6'---z8..z5---z2l.a.. |
| 2129 |
{right}z2l.c..z2l.b---cycle; |
| 2130 |
penlabels(1,2,3,4,5,6,10,11); labels(2',3',3'',4',4'',5',5'',6',7,8,9,10',12); |
| 2131 |
); |
| 2132 |
|
| 2133 |
let _saved_char_m=_saved_char; |
| 2134 |
numeric _saved_w_m; _saved_w_m:=_saved_w; |
| 2135 |
|
| 2136 |
iff known chars.latin_M: |
| 2137 |
bskchar "The letter M"; |
| 2138 |
beginchar(chars.latin_M,17u#,cap_height#,0); uni "0x004D"; |
| 2139 |
italcorr cap_height#*slant+.25u#; |
| 2140 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 2141 |
pickup tiny.nib; |
| 2142 |
usechar; |
| 2143 |
math_fit(0,.75ic#); |
| 2144 |
endchar; |
| 2145 |
|
| 2146 |
iff known chars.latin_M_BB: |
| 2147 |
bskchar "The blackboard-bold letter M"; |
| 2148 |
beginchar(chars.latin_M_BB,17u#,cap_height#,0); uni "0x1D544"; |
| 2149 |
italcorr cap_height#*slant+.25u#; |
| 2150 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 2151 |
pickup tiny.nib; |
| 2152 |
usechar; |
| 2153 |
oblu.more:=3oblu; |
| 2154 |
bot z100=(x3r,y3r.c); top z101=(x4r,y4r.c); |
| 2155 |
top y102=y2l.c; rt z102=whatever[z5',z6l]; |
| 2156 |
infill obl(4l,4r,3l)---obl(3l,4l,3r)---z3r...obl(100,3r.c,4r)---obl(101,3r,4r.c)...z4r---cycle; |
| 2157 |
infill z5'---ifobl(6l,4'',5',8,more,)---z8..z5---z2l...obl(102,2l.c,5')---cycle; |
| 2158 |
endchar; |
| 2159 |
|
| 2160 |
iff known chars.latin_M_SS: |
| 2161 |
bskchar "The sans-serif letter M"; |
| 2162 |
beginchar(chars.latin_M_SS,17u#,cap_height#,0); uni "0x1D5AC"; |
| 2163 |
italcorr cap_height#*slant+.25u#; |
| 2164 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 2165 |
pickup tiny.nib; |
| 2166 |
pos1(cap_hair,0); pos2(cap_hair,0); |
| 2167 |
pos3(cap_stem,0); pos4(cap_stem,0); |
| 2168 |
penpos5(whatever,0); penpos6(whatever,90); |
| 2169 |
penpos10(whatever,0); penpos11(whatever,90); |
| 2170 |
bot y1=0; top y2=h; lft x1l=lft x2l=2u; |
| 2171 |
cap_serifs_tl(2l); cap_serifs_bl(1l); cap_serifs_br(1r); |
| 2172 |
bot y3=0; top y4=h; rt x3r=rt x4r=w-2u; |
| 2173 |
cap_serifs_bl_p(3l,.9); cap_serifs_br(3r); cap_serifs_tr(4r); |
| 2174 |
z5r=z2l; z6l=(.49w, if monospace and (x3l-x1r<3cap_stem): 2/3(x3l-x1r) else: -apex_o fi); |
| 2175 |
z7=z6l+(cap_stem-tiny,0) rotated (angle(z5r-z6l)-90); |
| 2176 |
z5l=z7+whatever*(z5r-z6l); z6r=z7+whatever*(z5r-z6l); |
| 2177 |
y2'=y5'=y2l.b-cap_hair-o; x2'=x2r; z5'=whatever[z6l,z5r]; z5''=(.5[x2',x5'],y2'+o); |
| 2178 |
z8=z5l+(cap_hair,0) rotated (angle(z6l-z5r)); |
| 2179 |
z10r=z4l; z11l=z6l; |
| 2180 |
z12=z11l+(cap_hair-tiny,0) rotated (angle(z10r-z11l)+90); |
| 2181 |
z10l=z12+whatever*(z10r-z11l); z11r=z12+whatever*(z10r-z11l); |
| 2182 |
z4''=whatever[z10l,z11r]=whatever[z5l,z6r]; |
| 2183 |
y4'=y6'=y4''+cap_hair; z4'=whatever[z10l,z11r]; z6'=whatever[z6r,z5l]; |
| 2184 |
y3'=y3''=y2'; x3'=x3l; z3''=whatever[z11l,z10r]; |
| 2185 |
z10'=z10l+(cap_hair,0) rotated(angle(z11l-z10r)); |
| 2186 |
y100l=y100r=.5[y1l.b,y1]; x100l=x1l; x100r=x1r; |
| 2187 |
filldraw z100l...z1...z100r---z2'+cap_hair*down..z5'+cap_hair*unitvector(z6l-z5')---z6l |
| 2188 |
---z3''..z3'---z3l.b..z3..z3r.b---z4r.b..z4..z10'---z4'..z6'---z8..z5..z2l.b---cycle; |
| 2189 |
penlabels(1,2,3,4,5,6,10,11); labels(2',3',3'',4',4'',5',5'',6',7,8,9,10',12); |
| 2190 |
endchar; |
| 2191 |
|
| 2192 |
charscription(14u,cap_height,0)( |
| 2193 |
pos1(cap_hair,0); pos2(cap_hair,0); |
| 2194 |
pos3(cap_hair,0); pos4(cap_hair,0); |
| 2195 |
penpos5(whatever,0); penpos6(whatever,90); |
| 2196 |
bot y1=0; top y2=h; |
| 2197 |
lft x1l=lft x2l=2u; |
| 2198 |
cap_serifs_tl(2l); cap_serifs_bl(1l); cap_serifs_br(1r); |
| 2199 |
bot y3=-apex_o; top y4=h; |
| 2200 |
rt x3r=rt x4r=w-2u; |
| 2201 |
cap_serifs_tl(4l); cap_serifs_tr(4r); |
| 2202 |
z5r=z2l; z6l=z3l; |
| 2203 |
z7=z6l+(cap_stem,0) rotated (angle(z5r-z6l)-90); |
| 2204 |
z5l=z7+whatever*(z5r-z6l); z6r=z7+whatever*(z5r-z6l); |
| 2205 |
y2'+o=y5'=y2l.b-cap_hair; x2'=x2r; z5'=whatever[z6l,z5r]; |
| 2206 |
y4'-o=y6'=y6r+2cap_hair; x4'=x4l; z6'=whatever[z6r,z5l]; |
| 2207 |
z8=z5l+(cap_hair,0) rotated (angle(z6l-z5r)); |
| 2208 |
filldraw z1l.b{down}..{left}z1l.c..z1l.a{right}..z1+ser_boule*up.. |
| 2209 |
{right}z1r.a..z1r.c{left}..z1r.b---z2'..z5'---z6l..z3r--- |
| 2210 |
z4r.b..{right}z4r.c..z4r.a---z4l.a..{right}z4l.c..z4l.b--- |
| 2211 |
z4'..z6'---z8..z5---z2l.a..{right}z2l.c..z2l.b---cycle; |
| 2212 |
penlabels(1,2,3,4,5,6); labels(2',4',5',6',7,8,9); |
| 2213 |
); |
| 2214 |
|
| 2215 |
iff known chars.latin_N: |
| 2216 |
bskchar "The letter N"; |
| 2217 |
beginchar(chars.latin_N,14u#,cap_height#,0); uni "0x004E"; |
| 2218 |
italcorr cap_height#*slant+.25u#; |
| 2219 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 2220 |
pickup tiny.nib; |
| 2221 |
usechar; |
| 2222 |
math_fit(0,.75ic#-.5u#); |
| 2223 |
endchar; |
| 2224 |
|
| 2225 |
iff known chars.latin_Ncaron: |
| 2226 |
bskchar "The letter N with caron"; |
| 2227 |
beginchar(chars.latin_Ncaron,14u#,Acc_height#,0); uni "0x0147"; |
| 2228 |
italcorr cap_height#*slant+.25u#; |
| 2229 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 2230 |
pickup tiny.nib; |
| 2231 |
usechar; |
| 2232 |
x101=.5w; y101l=y4; |
| 2233 |
hacek(100,101,102).capital; |
| 2234 |
endchar; |
| 2235 |
|
| 2236 |
iff known chars.latin_Nacute: |
| 2237 |
bskchar "The letter N with acute"; |
| 2238 |
beginchar(chars.latin_Nacute,14u#,Acc_height#,0); uni "0x0143"; |
| 2239 |
italcorr cap_height#*slant+.25u#; |
| 2240 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 2241 |
pickup tiny.nib; |
| 2242 |
usechar; |
| 2243 |
x100r=x4l.a; |
| 2244 |
acute(100,101).capital; |
| 2245 |
endchar; |
| 2246 |
|
| 2247 |
iff known chars.latin_Ngrave: |
| 2248 |
bskchar "The letter N with grave"; |
| 2249 |
beginchar(chars.latin_Ngrave,14u#,Acc_height#,0); uni "0x01F8"; |
| 2250 |
italcorr cap_height#*slant+.25u#; |
| 2251 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 2252 |
pickup tiny.nib; |
| 2253 |
usechar; |
| 2254 |
lft x100l=x5l; |
| 2255 |
grave(100,101).capital; |
| 2256 |
endchar; |
| 2257 |
|
| 2258 |
iff known chars.latin_Ntilde: |
| 2259 |
bskchar "The letter N with tilde"; |
| 2260 |
beginchar(chars.latin_Ntilde,14u#,Acc_height#,0); uni "0x00D1"; |
| 2261 |
italcorr cap_height#*slant+.25u#; |
| 2262 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 2263 |
pickup tiny.nib; |
| 2264 |
usechar; |
| 2265 |
x101-x100=6u; bot y100=top y5+hair; |
| 2266 |
tilde(100,101).capital; |
| 2267 |
endchar; |
| 2268 |
|
| 2269 |
iff known chars.latin_Ncedilla: |
| 2270 |
bskchar "The letter N with cedilla (treated as comma)"; |
| 2271 |
beginchar(chars.latin_N,14u#,Acc_height#,.75comma_depth#); uni "0x0145"; |
| 2272 |
italcorr cap_height#*slant+.25u#; |
| 2273 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 2274 |
pickup tiny.nib; |
| 2275 |
usechar; |
| 2276 |
x100=.5w; top y100''r=0; |
| 2277 |
comma(100,.75dot_size,.5hair,.75comma_depth); |
| 2278 |
endchar; |
| 2279 |
|
| 2280 |
iff known chars.latin_N_BB: |
| 2281 |
bskchar "The blackboard-bold letter N"; |
| 2282 |
beginchar(chars.latin_N_BB,14u#,cap_height#,0); uni "0x2115"; |
| 2283 |
italcorr cap_height#*slant+.25u#; |
| 2284 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 2285 |
pickup tiny.nib; |
| 2286 |
usechar; |
| 2287 |
oblu.more:=3oblu; |
| 2288 |
top y100=y2l.c; rt z100=whatever[z5',z6l]; |
| 2289 |
infill z5'---obl(6l,5',6r).more---obl(6r,6l,8)---z8..z5---z2...obl(100,2l.c,5')---cycle; |
| 2290 |
endchar; |
| 2291 |
|
| 2292 |
iff known chars.latin_N_SS: |
| 2293 |
bskchar "The sans-serif letter N"; |
| 2294 |
beginchar(chars.latin_N_SS,14u#,cap_height#,0); uni "0x1D5AD"; |
| 2295 |
italcorr cap_height#*slant+.25u#; |
| 2296 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 2297 |
pickup tiny.nib; |
| 2298 |
pos1(cap_hair,0); pos2(cap_hair,0); |
| 2299 |
pos3(cap_hair,0); pos4(cap_hair,0); |
| 2300 |
penpos5(whatever,0); penpos6(whatever,90); |
| 2301 |
bot y1=0; top y2=h; |
| 2302 |
lft x1l=lft x2l=2u; |
| 2303 |
cap_serifs_tl(2l); cap_serifs_bl(1l); cap_serifs_br(1r); |
| 2304 |
bot y3=-apex_o; top y4=h; |
| 2305 |
rt x3r=rt x4r=w-2u; |
| 2306 |
cap_serifs_tl(4l); cap_serifs_tr(4r); |
| 2307 |
z5r=z2l; z6l=z3l; |
| 2308 |
z7=z6l+(cap_stem-tiny,0) rotated (angle(z5r-z6l)-90); |
| 2309 |
z5l=z7+whatever*(z5r-z6l); z6r=z7+whatever*(z5r-z6l); |
| 2310 |
y2'+o=y5'=y2l.b-cap_hair; x2'=x2r; z5'=whatever[z6l,z5r]; |
| 2311 |
y4'-o=y6'=y6r+2cap_hair; x4'=x4l; z6'=whatever[z6r,z5l]; |
| 2312 |
z8=z5l+(cap_hair,0) rotated (angle(z6l-z5r)); |
| 2313 |
y100l=y100r=.5[y1l.b,y1]; x100l=x1l; x100r=x1r; |
| 2314 |
filldraw z100l...z1...z100r---z2'..z5'---z6l..z3r--- |
| 2315 |
z4r.b...z4...z4l.b---z4'..z6'---z8..z5..z2l.b---cycle; |
| 2316 |
penlabels(1,2,3,4,5,6,100); labels(2',4',5',6',7,8,9); |
| 2317 |
endchar; |
| 2318 |
|
| 2319 |
iff known chars.sign_naira: |
| 2320 |
bskchar "Naira sign"; |
| 2321 |
beginchar(chars.sign_naira,14u#,cap_height#,0); uni "0x20A6"; |
| 2322 |
italcorr cap_height#*slant+.25u#; |
| 2323 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 2324 |
pickup tiny.nib; |
| 2325 |
pos1(cap_hair,0); pos2(cap_hair,0); |
| 2326 |
pos3(cap_hair,0); pos4(cap_hair,0); |
| 2327 |
penpos5(whatever,0); penpos6(whatever,90); |
| 2328 |
pos9(hair,90); pos10(hair,90); pos11(hair,90); pos12(hair,90); |
| 2329 |
bot y1=0; top y2=h; |
| 2330 |
lft x1l=lft x2l=2u; |
| 2331 |
cap_serifs_tl(2l); cap_serifs_bl(1l); cap_serifs_br(1r); |
| 2332 |
bot y3=-apex_o; top y4=h; |
| 2333 |
rt x3r=rt x4r=w-2u; |
| 2334 |
cap_serifs_tl(4l); cap_serifs_tr(4r); |
| 2335 |
z5r=z2l; z6l=z3l; |
| 2336 |
z7=z6l+(cap_stem,0) rotated (angle(z5r-z6l)-90); |
| 2337 |
z5l=z7+whatever*(z5r-z6l); z6r=z7+whatever*(z5r-z6l); |
| 2338 |
y2'+o=y5'=y2l.b-cap_hair; x2'=x2r; z5'=whatever[z6l,z5r]; |
| 2339 |
y4'-o=y6'=y6r+2cap_hair; x4'=x4l; z6'=whatever[z6r,z5l]; |
| 2340 |
z8=z5l+(cap_hair,0) rotated (angle(z6l-z5r)); |
| 2341 |
y9=y10=x_height; y11=y12=bar_height; |
| 2342 |
lft x9=lft x11=.5u; rt x10=rt x12=w-.5u; |
| 2343 |
y9'r=y10'r=y10''r=y10'''r=y9r; y9'l=y10'l=y10''l=y10'''l=y9l; |
| 2344 |
y11'r=y11''r=y11'''r=y12'r=y11r; y11'l=y11''l=y11'''l=y12'l=y11l; |
| 2345 |
x9'r=x9'l=x11'l=x11'r=x1l; x11''r=x11''l=x1r; x10'r=x10'l=x12'r=x12'l=x4r; |
| 2346 |
x10''r=x10''l=x4l; |
| 2347 |
z11'''l=whatever[z5',z6l]; z11'''r=whatever[z5',z6l]; |
| 2348 |
z10'''l=whatever[z6',z8]; z10'''r=whatever[z6',z8]; |
| 2349 |
filldraw z1l.b{down}..{left}z1l.c..z1l.a{right}..z1+ser_boule*up..{right}z1r.a |
| 2350 |
..z1r.c{left}..z1r.b---obl(11''l,1r,11'''l)---obl(11'''l,11''l,6l)---z6l |
| 2351 |
..z3r---obl(12'l,3r,12l)---z12l..z12r---obl(12'r,12r,10'l)---obl(10'l,12'r,10l) |
| 2352 |
---z10l..z10r---obl(10'r,10r,4r)---z4r.b..{right}z4r.c..z4r.a---z4l.a |
| 2353 |
..{right}z4l.c..z4l.b---obl(10''r,4l,10'''r)---obl(10'''r,10''r,8)---z8..z5 |
| 2354 |
---z2l.a..{right}z2l.c..z2l.b---obl(9'r,2l,9r)---z9r..z9l---obl(9'l,9l,11'r) |
| 2355 |
---obl(11'r,9'l,11r)---z11r..z11l---obl(11'l,11l,1l)---cycle; |
| 2356 |
infill obl(11''r,11'''r,2')---z2'..z5'---obl(11'''r,5',11''r)---cycle; |
| 2357 |
infill obl(10''l,10'''l,4')---z4'..z6'---obl(10'''l,6',10''l)---cycle; |
| 2358 |
penlabels(1,2,3,4,5,6,9,10,11,12); labels(2',4',5',6',7,8,9); |
| 2359 |
endchar; |
| 2360 |
|
| 2361 |
iff known chars.latin_Eng: |
| 2362 |
bskchar "The letter Eng"; |
| 2363 |
beginchar(chars.latin_Eng,14u#, cap_height#, desc_depth#); uni "0x014A"; |
| 2364 |
italcorr .75cap_height#*slant; |
| 2365 |
adjust_fit(cap_serif_fit#,0); |
| 2366 |
pickup tiny.nib; |
| 2367 |
path p[]; numeric tim[]; |
| 2368 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 2369 |
pos3(cap_stem,0); pos4(cap_stem,0); pos5(1.5cap_hair,90); pos6(cap_hair,180); |
| 2370 |
pos7(cap_hair,-90); |
| 2371 |
lft x1l=2u; bot y1=0; top y2=h+apex_o; x1=x2; |
| 2372 |
rt x3r=w-u; y3=.5bar_height; |
| 2373 |
x4=x3; y4=.75h; y5r=h; x5=.5[x3l,x1r]; |
| 2374 |
x6l=x1r; y6=.6h; y6l:=y6l-hair; |
| 2375 |
bot y7r=-o; x3-x7=3u; top y8=y7+like_curve; x7-x8l=2u; |
| 2376 |
cap_serifs_bl(1l); cap_serifs_br(1r); drop_serif(2,cap_jut); |
| 2377 |
p1:=z6l{up}..z5l..z4l---z3l...{left}z7l..reverse smitko(8,cap_stem)..{right}z7r..{up}z3r; |
| 2378 |
p2:=z3r---z4r..z5r..{down}z6r; |
| 2379 |
p3:=z1r.b--z2r; |
| 2380 |
(tim1,tim2)=p2 intersectiontimes p3; |
| 2381 |
z1'=point tim2 of p3+(like_stem+tiny)*up; if y1'>y5l: y1':=y5l; fi |
| 2382 |
filldraw p1..subpath (0,rundy(p2,(tim1,2u)).zpet) of p2..{up}z1' |
| 2383 |
--z2r+.2u*left..{(x1l.a-x1l,-.25serif_drop)}z2a&z2a |
| 2384 |
---z2b+.75u*left..z2b+u*down---z1l.b..z1l.c{left} |
| 2385 |
..{right}z1l.a..z1+ser_boule*up..{right}z1r.a..{left}z1r.c |
| 2386 |
..{up}z1r.b---cycle; |
| 2387 |
penlabels(1,2,3,4,5,6,7,8); labels(1'); |
| 2388 |
endchar; |
| 2389 |
|
| 2390 |
charscription(14.3u,cap_height,0)( |
| 2391 |
pos1(cap_curve,0); pos2(cap_hair,90); pos3(cap_curve,180); pos4(cap_hair,270); |
| 2392 |
lft x1l=u-o; rt x3l=w-u+o; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2-x4=.5u; bot y2l=-o; top y4l=h+o; |
| 2393 |
filldraw z1l{down}..z2l..z3l..z4l..{down}cycle; |
| 2394 |
infill z1r{up}..z4r..z3r..z2r..{up}cycle; |
| 2395 |
penlabels(1,2,3,4); |
| 2396 |
); |
| 2397 |
|
| 2398 |
iff known chars.latin_O: |
| 2399 |
bskchar "The letter O"; |
| 2400 |
beginchar(chars.latin_O,14.3u#,cap_height#,0); uni "0x004F"; |
| 2401 |
italcorr x_height#*slant; |
| 2402 |
adjust_fit(0,0); |
| 2403 |
pickup tiny.nib; |
| 2404 |
usechar; |
| 2405 |
math_fit(-.5cap_height#*slant+.5u#,.5cap_height#*slant); |
| 2406 |
endchar; |
| 2407 |
|
| 2408 |
iff known chars.latin_Ograve: |
| 2409 |
bskchar "The letter O with grave"; |
| 2410 |
beginchar(chars.latin_Ograve,14.3u#,Acc_height#,0); uni "0x00D2"; |
| 2411 |
italcorr x_height#*slant; |
| 2412 |
adjust_fit(0,0); |
| 2413 |
pickup tiny.nib; |
| 2414 |
usechar; |
| 2415 |
x101=x4+u; |
| 2416 |
grave(100,101).capital; |
| 2417 |
endchar; |
| 2418 |
|
| 2419 |
iff known chars.latin_Odoublegrave: |
| 2420 |
bskchar "The letter O with double grave"; |
| 2421 |
beginchar(chars.latin_Odoublegrave,14.3u#,Acc_height#,0); uni "0x020C"; |
| 2422 |
italcorr x_height#*slant; |
| 2423 |
adjust_fit(0,0); |
| 2424 |
pickup tiny.nib; |
| 2425 |
usechar; |
| 2426 |
x102-x100=3u; x102=x4; |
| 2427 |
d_grave(100,101,102,103,whatever).capital; |
| 2428 |
endchar; |
| 2429 |
|
| 2430 |
iff known chars.latin_Oacute: |
| 2431 |
bskchar "The letter O with acute"; |
| 2432 |
beginchar(chars.latin_Oacute,14.3u#,Acc_height#,0); uni "0x00D3"; |
| 2433 |
italcorr x_height#*slant; |
| 2434 |
adjust_fit(0,0); |
| 2435 |
pickup tiny.nib; |
| 2436 |
usechar; |
| 2437 |
x101=x4-u; |
| 2438 |
acute(100,101).capital; |
| 2439 |
endchar; |
| 2440 |
|
| 2441 |
iff known chars.latin_Oumlaut: |
| 2442 |
bskchar "The letter O with umlaut"; |
| 2443 |
beginchar(chars.latin_Oumlaut,14.3u#,Acc_height#,0); uni "0x00D6"; |
| 2444 |
italcorr x_height#*slant; |
| 2445 |
adjust_fit(0,0); |
| 2446 |
pickup tiny.nib; |
| 2447 |
usechar; |
| 2448 |
.5[x100,x101]=rt x4; x101-x100=.4(x3-x1); |
| 2449 |
umlaut(100,101); |
| 2450 |
endchar; |
| 2451 |
|
| 2452 |
iff known chars.latin_Ocircumflex: |
| 2453 |
bskchar "The letter O with circumflex"; |
| 2454 |
beginchar(chars.latin_Ocircumflex,14.3u#,Acc_height#,0); uni "0x00D4"; |
| 2455 |
italcorr x_height#*slant; |
| 2456 |
adjust_fit(0,0); |
| 2457 |
pickup tiny.nib; |
| 2458 |
usechar; |
| 2459 |
x101=x4+hair; |
| 2460 |
circumflex(100,101,102).capital; |
| 2461 |
endchar; |
| 2462 |
|
| 2463 |
iff known chars.latin_Ocaron: |
| 2464 |
bskchar "The letter O with caron"; |
| 2465 |
beginchar(chars.latin_Ocaron,14.3u#,Acc_height#,0); uni "0x01D1"; |
| 2466 |
italcorr x_height#*slant; |
| 2467 |
adjust_fit(0,0); |
| 2468 |
pickup tiny.nib; |
| 2469 |
usechar; |
| 2470 |
x101=x4; |
| 2471 |
hacek(100,101,102).capital; |
| 2472 |
endchar; |
| 2473 |
|
| 2474 |
iff known chars.latin_Otilde: |
| 2475 |
bskchar "The letter O with tilde"; |
| 2476 |
beginchar(chars.latin_Otilde,14.3u#,Acc_height#,0); uni "0x00D5"; |
| 2477 |
italcorr x_height#*slant; |
| 2478 |
adjust_fit(0,0); |
| 2479 |
pickup tiny.nib; |
| 2480 |
usechar; |
| 2481 |
x101-x100=6u; bot y100=top y4l+o; |
| 2482 |
tilde(100,101).capital; |
| 2483 |
endchar; |
| 2484 |
|
| 2485 |
iff known chars.latin_Omacron: |
| 2486 |
bskchar "The letter O with macron"; |
| 2487 |
beginchar(chars.latin_Omacron,14.3u#,Acc_height#-.1x_height#,0); uni "0x014C"; |
| 2488 |
italcorr x_height#*slant; |
| 2489 |
adjust_fit(0,0); |
| 2490 |
pickup tiny.nib; |
| 2491 |
usechar; |
| 2492 |
macron(100,101); |
| 2493 |
endchar; |
| 2494 |
|
| 2495 |
iff known chars.latin_Odotabove: |
| 2496 |
bskchar "The letter O with dot above"; |
| 2497 |
beginchar(chars.latin_Odotabove,14.3u#,Acc_height#,0); uni "0x022E"; |
| 2498 |
italcorr x_height#*slant; |
| 2499 |
adjust_fit(0,0); |
| 2500 |
pickup tiny.nib; |
| 2501 |
usechar; |
| 2502 |
x100=x4; |
| 2503 |
dotabove(100); |
| 2504 |
endchar; |
| 2505 |
|
| 2506 |
iff known chars.latin_Ohumlaut: |
| 2507 |
bskchar "The letter O with Hungarian umlaut"; |
| 2508 |
beginchar(chars.latin_Ohumlaut,14.3u#,Acc_height#,0); uni "0x0150"; |
| 2509 |
italcorr x_height#*slant; |
| 2510 |
adjust_fit(0,0); |
| 2511 |
pickup tiny.nib; |
| 2512 |
usechar; |
| 2513 |
x101-x100=3u; .5[x100,x101]=.5w+1.5u; |
| 2514 |
h_umlaut(100,101,102,103,2u).capital; |
| 2515 |
endchar; |
| 2516 |
|
| 2517 |
iff known chars.latin_Obreve: |
| 2518 |
bskchar "The letter O with breve"; |
| 2519 |
beginchar(chars.latin_Obreve,14.3u#,Acc_height#+o#,0); uni "0x014E"; |
| 2520 |
italcorr x_height#*slant; |
| 2521 |
adjust_fit(0,0); |
| 2522 |
pickup tiny.nib; |
| 2523 |
usechar; |
| 2524 |
x101=.5w+o; x102-x100=5u; |
| 2525 |
bot y101l=top y4l+o; |
| 2526 |
breve(100,101,102).capital; |
| 2527 |
endchar; |
| 2528 |
|
| 2529 |
iff known chars.latin_Oinvbreve: |
| 2530 |
bskchar "The letter O with inverted breve"; |
| 2531 |
beginchar(chars.latin_Oinvbreve,14.3u#,Acc_height#+o#,0); uni "0x020E"; |
| 2532 |
italcorr x_height#*slant; |
| 2533 |
adjust_fit(0,0); |
| 2534 |
pickup tiny.nib; |
| 2535 |
usechar; |
| 2536 |
x101=.5w+o; x102-x100=5u; |
| 2537 |
bot y100=top y4l; |
| 2538 |
tieacc(100,101,102).capital; |
| 2539 |
endchar; |
| 2540 |
|
| 2541 |
iff known chars.latin_O_BB: |
| 2542 |
bskchar "The blackboard-bold letter O"; |
| 2543 |
beginchar(chars.latin_O_BB,14.3u#,cap_height#,0); uni "0x1D546"; |
| 2544 |
italcorr x_height#*slant; |
| 2545 |
adjust_fit(0,0); |
| 2546 |
pickup tiny.nib; |
| 2547 |
usechar; |
| 2548 |
path p[]; numeric tim[]; |
| 2549 |
p100:=z4r..z1r{down}..z2r..z3r..cycle; |
| 2550 |
p101:=reverse z4l..z1l{down}..z2l..z3l..cycle; |
| 2551 |
oblu:=1.25bbw; |
| 2552 |
z100=bsktouch(subpath(0,1) of p100,bbs*up,p101,down); |
| 2553 |
z101=bsktouch(subpath(1,2) of p100,bbs*down,p101,up); |
| 2554 |
z102=bsktouch(subpath(3,4) of p100,bbs*up,p101,down); |
| 2555 |
z103=bsktouch(subpath(2,3) of p100,bbs*down,p101,up); |
| 2556 |
tim100=xpart(p100 intersectiontimes (z100--(x100,y1))); |
| 2557 |
tim101=xpart(p101 intersectiontimes (z100--(x100,y4l+5))); |
| 2558 |
tim102=xpart(p100 intersectiontimes (z101--(x101,y1))); |
| 2559 |
tim103=xpart(p101 intersectiontimes (z101--(x101,y2l-5))); |
| 2560 |
tim104=xpart(p100 intersectiontimes (z102--(x102,y1))); |
| 2561 |
tim105=xpart(p101 intersectiontimes (z102--(x102,y4l+5))); |
| 2562 |
tim106=xpart(p100 intersectiontimes (z103--(x103,y1))); |
| 2563 |
tim107=xpart(p101 intersectiontimes (z103--(x103,y2l-5))); |
| 2564 |
infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100 |
| 2565 |
..subpath(rundy(p101,tim103).zpet,rundy(p101,tim101)) of p101..cycle; |
| 2566 |
infill subpath(rundy(p100,tim104).zpet,rundy(p100,tim106)) of p100 |
| 2567 |
..subpath(rundy(p101,tim107),rundy(p101,tim105).zpet) of p101..cycle; |
| 2568 |
labels(100,101,102,103); |
| 2569 |
endchar; |
| 2570 |
|
| 2571 |
iff known chars.latin_O_SS: |
| 2572 |
bskchar "The sans-serif letter O"; |
| 2573 |
beginchar(chars.latin_O_SS,14u#,cap_height#,0); uni "0x1D5AE"; |
| 2574 |
italcorr x_height#*slant; |
| 2575 |
adjust_fit(0,0); |
| 2576 |
pickup tiny.nib; |
| 2577 |
pos1(cap_curve,0); pos2(cap_hair,90); pos3(cap_curve,180); pos4(cap_hair,270); |
| 2578 |
lft x1l=u-o; rt x3l=w-u+o; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2-x4=.5u; bot y2l=-o; top y4l=h+o; |
| 2579 |
filldraw z1l{down}..z2l..z3l..z4l..{down}cycle; |
| 2580 |
infill z1r{up}..z4r..z3r..z2r..{up}cycle; |
| 2581 |
penlabels(1,2,3,4); |
| 2582 |
endchar; |
| 2583 |
|
| 2584 |
charscription(14.3u,cap_height,.85desc_depth)( |
| 2585 |
path p[]; |
| 2586 |
pos1(cap_curve,0); pos2(cap_hair,90); pos3(cap_curve,180); pos4(cap_hair,270); |
| 2587 |
pos5(stem,0); pos6(curve,0); pos7(hair,45); pos8(hair,160); |
| 2588 |
lft x1l=u-o; rt x3l=w-u+o; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2-x4=.5u; bot y2l=-o; top y4l=h+o; |
| 2589 |
x5=x6l+1.5u; x5=x2; x7-x6l=3u; rt x8l=x7+1.5u; |
| 2590 |
bot y5=0; y6=-.5d; bot y7l=-d; y8=-2/3d; |
| 2591 |
p0=z1l{down}..z2l..z3l..z4l..{down}z1l; |
| 2592 |
p1=z5l{z6l-z5r}..z6l...z7l..{z5-z6}z8l..z8r{z6-z5}..z7r..z6r..z5r; |
| 2593 |
filldraw subpath(0,rundy(p0,(1,stem)).zpet) of p0 |
| 2594 |
..subpath(rundy(p1,(0,stem)),rundy(p1,infinity).zpet) of p1 |
| 2595 |
..subpath(rundy(p1,(1,if bold_face:.5\\ fi stem)),infinity) of p0..cycle; |
| 2596 |
infill z1r{up}..z4r..z3r..z2r..{up}cycle; |
| 2597 |
penlabels(1,2,3,4,5,6,7,8); |
| 2598 |
); |
| 2599 |
|
| 2600 |
iff known chars.latin_Oogonek: |
| 2601 |
bskchar "The letter O with ogonek"; |
| 2602 |
beginchar(chars.latin_Oogonek,14.3u#,cap_height#,.85desc_depth#); uni "0x01EA"; |
| 2603 |
italcorr x_height#*slant; |
| 2604 |
adjust_fit(0,0); |
| 2605 |
pickup tiny.nib; |
| 2606 |
usechar; |
| 2607 |
endchar; |
| 2608 |
|
| 2609 |
iff known chars.latin_Oogonekmacron: |
| 2610 |
bskchar "The letter O with ogonek and macron"; |
| 2611 |
beginchar(chars.latin_Oogonekmacron,14.3u#,Acc_height#-.1x_height#,.85desc_depth#); uni "0x01EC"; |
| 2612 |
italcorr x_height#*slant; |
| 2613 |
adjust_fit(0,0); |
| 2614 |
pickup tiny.nib; |
| 2615 |
usechar; |
| 2616 |
macron(100,101); |
| 2617 |
penlabels(1,2,3,4,5,6,7,8); |
| 2618 |
endchar; |
| 2619 |
|
| 2620 |
charscription(14.3u,cap_height,0)( |
| 2621 |
path p[]; numeric tim[]; |
| 2622 |
oblu:=2oblu; |
| 2623 |
numeric inoblu; inoblu:=1.5f_obl; |
| 2624 |
pos1(cap_curve,0); pos2(cap_hair,90); pos3(cap_curve,180); pos4(cap_hair,270); |
| 2625 |
lft x1l=u-o; rt x3l=w-u+o; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2-x4=.5u; bot y2l=-o; top y4l=h+o; |
| 2626 |
z5=(w-u,h); z6=(u,0); pos5(hair, angle(z6-z5)+90); pos6(hair,angle(z6-z5)+90); |
| 2627 |
z0r=.5[z5r,z6r]; z0l=.5[z5l,z6l]; |
| 2628 |
p0:=z1l{down}..z2l..z3l..z4l..{down}z1l; |
| 2629 |
p1:=z1r{up}..z4r..z3r..z2r..{up}z1r; |
| 2630 |
bskpoints(5,6,hair,hair); |
| 2631 |
(tim1,tim2)=p0 intersectiontimes (z5l--z6l); |
| 2632 |
(tim3,tim4)=p0 intersectiontimes (z6r--z5r); |
| 2633 |
(tim5,tim6)=p0 intersectiontimes (z0r--z5r); |
| 2634 |
(tim7,tim8)=p0 intersectiontimes (z5l--z0l); |
| 2635 |
(tim11,tim12)=p1 intersectiontimes (z0r--z6r); |
| 2636 |
(tim13,tim14)=p1 intersectiontimes (z5r--z0r); |
| 2637 |
(tim15,tim16)=p1 intersectiontimes (z6l--z0l); |
| 2638 |
(tim17,tim18)=p1 intersectiontimes (z5l--z0l); |
| 2639 |
filldraw subpath (0,rundy(p0,tim1).zpet) of p0..subpath(rundy((z5l--z6ll),tim2),infinity) of (z5l--z6ll).. |
| 2640 |
subpath(0,rundy(z6r--z5r,tim4).zpet) of (z6r--z5r).. |
| 2641 |
subpath(rundy(p0,tim3),rundy(p0,tim5).zpet) of p0.. |
| 2642 |
subpath(rundy(z0r--z5r,tim6),infinity) of (z0r--z5rr).. |
| 2643 |
subpath(0,rundy(z5l--z0l,tim8).zpet) of (z5l--z0l) .. |
| 2644 |
subpath(rundy(p0,tim7),infinity) of p0--cycle; |
| 2645 |
infill subpath(0,rundy(z0r--z6r,tim12).zpet) of (z0r--z6r).. |
| 2646 |
subpath(rundy(p1,tim11).zpet,rundy(p1,tim13)) of p1.. |
| 2647 |
subpath(rundy(z5r--z0r,tim14),infinity) of (z5r--z0r)--cycle; |
| 2648 |
infill subpath (0, rundy(p1,(tim17,inoblu)).zpet) of p1.. |
| 2649 |
subpath(rundy(z5l--z0l,(tim18,inoblu)),infinity) of (z5l--z0l).. |
| 2650 |
subpath(0,rundy(z0l--z5l,tim16).zpet) of (z0l--z6l).. |
| 2651 |
subpath(rundy(p1,(tim15,inoblu)),infinity) of p1--cycle; |
| 2652 |
penlabels(0,1,2,3,4,5,6); |
| 2653 |
); |
| 2654 |
|
| 2655 |
iff known chars.latin_Oslash: |
| 2656 |
bskchar "The letter O slash"; |
| 2657 |
beginchar(chars.latin_Oslash,14.3u#,cap_height#,0); uni "0x00D8"; |
| 2658 |
italcorr cap_height#*slant; |
| 2659 |
adjust_fit(0,0); |
| 2660 |
pickup tiny.nib; |
| 2661 |
usechar; |
| 2662 |
endchar; |
| 2663 |
|
| 2664 |
iff known chars.latin_Oslashacute: |
| 2665 |
bskchar "The letter O slash with acute"; |
| 2666 |
beginchar(chars.latin_Oslashacute,14.3u#,Acc_height#,0); uni "0x01FE"; |
| 2667 |
italcorr cap_height#*slant; |
| 2668 |
adjust_fit(0,0); |
| 2669 |
pickup tiny.nib; |
| 2670 |
usechar; |
| 2671 |
x101=x4-u; |
| 2672 |
acute(100,101).capital; |
| 2673 |
endchar; |
| 2674 |
|
| 2675 |
charscription(12.5u,cap_height,0)( |
| 2676 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 2677 |
bot y1=0; top y2=h-drop_stem; |
| 2678 |
lft x1l= lft x2l= 2u; |
| 2679 |
pos3(.75ser_height,270); pos4(cap_hair,270); pos5(.95cap_curve,180); |
| 2680 |
pos6(cap_hair,90); pos7(.8ser_height,90); |
| 2681 |
x7=x1r; y6r=com_height-hair; y7l=y6l; rt x5l=w-u; |
| 2682 |
x4=.5[x1r,x5r]; y7l:=y7l-hair; x6=x4 if x4-1.5u>x1r: -u fi; |
| 2683 |
y3l+serif_o=y4l; top y4l=h+drop_stem; x3=x7; |
| 2684 |
y5=.5[y4,y6]; |
| 2685 |
cap_serifs_tl(2l); cap_serifs_bl(1l); cap_serifs_br_p(1r,1.1); |
| 2686 |
filldraw z1l.b..{left}z1l.c..z1l.a{right}..z1+ser_boule*up.. |
| 2687 |
{right}z1r.a..z1r.c{left}..z1r.b---z7l{dir70}.. |
| 2688 |
(x7l if x7l+cap_hair<x6l: +cap_hair fi,y6l)--- |
| 2689 |
z6l..z5l..z4l..{left}z2l.a..z2l.c{right}..z2l.b---cycle; |
| 2690 |
infill z7r{down}..{right}z6r..z5r..z4r{left}..{down}z3r---cycle; |
| 2691 |
penlabels(1,2,3,4,5,6,7); |
| 2692 |
); |
| 2693 |
|
| 2694 |
iff known chars.latin_P: |
| 2695 |
bskchar "The letter P"; |
| 2696 |
beginchar(chars.latin_P,12.5u#,cap_height#,0); uni "0x0050"; |
| 2697 |
italcorr .2[x_height#,cap_height#]*slant; |
| 2698 |
adjust_fit(cap_serif_fit#,0); |
| 2699 |
pickup tiny.nib; |
| 2700 |
usechar; |
| 2701 |
math_fit(0,ic#-4u#); |
| 2702 |
endchar; |
| 2703 |
|
| 2704 |
iff known chars.latin_P_BB: |
| 2705 |
bskchar "The blackboard-bold letter P"; |
| 2706 |
beginchar(chars.latin_P_BB,12.5u#,cap_height#,0); uni "0x2119"; |
| 2707 |
italcorr .2[x_height#,cap_height#]*slant; |
| 2708 |
adjust_fit(cap_serif_fit#,0); |
| 2709 |
pickup tiny.nib; |
| 2710 |
usechar; |
| 2711 |
path p[]; numeric tim[]; |
| 2712 |
bot z100=(x1l,y1l.c); top z101=(x2l,y2l.c); |
| 2713 |
infill obl(2r,2l,1r)---obl(1r,2r,1l)---z1l...obl(100,1l.c,2l)---obl(101,1l,2l.c)...z2l---cycle; |
| 2714 |
p100=z4r{right}..z5r..{left}z6r; |
| 2715 |
p101=z6l{right}..z5l..{left}z4l; |
| 2716 |
z102=bsktouch(subpath (0,1) of p100,bbs*up,p101,down); |
| 2717 |
z103=bsktouch(subpath (0,1) of p101,bbs*up,p100,down); |
| 2718 |
tim100=xpart(p100 intersectiontimes (z102--(x102,y5))); |
| 2719 |
tim101=xpart(p101 intersectiontimes (z102--(x102,y4l+5))); |
| 2720 |
tim102=xpart(p100 intersectiontimes (z103--(x103,y5))); |
| 2721 |
tim103=xpart(p101 intersectiontimes (z103--(x103,0))); |
| 2722 |
oblu:=1.25bbw; |
| 2723 |
infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100 |
| 2724 |
..subpath(rundy(p101,tim103),rundy(p101,tim101).zpet) of p101..cycle; |
| 2725 |
labels(102,103); |
| 2726 |
math_fit(0,ic#-2.5u#); |
| 2727 |
endchar; |
| 2728 |
|
| 2729 |
iff known chars.sign_published: |
| 2730 |
bskchar "Published sign (circled P)"; |
| 2731 |
beginchar(chars.sign_published,15u#,asc_height#,0); uni "0x2117"; |
| 2732 |
italcorr x_height#*slant; |
| 2733 |
adjust_fit(0,0); |
| 2734 |
pickup tiny.nib; |
| 2735 |
numeric zv; zv=.6; |
| 2736 |
lft x6=u; x2=w-x6; y2=.5h; top y8=h; |
| 2737 |
lft x11=3u; x12+x11=w; x13=x11; x14=x12; |
| 2738 |
y11=y12; y13=y14; .5[y11,y13]=y2; y11-y13=spread; |
| 2739 |
circle_points(rule_thickness); |
| 2740 |
filldraw draw_circle.l; |
| 2741 |
infill draw_circle.r; |
| 2742 |
save x,y; |
| 2743 |
multiply(1.5*zv)(cap_curve,cap_hair,ser_height,cap_stem); |
| 2744 |
usechar shifted -(.5[x5r,x2l.a]-.5cap_height*slant,.5[y4l,y1]) scaled zv shifted (.5WW,.5HH); |
| 2745 |
endchar; |
| 2746 |
|
| 2747 |
iff known chars.sign_peso: |
| 2748 |
bskchar "Peso sign"; |
| 2749 |
beginchar(chars.sign_peso,12.5u#,cap_height#,0); uni "0x20B1"; |
| 2750 |
italcorr .2[x_height#,cap_height#]*slant; |
| 2751 |
adjust_fit(cap_serif_fit#,0); |
| 2752 |
pickup tiny.nib; |
| 2753 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 2754 |
bot y1=0; top y2=h-drop_stem; |
| 2755 |
lft x1l= lft x2l= 2u; |
| 2756 |
pos3(.75ser_height,270); pos4(cap_hair,270); pos5(.95cap_curve,180); |
| 2757 |
pos6(cap_hair,90); pos7(.8ser_height,90); |
| 2758 |
pos8'(bar,90); pos9(bar,90); pos9'(bar,90); |
| 2759 |
x7=x1r; y6r=com_height-hair; y7l=y6l; rt x5l=w-u; |
| 2760 |
x4=.5[x1r,x5r]; y7l:=y7l-hair; x6=x4 if x4-1.5u>x1r: -u fi; |
| 2761 |
y3l+serif_o=y4l; top y4l=h+drop_stem; x3=x7; |
| 2762 |
y5=.5[y4,y6]; |
| 2763 |
lft x8=.5u; x8'=x1l; x9'=x1r; x9=.5[x6,x5]; |
| 2764 |
cap_serifs_tl(2l); cap_serifs_bl(1l); cap_serifs_br_p(1r,1.1); |
| 2765 |
y8=.65y7l; |
| 2766 |
if y8<y1r.b: y1r.b:=y1l.b:=y8-oblu; y8:=y8+oblu; fi |
| 2767 |
pos8(bar,90); y8=y8'=y9=y9'; |
| 2768 |
bskpoints(8,9,bar,bar); |
| 2769 |
filldraw z1l.b..{left}z1l.c..z1l.a{right}..z1+ser_boule*up |
| 2770 |
..{right}z1r.a..z1r.c{left}..z1r.b---obl(9'l,1r,9l) |
| 2771 |
---z9ll..z9r---obl(9'r,9r,7l)---z7l{dir70} |
| 2772 |
..(x7l if x7l+cap_hair<x6l: +cap_hair fi,y6l) |
| 2773 |
---z6l..z5l..z4l..{left}z2l.a..z2l.c{right}..z2l.b |
| 2774 |
---obl(8'r,2l,8r)---z8rr..z8l---obl(8'l,8l,1l)---cycle; |
| 2775 |
infill z7r{down}..{right}z6r..z5r..z4r{left}..{down}z3r---cycle; |
| 2776 |
penlabels(1,2,3,4,5,6,7,8,8',9,9'); |
| 2777 |
endchar; |
| 2778 |
|
| 2779 |
iff known chars.latin_P_SS: |
| 2780 |
bskchar "The sans-serif letter P"; |
| 2781 |
beginchar(chars.latin_P_SS,12.5u#,cap_height#,0); uni "0x1D5AF"; |
| 2782 |
italcorr .2[x_height#,cap_height#]*slant; |
| 2783 |
adjust_fit(cap_serif_fit#,0); |
| 2784 |
pickup tiny.nib; |
| 2785 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 2786 |
bot y1=0; top y2=h-drop_stem; |
| 2787 |
lft x1l= lft x2l= 2u; |
| 2788 |
pos3(1.5cap_stem,270); pos4(cap_hair,270); pos5(.95cap_curve,180); |
| 2789 |
pos6(cap_hair,90); pos7(1.5cap_stem,90); |
| 2790 |
x7=x1r; y6r=com_height-hair; y7l=y6l; rt x5l=w-u; |
| 2791 |
x4=.5[x1r,x5r]; y7l:=y7l-hair; x6=x4 if x4-1.5u>x1r: -u fi; |
| 2792 |
y3l+serif_o=y4l; top y4l=h+drop_stem; x3=x7; |
| 2793 |
y5=.5[y4,y6]; |
| 2794 |
cap_serifs_tl(2l); cap_serifs_bl(1l); cap_serifs_br_p(1r,1.1); |
| 2795 |
filldraw z1l.b..z1..z1r.b---z7l{dir70}.. |
| 2796 |
(x7l if x7l+cap_hair<x6l: +cap_hair fi,y6l)--- |
| 2797 |
z6l..z5l..z4l---z2..z2l.b---cycle; |
| 2798 |
infill z7r{down}..{right}z6r..z5r..z4r{left}..{down} if y3r>y7r: z3r else: z7r+up fi---cycle; |
| 2799 |
penlabels(1,2,3,4,5,6,7); |
| 2800 |
math_fit(0,ic#-2.5u#); |
| 2801 |
endchar; |
| 2802 |
|
| 2803 |
iff known chars.latin_Thorn: |
| 2804 |
bskchar "The letter Thorn"; |
| 2805 |
beginchar(chars.latin_Thorn,12u#,cap_height#,0); uni "0x00DE"; |
| 2806 |
italcorr .5[x_height#,bar_height#]*slant; |
| 2807 |
adjust_fit(cap_serif_fit#,0); |
| 2808 |
pickup tiny.nib; |
| 2809 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 2810 |
bot y1=0; top y2=h-drop_stem; |
| 2811 |
lft x1l= lft x2l= 2u; |
| 2812 |
pos3(.8ser_height,270); pos4(cap_hair,270); pos5(.95cap_curve,180); |
| 2813 |
pos6(cap_hair,90); pos7(.8ser_height,90); |
| 2814 |
x7=x1r; y7l=y6l; rt x5l=w-u; |
| 2815 |
x6=x4=.5[x1r,x5r]-u; y7l:=y7l-hair; |
| 2816 |
y3l=y4l; x3=x7; y3l:=y3l+hair; |
| 2817 |
y5=.5[y4,y6]=.5[x_height,bar_height]; y4r-y6r=bar_height; |
| 2818 |
cap_serifs_tl(2l); cap_serifs_tr(2r); cap_serifs_bl(1l); cap_serifs_br_p(1r,1.1); |
| 2819 |
if y1r.b>y7l: y1r.b:=y7l; fi |
| 2820 |
filldraw z1l.b..{left}z1l.c..z1l.a{right}..z1+ser_boule*up.. |
| 2821 |
{right}z1r.a..z1r.c{left}..z1r.b---z7l{dir70}.. |
| 2822 |
(x7l if x7l+cap_hair<x6l: +cap_hair fi,y6l)--- |
| 2823 |
z6l..z5l..z4l---(x3l if x3l+cap_hair<x4l:+cap_hair fi,y4l)..{dir110}z3l---z2r.b |
| 2824 |
..z2r.c{right}..{left}z2r.a---z2l.a..z2l.c{right}..z2l.b---cycle; |
| 2825 |
infill z7r{down}..{right}z6r..z5r..z4r{left}..{down}z3r---cycle; |
| 2826 |
penlabels(1,2,3,4,5,6,7); |
| 2827 |
endchar; |
| 2828 |
|
| 2829 |
charscription(14.3u,cap_height,3.5u if not monospace:+.5cap_curve fi)( |
| 2830 |
path p[]; numeric tim[]; oblu:=1/3(x2-x1); |
| 2831 |
pos1(cap_curve,0); pos2(cap_hair,90); pos3(cap_curve,180); pos4(cap_hair,270); |
| 2832 |
lft x1l=u-o; rt x3l=w-u+o; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; |
| 2833 |
x2-x4=-.5u; bot y2l=-o; top y4l=h+o; |
| 2834 |
p0:=z1l{down}..z2l..z3l..z4l..{down}z1l; |
| 2835 |
tim1= ypart(((.5w, .5cap_hair)--(w,.5cap_hair)) intersectiontimes p0); |
| 2836 |
z5r=point tim1 of p0; |
| 2837 |
pos5(cap_hair,angle(direction tim1 of p0)-90); pos6(cap_hair,angle(direction tim1 of p0)-90); |
| 2838 |
pos7(cap_hair+o,angle(direction tim1 of p0)-90); |
| 2839 |
x6=x1r; z6=z5+whatever*(direction tim1 of p0) rotated 180; |
| 2840 |
pos8(cap_curve,angle(z2-z4)); |
| 2841 |
z7=z6; x8=.5[x5r,x3r]; y8r=-d; x9=w if not monospace: +cap_stem fi; y9=.5y6; |
| 2842 |
p1:=z5l{z6-z5}..{z6-z3}z6l; |
| 2843 |
p2:=z9{dir-125}..z8l..{z6-z3}z7l..z7r{if testdpi:dir40 else:(x4,y3)-z6 fi}..z8r..{dir70}z9; |
| 2844 |
p3:=z6r{z3-z6}..{z5-z6}z5r; |
| 2845 |
(tim2,tim3)=p1 intersectiontimes p2; |
| 2846 |
(tim4,tim5)=p3 intersectiontimes p2; |
| 2847 |
(tim6,tim7)=p0 intersectiontimes p1; |
| 2848 |
(tim8,tim9)=p0 intersectiontimes p3; |
| 2849 |
filldraw subpath(0,rundy(p0,tim6).zpet) of p0.. |
| 2850 |
subpath(rundy(p1,tim7),rundy(p1,(tim2,hair))) of p1.. |
| 2851 |
subpath(rundy(p2,(tim3,hair)),infinity) of p2.. |
| 2852 |
subpath(0,rundy(p2,tim5).zpet) of p2.. |
| 2853 |
subpath(rundy(p3,tim4),rundy(p3,tim9).zpet) of p3.. |
| 2854 |
subpath(rundy(p0,tim8),infinity) of p0&cycle; |
| 2855 |
infill z1r{up}..z4r..z3r..z2r..{up}cycle; |
| 2856 |
penlabels(1,2,3,4,5,6,7,8,9); |
| 2857 |
); |
| 2858 |
|
| 2859 |
iff known chars.latin_Q: |
| 2860 |
bskchar "The letter Q"; |
| 2861 |
beginchar(chars.latin_Q,14.3u#,cap_height#,3.5u# if not monospace:+.5cap_curve# fi); uni "0x0051"; |
| 2862 |
italcorr .5cap_height#*slant+.5u#; |
| 2863 |
adjust_fit(0,0); |
| 2864 |
pickup tiny.nib; |
| 2865 |
usechar; |
| 2866 |
math_fit(-.5u#,ic#); |
| 2867 |
endchar; |
| 2868 |
|
| 2869 |
iff known chars.latin_Q_BB: |
| 2870 |
bskchar "The blackboard-bold letter Q"; |
| 2871 |
beginchar(chars.latin_Q_BB,14.3u#,cap_height#,3.5u# if not monospace:+.5cap_curve# fi); uni "0x211A"; |
| 2872 |
italcorr .5cap_height#*slant+.5u#; |
| 2873 |
adjust_fit(0,0); |
| 2874 |
pickup tiny.nib; |
| 2875 |
usechar; |
| 2876 |
p100:=z4r..z1r{down}..z2r..z3r..cycle; |
| 2877 |
p101:=reverse z4l..z1l{down}..z2l..z3l..cycle; |
| 2878 |
p102:=subpath(0,1.3) of p2; |
| 2879 |
tim99-3=xpart(subpath(3,infinity) of p2 intersectiontimes |
| 2880 |
(point infinity of p102--(xpart(point infinity of p102),-d))); |
| 2881 |
p103:=subpath(tim99,infinity) of p2; |
| 2882 |
oblu:=1.25bbw; |
| 2883 |
z100=bsktouch(subpath(0,1) of p100,bbs*up,p101,down); |
| 2884 |
z101=bsktouch(subpath(1,2) of p100,bbs*down,p101,up); |
| 2885 |
z102=bsktouch(subpath(3,4) of p100,bbs*up,p101,down); |
| 2886 |
z103=bsktouch(subpath(2,3) of p100,bbs*down,p101,up); |
| 2887 |
z104=bsktouch(p102,down,p103,up); |
| 2888 |
tim100=xpart(p100 intersectiontimes (z100--(x100,y1))); |
| 2889 |
tim101=xpart(p101 intersectiontimes (z100--(x100,y4l+5))); |
| 2890 |
tim102=xpart(p100 intersectiontimes (z101--(x101,y1))); |
| 2891 |
tim103=xpart(p101 intersectiontimes (z101--(x101,y2l-5))); |
| 2892 |
tim104=xpart(p100 intersectiontimes (z102--(x102,y1))); |
| 2893 |
tim105=xpart(p101 intersectiontimes (z102--(x102,y4l+5))); |
| 2894 |
tim106=xpart(p100 intersectiontimes (z103--(x103,y1))); |
| 2895 |
tim107=xpart(p101 intersectiontimes (z103--(x103,y2l-5))); |
| 2896 |
tim108=xpart(p102 intersectiontimes (z104--(x104,0))); |
| 2897 |
tim109=xpart(p103 intersectiontimes (z104--(x104,-d))); |
| 2898 |
infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100 |
| 2899 |
..subpath(rundy(p101,tim103).zpet,rundy(p101,tim101)) of p101..cycle; |
| 2900 |
infill subpath(rundy(p100,tim104).zpet,rundy(p100,tim106)) of p100 |
| 2901 |
..subpath(rundy(p101,tim107),rundy(p101,tim105).zpet) of p101..cycle; |
| 2902 |
infill subpath(rundy(p102,tim108),infinity) of p102 |
| 2903 |
..subpath(0,rundy(p103,tim109).zpet) of p103..cycle; |
| 2904 |
labels(100,101,102,103); |
| 2905 |
endchar; |
| 2906 |
|
| 2907 |
iff known chars.latin_Q_SS: |
| 2908 |
bskchar "The sans-serif letter Q"; |
| 2909 |
beginchar(chars.latin_Q_SS,14.3u#,cap_height#,3.5u#); uni "0x1D5B0"; |
| 2910 |
italcorr .5cap_height#*slant+.5u#; |
| 2911 |
adjust_fit(0,0); |
| 2912 |
pickup tiny.nib; |
| 2913 |
path p[]; numeric tim[]; oblu:=1/3(x2-x1); |
| 2914 |
pos1(cap_curve,0); pos2(cap_hair,90); pos3(cap_curve,180); pos4(cap_hair,270); |
| 2915 |
lft x1l=u-o; rt x3l=w-u+o; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; |
| 2916 |
x2-x4=-.5u; bot y2l=-o; top y4l=h+o; |
| 2917 |
p0:=z1l{down}..z2l..z3l..z4l..{down}z1l; |
| 2918 |
tim1= ypart(((.5w, .5cap_hair)--(w,.5cap_hair)) intersectiontimes p0); |
| 2919 |
z5r=point tim1 of p0; |
| 2920 |
pos5(cap_hair,angle(direction tim1 of p0)-90); pos6(cap_hair,angle(direction tim1 of p0)-90); |
| 2921 |
pos7(cap_hair+o,angle(direction tim1 of p0)-90); |
| 2922 |
x6=.25[x1,x2]; z6=z5+whatever*(direction tim1 of p0) rotated 180; |
| 2923 |
pos8(cap_curve,angle(z2-z4)); |
| 2924 |
z7=z6; x8=x3; y8r=-d; |
| 2925 |
p1:=z5l{z6-z5}..{z6-z3}z6l; |
| 2926 |
p2:=z8l{left}..{z6-z3}z7l..z7r{z3-z6}..{right}z8r; |
| 2927 |
p3:=z6r{z3-z6}..{z5-z6}z5r; |
| 2928 |
(tim2,tim3)=p1 intersectiontimes p2; |
| 2929 |
(tim4,tim5)=p3 intersectiontimes p2; |
| 2930 |
(tim6,tim7)=p0 intersectiontimes p1; |
| 2931 |
(tim8,tim9)=p0 intersectiontimes p3; |
| 2932 |
filldraw subpath(0,rundy(p0,tim6).zpet) of p0 |
| 2933 |
..subpath(rundy(p1,tim7),rundy(p1,(tim2,hair))) of p1 |
| 2934 |
..subpath(rundy(p2,(tim3,hair)),infinity) of p2 |
| 2935 |
..subpath(0,rundy(p2,tim5).zpet) of p2 |
| 2936 |
..subpath(rundy(p3,tim4),rundy(p3,tim9).zpet) of p3 |
| 2937 |
..subpath(rundy(p0,tim8),infinity) of p0&cycle; |
| 2938 |
infill z1r{up}..z4r..z3r..z2r..{up}cycle; |
| 2939 |
penlabels(1,2,3,4,5,6,7,8); |
| 2940 |
endchar; |
| 2941 |
|
| 2942 |
iff known chars.latin_Q_alt: |
| 2943 |
bskchar "The letter Q (non-protruding)"; |
| 2944 |
beginchar(chars.latin_Q_alt,14.3u#,cap_height#,3.5u# if not monospace:+.5cap_curve# fi); uni "non"; |
| 2945 |
italcorr .5cap_height#*slant+.5u#; |
| 2946 |
adjust_fit(0,0); |
| 2947 |
pickup tiny.nib; |
| 2948 |
path p[]; numeric tim[]; oblu:=1/3(x2-x1); |
| 2949 |
pos1(cap_curve,0); pos2(cap_hair,90); pos3(cap_curve,180); pos4(cap_hair,270); |
| 2950 |
lft x1l=u-o; rt x3l=w-u+o; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; |
| 2951 |
x2-x4=-.5u; bot y2l=-o; top y4l=h+o; |
| 2952 |
p0:=z1l{down}..z2l..z3l..z4l..{down}z1l; |
| 2953 |
tim1= ypart(((.5w, .5cap_hair)--(w,.5cap_hair)) intersectiontimes p0); |
| 2954 |
z5r=point tim1 of p0; |
| 2955 |
pos5(cap_hair,angle(direction tim1 of p0)-90); pos6(cap_hair,angle(direction tim1 of p0)-90); |
| 2956 |
pos7(cap_hair+o,angle(direction tim1 of p0)-90); |
| 2957 |
x6=x1r; z6=z5+whatever*(direction tim1 of p0) rotated 180; |
| 2958 |
pos8(cap_curve,angle(z2-z4)); |
| 2959 |
z7=z6; rt x8=.5[x2r,x9]; y8r=-d; rt x9=w; y9=.5y6; |
| 2960 |
p1:=z5l{z6-z5}..{z6-z3}z6l; |
| 2961 |
p2:=z9{dir-125}..z8l..{z6-z3}z7l..z7r{(x4,y3)-z6}..z8r..{dir70}z9; |
| 2962 |
p3:=z6r{z3-z6}..{z5-z6}z5r; |
| 2963 |
(tim2,tim3)=p1 intersectiontimes p2; |
| 2964 |
(tim4,tim5)=p3 intersectiontimes p2; |
| 2965 |
(tim6,tim7)=p0 intersectiontimes p1; |
| 2966 |
(tim8,tim9)=p0 intersectiontimes p3; |
| 2967 |
filldraw subpath(0,rundy(p0,tim6).zpet) of p0.. |
| 2968 |
subpath(rundy(p1,tim7),rundy(p1,(tim2,hair))) of p1.. |
| 2969 |
subpath(rundy(p2,(tim3,hair)),infinity) of p2.. |
| 2970 |
subpath(0,rundy(p2,tim5).zpet) of p2.. |
| 2971 |
subpath(rundy(p3,tim4),rundy(p3,tim9).zpet) of p3.. |
| 2972 |
subpath(rundy(p0,tim8),infinity) of p0&cycle; |
| 2973 |
infill z1r{up}..z4r..z3r..z2r..{up}cycle; |
| 2974 |
penlabels(1,2,3,4,5,6,7,8,9); |
| 2975 |
endchar; |
| 2976 |
|
| 2977 |
charscription(14u,cap_height,0)( |
| 2978 |
numeric alpha, tim[]; oblu:=2oblu; |
| 2979 |
path p[]; |
| 2980 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 2981 |
bot y1=0; top y2=h-drop_stem; |
| 2982 |
lft x1l= lft x2l= 2u; |
| 2983 |
pos3(.75ser_height,270); pos4(cap_hair,270); pos5(.95cap_curve,180); |
| 2984 |
pos6(cap_hair,90); pos7(.8ser_height,90); |
| 2985 |
x7=x1r; y6r=com_height-hair; y7l=y6l; rt x5l=w-2.5u; |
| 2986 |
x4=.5[x1r,x5r]; y7l:=y7l-hair; x6=x4 if x4-1.5u>x1r: -u fi; |
| 2987 |
y3l+serif_o=y4l; top y4l=h+drop_stem; x3=x7; |
| 2988 |
y5=.5[y4,y6]; |
| 2989 |
rt x8r=w-2u; bot y8r=0; |
| 2990 |
x9r=x5r if .65cap_curve<u: -u fi; y9r=y6l-cap_hair; |
| 2991 |
alpha=diag_ratio(2,cap_stem,y9r-y8r,x8r-x9r); |
| 2992 |
pos8(alpha*cap_stem,0); pos9(alpha*cap_stem,0); |
| 2993 |
cap_serifs_tl(2l); cap_serifs_bl(1l); cap_serifs_br_p(1r,1.1); cap_serifs_br(8r); |
| 2994 |
z8'=z8l+(serif_o,0) rotated(angle(z9l-z8l)); |
| 2995 |
p0=z7l{dir70}..(x7l if x7l+cap_hair<x6l: +cap_hair fi,y6l)---z6l.. |
| 2996 |
z5l..z4l..{left}z2l.a..{right}z2l.c..{down}z2l.b; |
| 2997 |
p1=z8r.a{right}..z8r.c{left}..diag_serif(8r,9r)---z9r..{left}z6r-- |
| 2998 |
z6l{(x9l-x6l,0)}..z9l---z8l{right}...z8+ser_boule*up..{right}z8r.a; |
| 2999 |
p2=subpath ((length p1)-4, length p1) of p1; |
| 3000 |
(tim1,tim2)=p0 intersectiontimes p2; |
| 3001 |
(tim3,tim4)=p0 intersectiontimes p1; |
| 3002 |
filldraw z1l.b..{left}z1l.c..z1l.a{right}..z1+ser_boule*up.. |
| 3003 |
{right}z1r.a..z1r.c{left}..z1r.b--- |
| 3004 |
subpath(0,rundy(p0,tim1).zpet) of p0.. |
| 3005 |
subpath(rundy(p2,tim2),infinity) of p2.. |
| 3006 |
subpath(0,rundy(p1,tim4).zpet) of p1.. |
| 3007 |
subpath(rundy(p0,tim3),infinity) of p0---cycle; |
| 3008 |
infill z7r..{right}z6r..z5r..z4r{left}..z3r---cycle; |
| 3009 |
penlabels(1,2,3,4,5,6,7,8,9); labels(8'); |
| 3010 |
); |
| 3011 |
|
| 3012 |
iff known chars.latin_R: |
| 3013 |
bskchar "The letter R"; |
| 3014 |
beginchar(chars.latin_R,14u#,cap_height#,0); uni "0x0052"; |
| 3015 |
italcorr .2[x_height#,cap_height#]*slant-1.75u#; |
| 3016 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3017 |
pickup tiny.nib; |
| 3018 |
usechar; |
| 3019 |
math_fit(0,ic#); |
| 3020 |
endchar; |
| 3021 |
|
| 3022 |
iff known chars.latin_Racute: |
| 3023 |
bskchar "The letter R with acute"; |
| 3024 |
beginchar(chars.latin_Racute,14u#,Acc_height#,0); uni "0x0154"; |
| 3025 |
italcorr .2[x_height#,cap_height#]*slant-1.75u#; |
| 3026 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3027 |
pickup tiny.nib; |
| 3028 |
usechar; |
| 3029 |
x101=.5[x2r,x4]; |
| 3030 |
acute(100,101).capital; |
| 3031 |
endchar; |
| 3032 |
|
| 3033 |
iff known chars.latin_Rdoublegrave: |
| 3034 |
bskchar "The letter R with double grave"; |
| 3035 |
beginchar(chars.latin_Rdoublegrave,14u#,Acc_height#,0); uni "0x0210"; |
| 3036 |
italcorr .2[x_height#,cap_height#]*slant-1.75u#; |
| 3037 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3038 |
pickup tiny.nib; |
| 3039 |
usechar; |
| 3040 |
x102-x100=3u; |
| 3041 |
d_grave(100,101,102,103,.5[x4,x2]).capital; |
| 3042 |
endchar; |
| 3043 |
|
| 3044 |
iff known chars.latin_Rcaron: |
| 3045 |
bskchar "The letter R with caron"; |
| 3046 |
beginchar(chars.latin_Rcaron,14u#,Acc_height#,0); uni "0x0158"; |
| 3047 |
italcorr .2[x_height#,cap_height#]*slant-1.75u#; |
| 3048 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3049 |
pickup tiny.nib; |
| 3050 |
usechar; |
| 3051 |
x101=.4[x4,x2r]; |
| 3052 |
hacek(100,101,102).capital; |
| 3053 |
endchar; |
| 3054 |
|
| 3055 |
iff known chars.latin_Rcedilla: |
| 3056 |
bskchar "The letter R with cedilla (treated as comma)"; |
| 3057 |
beginchar(chars.latin_Rcedilla,14u#,cap_height#,.75comma_depth#); uni "0x0156"; |
| 3058 |
italcorr .2[x_height#,cap_height#]*slant-1.75u#; |
| 3059 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3060 |
pickup tiny.nib; |
| 3061 |
usechar; |
| 3062 |
x100=.5[x1r.a,x8l]; top y100''r=0; |
| 3063 |
comma(100,.75dot_size,.5hair,.75comma_depth); |
| 3064 |
endchar; |
| 3065 |
|
| 3066 |
iff known chars.latin_Rinvbreve: |
| 3067 |
bskchar "The letter R with inverted breve"; |
| 3068 |
beginchar(chars.latin_Rinvbreve,14u#,Acc_height#+o#,0); uni "0x0212"; |
| 3069 |
italcorr .2[x_height#,cap_height#]*slant-1.75u#; |
| 3070 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3071 |
pickup tiny.nib; |
| 3072 |
usechar; |
| 3073 |
x101=.45[x4,x2r]; x102-x100=4.5u; |
| 3074 |
bot y100=top y4l+2o; |
| 3075 |
tieacc(100,101,102).capital; |
| 3076 |
endchar; |
| 3077 |
|
| 3078 |
iff known chars.latin_R_BB: |
| 3079 |
bskchar "The blackboard-bold letter R"; |
| 3080 |
beginchar(chars.latin_R_BB,14u#,cap_height#,0); uni "0x211D"; |
| 3081 |
italcorr .2[x_height#,cap_height#]*slant-1.75u#; |
| 3082 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3083 |
pickup tiny.nib; |
| 3084 |
usechar; |
| 3085 |
bot z100=(x1l,y1l.c); top z101=(x2l,y2l.c); |
| 3086 |
oblu:=f_obl; |
| 3087 |
infill obl(2r,2l,1r)---obl(1r,2r,1l)---z1l...obl(100,1l.c,2l)---obl(101,1l,2l.c)...z2l---cycle; |
| 3088 |
p100=z4r{right}..z5r..{left}z6r; |
| 3089 |
p101=z6l{right}..z5l..{left}z4l; |
| 3090 |
z102=bsktouch(subpath (0,1) of p100,bbs*up,p101,down); |
| 3091 |
y103=y104=y5; z103=whatever[z9r,z8r.bb]; z104=whatever[z9l,z8l]; |
| 3092 |
bot z105=(lft x8r,y8r.c); |
| 3093 |
p102=z8r.bb--z103; |
| 3094 |
p103=z104---obl(8l,104,8)---z8r...obl(105,8r.c,9r)---z8r.bb; |
| 3095 |
tim100=xpart(p100 intersectiontimes (z102--(x102,y5))); |
| 3096 |
tim101=xpart(p101 intersectiontimes (z102--(x102,y4l+5))); |
| 3097 |
(tim102,tim103)=p100 intersectiontimes p103; |
| 3098 |
(tim104,tim105)=p101 intersectiontimes p102; |
| 3099 |
oblu:=1.25bbw; |
| 3100 |
infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100 |
| 3101 |
..subpath(rundy(p103,tim103),infinity) of p103 |
| 3102 |
..subpath(0,rundy(p102,tim105).zpet) of p102 |
| 3103 |
..subpath(rundy(p101,tim104),rundy(p101,tim101).zpet) of p101..cycle; |
| 3104 |
labels(102,103,104,8r.bb); |
| 3105 |
endchar; |
| 3106 |
|
| 3107 |
iff known chars.sign_registered: |
| 3108 |
bskchar "Registered sign (circled R)"; |
| 3109 |
beginchar(chars.sign_registered,15u#,asc_height#,0); uni "0x00AE"; |
| 3110 |
italcorr x_height#*slant; |
| 3111 |
adjust_fit(0,0); |
| 3112 |
pickup tiny.nib; |
| 3113 |
numeric zv; zv=.6; |
| 3114 |
lft x6=u; x2=w-x6; y2=.5h; top y8=h; |
| 3115 |
lft x11=3u; x12+x11=w; x13=x11; x14=x12; |
| 3116 |
y11=y12; y13=y14; .5[y11,y13]=y2; y11-y13=spread; |
| 3117 |
circle_points(rule_thickness); |
| 3118 |
filldraw draw_circle.l; |
| 3119 |
infill draw_circle.r; |
| 3120 |
save x,y; |
| 3121 |
multiply(1.5*zv)(cap_curve,cap_hair,ser_height,cap_stem); |
| 3122 |
usechar shifted -(.5[x8,x2],.5[y4l,y1]) scaled zv shifted (.5WW+.5HH*slant,.5HH); |
| 3123 |
endchar; |
| 3124 |
|
| 3125 |
iff known chars.sign_registered_superscript: |
| 3126 |
bskchar "Superscript registered sign (circled R)"; |
| 3127 |
beginchar(chars.sign_registered_superscript,8.5u#,asc_height#,0); uni "non"; |
| 3128 |
italcorr (asc_height#-.5x_height#)*slant; |
| 3129 |
adjust_fit(0,0); |
| 3130 |
pickup tiny.nib; |
| 3131 |
numeric zv,ys; zv=.3; |
| 3132 |
x6=u; x2=w-x6; ys=y2=.5h+.5*6.5u; top y8=h+o; |
| 3133 |
x11=3u; x12+x11=w; x13=x11; x14=x12; |
| 3134 |
y11=y12; y13=y14; .5[y11,y13]=y2; y11-y13=spread; |
| 3135 |
circle_points(.5rule_thickness); |
| 3136 |
filldraw draw_circle.l; |
| 3137 |
infill draw_circle.r; |
| 3138 |
save x,y; |
| 3139 |
multiply(2.5*zv)(cap_curve,cap_hair,ser_height,cap_stem); |
| 3140 |
usechar shifted -(.5[x8,x2],.5[y4l,y1]) scaled zv shifted (.5WW+ys*slant,ys); |
| 3141 |
endchar; |
| 3142 |
|
| 3143 |
iff known chars.latin_R_SS: |
| 3144 |
bskchar "The sans-serif letter R"; |
| 3145 |
beginchar(chars.latin_R_SS,13.5u#,cap_height#,0); uni "0x1D5B1"; |
| 3146 |
italcorr .5[x_height#,cap_height#]*slant; |
| 3147 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3148 |
pickup tiny.nib; |
| 3149 |
numeric alpha, tim[]; oblu:=2oblu; |
| 3150 |
path p[]; |
| 3151 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 3152 |
bot y1=0; top y2=h-drop_stem; |
| 3153 |
lft x1l= lft x2l= 2u; |
| 3154 |
pos3(1.5cap_stem,270); pos4(cap_hair,270); pos5(.95cap_curve,180); |
| 3155 |
pos6(cap_hair,90); pos7(1.5cap_stem,90); |
| 3156 |
x7=x1r; y6r=com_height-hair; y7l=y6l; rt x5l=w-2u; |
| 3157 |
x4=.5[x1r,x5r]; y7l:=y7l-hair; x6=x4 if x4-1.5u>x1r: -u fi; |
| 3158 |
y3l+serif_o=y4l; top y4l=h+drop_stem; x3=x7; |
| 3159 |
y5=.5[y4,y6]; |
| 3160 |
rt x8r=w-1.5u; bot y8r=0; |
| 3161 |
x9r=x5r if .65cap_curve<u: -u fi; y9r=y6l-cap_hair; |
| 3162 |
alpha=diag_ratio(2,cap_stem,y9r-y8r,x8r-x9r); |
| 3163 |
pos8(alpha*cap_stem,0); pos9(alpha*cap_stem,0); |
| 3164 |
cap_serifs_tl(2l); cap_serifs_bl(1l); cap_serifs_br_p(1r,1.1); cap_serifs_br(8r); |
| 3165 |
z8'=z8l+(serif_o,0) rotated(angle(z9l-z8l)); |
| 3166 |
y8''=.5[y8r.b,y8]; z8''=whatever[z8r,z9r]; |
| 3167 |
p0=z7l{dir70}..(x7l if x7l+cap_hair<x6l: +cap_hair fi,y6l)---z6l.. |
| 3168 |
z5l..z4l---z2..{down}z2l.b; |
| 3169 |
p1=z8''---z9r..{left}z6r--z6l{(x9l-x6l,0)}..z9l---z8'..z8; |
| 3170 |
p2=subpath ((length p1)-4, length p1) of p1; |
| 3171 |
(tim1,tim2)=p0 intersectiontimes p2; |
| 3172 |
(tim3,tim4)=p0 intersectiontimes p1; |
| 3173 |
filldraw z1l.b..z1..z1r.b--- |
| 3174 |
subpath(0,rundy(p0,tim1).zpet) of p0.. |
| 3175 |
subpath(rundy(p2,tim2),infinity) of p2.. |
| 3176 |
subpath(0,rundy(p1,tim4).zpet) of p1.. |
| 3177 |
subpath(rundy(p0,tim3),infinity) of p0---cycle; |
| 3178 |
infill z7r..{right}z6r..z5r..z4r{left}..if y3r>y7r: z3r else: z7r+up fi---cycle; |
| 3179 |
penlabels(1,2,3,4,5,6,7,8,9); labels(8',8''); |
| 3180 |
endchar; |
| 3181 |
|
| 3182 |
iff known chars.sign_recipe: |
| 3183 |
bskchar "Recipe sign"; |
| 3184 |
beginchar(chars.sign_recipe,14u#,cap_height#,0); uni "0x211E"; |
| 3185 |
italcorr bar_height#*slant; |
| 3186 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3187 |
pickup tiny.nib; |
| 3188 |
numeric alpha, tim[],theta; oblu:=2oblu; |
| 3189 |
path p[]; |
| 3190 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 3191 |
bot y1=0; top y2=h-drop_stem; |
| 3192 |
lft x1l= lft x2l= 2u; |
| 3193 |
pos3(.75ser_height,270); pos4(cap_hair,270); pos5(.95cap_curve,180); |
| 3194 |
pos6(cap_hair,90); pos7(.8ser_height,90); |
| 3195 |
x7=x1r; y6r=com_height-hair; y7l=y6l; rt x5l=w-2.5u; |
| 3196 |
x4=.5[x1r,x5r]; y7l:=y7l-hair; x6=x4 if x4-1.5u>x1r: -u fi; |
| 3197 |
y3l+serif_o=y4l; top y4l=h+drop_stem; x3=x7; |
| 3198 |
y5=.5[y4,y6]; |
| 3199 |
rt x8r=w-2u; bot y8r=0; |
| 3200 |
x9r=x5r if .65cap_curve<u: -u fi; y9r=y6l-cap_hair; |
| 3201 |
alpha=diag_ratio(2,cap_stem,y9r-y8r,x8r-x9r); |
| 3202 |
pos8(alpha*cap_stem,0); pos9(alpha*cap_stem,0); |
| 3203 |
cap_serifs_tl(2l); cap_serifs_bl(1l); cap_serifs_br_p(1r,1.1); cap_serifs_br(8r); |
| 3204 |
z8'=z8l+(serif_o,0) rotated(angle(z9l-z8l)); |
| 3205 |
top y11=bar_height; rt x11=w-u; bot y10=0; x10=.5[x1r,x8r]; |
| 3206 |
theta:=angle(z11-z10)+90; |
| 3207 |
pos10(bar,theta); pos11(bar,theta); |
| 3208 |
bskpoints(10,11,bar,bar); |
| 3209 |
z100=point 0 of diag_serif(8r,9r); |
| 3210 |
z10'l=whatever[z10l,z11l]=whatever[z9l,z8l]; z10'r=whatever[z10r,z11r]=whatever[z9l,z8l]; |
| 3211 |
z11'l=whatever[z10l,z11l]=whatever[z9r,z8r.bb]; z11'r=whatever[z10r,z11r]=whatever[z9r,z8r.bb]; |
| 3212 |
p0=z7l{dir70}..(x7l if x7l+cap_hair<x6l: +cap_hair fi,y6l)---z6l.. |
| 3213 |
z5l..z4l..{left}z2l.a..{right}z2l.c..{down}z2l.b; |
| 3214 |
p1=z8r.a{right}..z8r.c{left}..z100---obl(11'l,8r.bb,11l)---z11ll.. |
| 3215 |
z11r---obl(11'r,11r,9r)---z9r..{left}z6r-- |
| 3216 |
z6l{(x9l-x6l,0)}..z9l---obl(10'r,9l,10r)---z10rr..z10l---obl(10'l,10l,8l)--- |
| 3217 |
z8l{right}...z8+ser_boule*up..{right}z8r.a; |
| 3218 |
p2=subpath ((length p1)-10,infinity) of p1; |
| 3219 |
(tim1,tim2)=p0 intersectiontimes p2; |
| 3220 |
(tim3,tim4)=p0 intersectiontimes p1; |
| 3221 |
filldraw z1l.b..{left}z1l.c..z1l.a{right}..z1+ser_boule*up.. |
| 3222 |
{right}z1r.a..z1r.c{left}..z1r.b--- |
| 3223 |
subpath(0,rundy(p0,tim1).zpet) of p0.. |
| 3224 |
subpath(rundy(p2,tim2),infinity) of p2.. |
| 3225 |
subpath(0,rundy(p1,tim4).zpet) of p1.. |
| 3226 |
subpath(rundy(p0,tim3),infinity) of p0---cycle; |
| 3227 |
infill z7r..{right}z6r..z5r..z4r{left}..z3r---cycle; |
| 3228 |
penlabels(1,2,3,4,5,6,7,8,9,10,10',11,11'); labels(8'); |
| 3229 |
endchar; |
| 3230 |
|
| 3231 |
iff known chars.sign_AR: |
| 3232 |
bskchar "Aspect ratio sign"; |
| 3233 |
beginchar(chars.sign_AR,18u#,cap_height#,0); uni "non"; |
| 3234 |
italcorr .2[x_height#,cap_height#]*slant-1.75u#; |
| 3235 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3236 |
pickup tiny.nib; |
| 3237 |
numeric alpha, beta, tim[]; oblu:=2oblu; oblu.more:=3f_obl; |
| 3238 |
path p[]; |
| 3239 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 3240 |
bot y1=0; top y2=h-drop_stem; |
| 3241 |
lft x1l=lft x2l=8.5u; |
| 3242 |
pos3(.75ser_height,270); pos4(cap_hair,270); pos5(.95cap_curve,180); |
| 3243 |
pos6(cap_hair,90); pos7(.8ser_height,90); |
| 3244 |
x7=x1r; y6r=com_height-hair; y7l=y6l; rt x5l=w-2.5u; |
| 3245 |
x4=.5[x1r,x5r]; y7l:=y7l-hair; x6=x4 if x4-1.5u>x1r: -u fi; |
| 3246 |
y3l+serif_o=y4l; top y4l=h+drop_stem; x3=x7; |
| 3247 |
y5=.5[y4,y6]; |
| 3248 |
rt x8r=w-2u; bot y8r=0; |
| 3249 |
x9r=x5r if .65cap_curve<u: -u fi; y9r=y6l-cap_hair; |
| 3250 |
alpha=diag_ratio(2,cap_stem,y9r-y8r,x8r-x9r); |
| 3251 |
pos8(alpha*cap_stem,0); pos9(alpha*cap_stem,0); |
| 3252 |
cap_serifs_tl(2l); cap_serifs_bl(1l); cap_serifs_br_p(1r,1.1); cap_serifs_br(8r); |
| 3253 |
z8'=z8l+(serif_o,0) rotated(angle(z9l-z8l)); |
| 3254 |
lft x10l=2u; y10l=y1; |
| 3255 |
beta=diag_ratio(2,cap_hair,y2l-y7l,x2l-x7l); |
| 3256 |
pos10(beta*cap_hair,0); pos6'(ser_height,90); |
| 3257 |
pos12(cap_bar,90); y11r-y11l=cap_bar-tiny; .5[y11r,y11l]=y12=y6=y6'; x6'=x1l; |
| 3258 |
x2l'=x2l; z2l'=whatever[z2l+alpha*(cap_hair-.5currentbreadth)*right,z10]; |
| 3259 |
x1l-x12=x6-x7; z11r=whatever[z10,z2l']; z11l=whatever[z10,z2l']; |
| 3260 |
y11'r=y11r; y11'l=y11l; x11'l=x11'r=.5[x11l,x11r]+(x6-x7); |
| 3261 |
cap_serifs_bl(10l); cap_serifs_br(10r); |
| 3262 |
p0=z7l{dir70}..(x7l if x7l+cap_hair<x6l: +cap_hair fi,y6l)---z6l..z5l..z4l |
| 3263 |
---obl(2l,2,10l)---diag_serif(10l,2l)..{left}z10l.c..z10l.a{right} |
| 3264 |
..z10+ser_boule*up..{right}z10r.a..{left}z10r.c..diag_serif(10r,2r) |
| 3265 |
---obl(11l,10r,12l)---z12l{right}..{down}(x1l,y6'l); |
| 3266 |
p1=z8r.a{right}..z8r.c{left}..diag_serif(8r,9r)---z9r..{left}z6r-- |
| 3267 |
z6l{(x9l-x6l,0)}..z9l---z8l{right}...z8+ser_boule*up..{right}z8r.a; |
| 3268 |
p2=subpath ((length p1)-4, length p1) of p1; |
| 3269 |
(tim1,tim2)=p0 intersectiontimes p2; |
| 3270 |
(tim3,tim4)=p0 intersectiontimes p1; |
| 3271 |
filldraw z1l.b..{left}z1l.c..z1l.a{right}..z1+ser_boule*up..{right}z1r.a..z1r.c{left} |
| 3272 |
..z1r.b---subpath(0,rundy(p0,tim1).zpet) of p0 |
| 3273 |
..subpath(rundy(p2,tim2),infinity) of p2 |
| 3274 |
..subpath(0,rundy(p1,tim4).zpet) of p1 |
| 3275 |
..subpath(rundy(p0,tim3),infinity) of p0---cycle; |
| 3276 |
infill z7r..{right}z6r..z5r..z4r{left}..z3r---cycle; |
| 3277 |
infill (x1l,y6'r)..{left}z12r---obl(11r,12r,2l')--- |
| 3278 |
obl(2l',10l,1l).more---cycle; |
| 3279 |
penlabels(1,2,3,4,5,6,6',7,8,9,10,11,12); labels(8'); |
| 3280 |
endchar; |
| 3281 |
|
| 3282 |
charscription(10u,cap_height,0)( |
| 3283 |
numeric exc; exc=(w-u)/h; |
| 3284 |
path p[]; numeric tim[]; |
| 3285 |
pos2(cap_hair,90); pos3(cap_curve,angle((w-u,h))+180); pos4(cap_hair,90); |
| 3286 |
pos5(cap_stem,180); pos6(cap_stem,180); |
| 3287 |
y5=.5[y2l,y3]+.5like_cap_hair; x3-x5l=.5(y2l-y3l)*exc; |
| 3288 |
y6=.5[y4r,y3]-.5like_cap_hair; rt x6l=w-u; |
| 3289 |
x2=x3=x4=.5w; top y2r=h+o; bot y4l=-o; |
| 3290 |
y3=.5[y2l,y4r]+.5cap_hair; |
| 3291 |
pos1(cap_hair,0); x1r=w-x5r; y1=y5-.5cap_hair; |
| 3292 |
pos7(cap_hair,0); x7l=w-x6l; y7=y6+.5cap_hair; |
| 3293 |
if x5r<x7r+currentbreadth: %Correction for HC variant |
| 3294 |
numeric sh; sh:=x7r+currentbreadth-x5r; |
| 3295 |
forsuffixes $=5r,5l,5,2l,2r,2: x$:=x$+sh; endfor |
| 3296 |
fi |
| 3297 |
p0=z1r{up}..z2r{left}..z5r..z3r..z6r..{left}z4r..{up}z7r; |
| 3298 |
p1=z7l{dir-80}..z4l{right}..z6l..z3l..z5l..{right}z2l..{down}z1l; |
| 3299 |
tim1=xpart(p0 intersectiontimes ((.5w,y2-.5cap_hair)--(w,y2-.5cap_hair))); |
| 3300 |
tim2=xpart(p1 intersectiontimes ((.5w,y4+cap_hair)--(0,y4+cap_hair))); |
| 3301 |
filldraw z1r--(x1r-.5o,h+o){dir-100}..subpath(tim1,length p0) of p0..z7l |
| 3302 |
--(x7l+o,-o){dir80}..subpath(tim2, length p1) of p1..cycle; |
| 3303 |
penlabels(0,1,2,3,4,5,6,7); |
| 3304 |
); |
| 3305 |
|
| 3306 |
iff known chars.latin_S: |
| 3307 |
bskchar "The letter S"; |
| 3308 |
beginchar(chars.latin_S,10u#, cap_height#, 0); uni "0x0053"; |
| 3309 |
italcorr cap_height#*slant-u#; |
| 3310 |
adjust_fit(0,0); |
| 3311 |
pickup tiny.nib; |
| 3312 |
usechar; |
| 3313 |
math_fit(-.5u#,.75ic#); |
| 3314 |
endchar; |
| 3315 |
|
| 3316 |
iff known chars.sign_circled_S: |
| 3317 |
bskchar "Circled S sign"; |
| 3318 |
beginchar(chars.sign_circled_S,15u#,asc_height#,0); uni "non"; |
| 3319 |
italcorr x_height#*slant; |
| 3320 |
adjust_fit(0,0); |
| 3321 |
pickup tiny.nib; |
| 3322 |
numeric zv; zv=.6; |
| 3323 |
lft x6=u; x2=w-x6; y2=.5h; top y8=h; |
| 3324 |
lft x11=3u; x12+x11=w; x13=x11; x14=x12; |
| 3325 |
y11=y12; y13=y14; .5[y11,y13]=y2; y11-y13=spread; |
| 3326 |
circle_points(rule_thickness); |
| 3327 |
filldraw draw_circle.l; |
| 3328 |
infill draw_circle.r; |
| 3329 |
save x,y; |
| 3330 |
multiply(1.5*zv)(cap_curve,cap_hair,cap_stem,ser_height); |
| 3331 |
usechar shifted -(x4,.5[y4l,y2r]) scaled zv shifted (.5WW+.5HH*slant,.5HH); |
| 3332 |
endchar; |
| 3333 |
|
| 3334 |
iff known chars.latin_Scaron: |
| 3335 |
bskchar "The letter S with caron"; |
| 3336 |
beginchar(chars.latin_Scaron,10u#, Acc_height#, 0); uni "0x0160"; |
| 3337 |
italcorr cap_height#*slant-u#; |
| 3338 |
adjust_fit(0,0); |
| 3339 |
pickup tiny.nib; |
| 3340 |
usechar; |
| 3341 |
x101=x2; |
| 3342 |
hacek(100,101,102).capital; |
| 3343 |
endchar; |
| 3344 |
|
| 3345 |
iff known chars.latin_Scircumflex: |
| 3346 |
bskchar "The letter S with circumflex"; |
| 3347 |
beginchar(chars.latin_Scircumflex,10u#, Acc_height#, 0); uni "0x015C"; |
| 3348 |
italcorr cap_height#*slant-u#; |
| 3349 |
adjust_fit(0,0); |
| 3350 |
pickup tiny.nib; |
| 3351 |
usechar; |
| 3352 |
x101=x2; x102-x100=4u; bot y100l=top cap_height+o; |
| 3353 |
circumflex(100,101,102).capital; |
| 3354 |
endchar; |
| 3355 |
|
| 3356 |
iff known chars.latin_Sacute: |
| 3357 |
bskchar "The letter S with acute"; |
| 3358 |
beginchar(chars.latin_Sacute,10u#, Acc_height#, 0); uni "0x015A"; |
| 3359 |
italcorr cap_height#*slant-u#; |
| 3360 |
adjust_fit(0,0); |
| 3361 |
pickup tiny.nib; |
| 3362 |
usechar; |
| 3363 |
x101=x2-u; |
| 3364 |
acute(100,101).capital; |
| 3365 |
endchar; |
| 3366 |
|
| 3367 |
iff known chars.latin_Scommabelow: |
| 3368 |
bskchar "The letter S with comma below"; |
| 3369 |
beginchar(chars.latin_Scommabelow,10u#,cap_height#,.75comma_depth#); uni "0x0218"; |
| 3370 |
italcorr cap_height#*slant-u#; |
| 3371 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3372 |
pickup tiny.nib; |
| 3373 |
usechar; |
| 3374 |
x100=x4; top y100''r=-2o; |
| 3375 |
comma(100,.75dot_size,.5hair,.75comma_depth); |
| 3376 |
endchar; |
| 3377 |
|
| 3378 |
iff known chars.latin_S_BB: |
| 3379 |
bskchar "The blackboard-bold letter S"; |
| 3380 |
beginchar(chars.latin_S_BB,10u#, cap_height#, 0); uni "0x1D54A"; |
| 3381 |
italcorr cap_height#*slant-u#; |
| 3382 |
adjust_fit(0,0); |
| 3383 |
pickup tiny.nib; |
| 3384 |
usechar; |
| 3385 |
p100=subpath(1,5) of p0; |
| 3386 |
p101=subpath(1,5) of p1; |
| 3387 |
z100=bsktouch(subpath(0,1) of p100,bbs*down,p101,up); |
| 3388 |
z101=bsktouch(subpath(0,1) of p101,bbs*up,p100,down); |
| 3389 |
tim100=xpart(p100 intersectiontimes (z100--(x100,y2r+5))); |
| 3390 |
tim101=xpart(p101 intersectiontimes (z100--(x100,y5))); |
| 3391 |
tim102=xpart(p100 intersectiontimes (z101--(x101,y6))); |
| 3392 |
tim103=xpart(p101 intersectiontimes (z101--(x101,y4l-5))); |
| 3393 |
oblu:=1.25bbw; |
| 3394 |
infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100 |
| 3395 |
..subpath(rundy(p101,tim103),rundy(p101,tim101).zpet) of p101..cycle; |
| 3396 |
labels(100,101); |
| 3397 |
endchar; |
| 3398 |
|
| 3399 |
iff known chars.latin_SS: |
| 3400 |
bskchar "Two letters S (Small Caps variant of eszet)"; |
| 3401 |
beginchar(chars.latin_SS,10u#, cap_height#, 0); uni "non"; |
| 3402 |
italcorr cap_height#*slant-u#; |
| 3403 |
adjust_fit(0,0); |
| 3404 |
pickup tiny.nib; |
| 3405 |
usechar; |
| 3406 |
r:=r+w; charwd:=2charwd; |
| 3407 |
addto currentpicture also currentpicture shifted (w,0); |
| 3408 |
endchar; |
| 3409 |
|
| 3410 |
iff known chars.latin_S_SS: |
| 3411 |
bskchar "The sans-serif letter S"; |
| 3412 |
beginchar(chars.latin_S_SS,9u#, cap_height#, 0); uni "0x1D5B2"; |
| 3413 |
italcorr cap_height#*slant-u#; |
| 3414 |
adjust_fit(0,0); |
| 3415 |
pickup tiny.nib; |
| 3416 |
numeric exc, hpa; exc=(w-u)/h; |
| 3417 |
pos2(cap_hair,90); pos3(cap_curve,angle((w-u,h))+180); pos4(cap_hair,90); |
| 3418 |
pos5(cap_stem,180); pos6(cap_stem,180); |
| 3419 |
y5=.5[y2l,y3]+.5like_cap_hair; x3-hpa=.5(y2l-y3l)*exc; |
| 3420 |
y6=.5[y4r,y3]-.5like_cap_hair; rt x6l=w-u; |
| 3421 |
x3=x4=.5w; top y2r=h+o; bot y4l=-o; x2=.5[x1,x5l]; |
| 3422 |
y3=.5[y2l,y4r]+.5cap_hair; |
| 3423 |
if hpa-cap_stem+.5currentbreadth<rt u: lft x5r=1.25u; rt x1r=w-u; |
| 3424 |
else: x5l=hpa; x1r=w-x5r+.5u; fi; |
| 3425 |
pos1(cap_hair,30); y1=.5[y5,y2l]; |
| 3426 |
pos7(cap_hair,0); x7l=w-x6l; y7=y6; |
| 3427 |
filldraw z1r{dir110}..z2r{left}..z5r..z3r..z6r..{left}z4r..{up}z7r..z7l{down}..z4l{right} |
| 3428 |
..z6l..z3l..z5l..{right}z2l..{dir-70}z1..cycle; |
| 3429 |
penlabels(0,1,2,3,4,5,6,7); |
| 3430 |
endchar; |
| 3431 |
|
| 3432 |
iff known chars.sign_service: |
| 3433 |
bskchar "Service sign"; |
| 3434 |
beginchar(chars.sign_service,14.5u#,asc_height#,0); uni "0x2120"; |
| 3435 |
italcorr asc_height#*slant-u#; |
| 3436 |
adjust_fit(0,0); |
| 3437 |
pickup tiny.nib; |
| 3438 |
numeric zv; zv:=.5; |
| 3439 |
multiply(1.7zv)(cap_stem,cap_hair); |
| 3440 |
usechar shifted -(u,y2r) scaled zv shifted (u,HH); |
| 3441 |
save x,y; |
| 3442 |
let _saved_char=_saved_char_m; |
| 3443 |
_saved_w:=_saved_w_m; |
| 3444 |
usechar shifted -(_saved_w_m,y2) scaled zv shifted (WW-u*(1-zv),HH); |
| 3445 |
endchar; |
| 3446 |
|
| 3447 |
iff known chars.latin_Scedilla: |
| 3448 |
bskchar "The letter S with cedilla"; |
| 3449 |
beginchar(chars.latin_Scedilla,10u#,cap_height#,.65desc_depth#); uni "0x015E"; |
| 3450 |
italcorr cap_height#*slant-u#; |
| 3451 |
adjust_fit(0,0); |
| 3452 |
pickup tiny.nib; |
| 3453 |
numeric exc; exc=(w-u)/h; |
| 3454 |
path p[]; numeric tim[]; |
| 3455 |
pos2(cap_hair,90); pos3(cap_curve,angle((w-u,h))+180); pos4(cap_hair,90); |
| 3456 |
pos5(cap_stem,180); pos6(cap_stem,180); |
| 3457 |
pos8(.5stem,0); pos9(.5stem,0); pos10(stem,0); pos11(.5stem,-110); |
| 3458 |
y5=.5[y2l,y3]+.5like_cap_hair; x3-x5l=.5(y2l-y3l)*exc; |
| 3459 |
y6=.5[y4r,y3]-.5like_cap_hair; rt x6l=w-u; |
| 3460 |
x2=x3=x4=.5w; top y2r=h+o; bot y4l=-o; |
| 3461 |
y3=.5[y2l,y4r]+.5cap_hair; |
| 3462 |
pos1(cap_hair,0); x1r=w-x5r; y1=y5-.5cap_hair; |
| 3463 |
pos7(cap_hair,0); x7l=w-x6l; y7=y6+.5cap_hair; |
| 3464 |
p0=z1r{up}..z2r{left}..z5r..z3r..z6r..{left}z4r..{up}z7r; |
| 3465 |
p1=z7l{dir-80}..z4l{right}..z6l..z3l..z5l..{right}z2l..{down}z1l; |
| 3466 |
tim1=xpart(p0 intersectiontimes ((.5w,y2-.5cap_hair)--(w,y2-.5cap_hair))); |
| 3467 |
tim2=xpart(p1 intersectiontimes ((.5w,y4+cap_hair)--(0,y4+cap_hair))); |
| 3468 |
x8l=x9l=x4; bot y8=0; y9=-hair; y10=-.5d; |
| 3469 |
rt x10r-lft x11r=4u; x8r-lft x11r=2u; y11r=-d; |
| 3470 |
p2:=z9r..{down}z10r..{left}z11r..{right}z11l..{up}z10l..z9l--z8l; |
| 3471 |
p3:=reverse(z8r{down}..subpath (rundy(p2,(0,curve)),infinity) of p2); |
| 3472 |
filldraw z1r--(x1r-.5o,h+o){dir-100}..subpath(tim1,length p0) of p0..z7l |
| 3473 |
--(x7l+o,-o){dir80}..subpath(tim2,rundy(p1,1).zpet) of p1 |
| 3474 |
..subpath(rundy(p3,0),rundy(p3,(infinity,stem)).zpet) of p3 |
| 3475 |
..subpath(rundy(p1,(1,stem)),infinity) of p1..cycle; |
| 3476 |
penlabels(0,1,2,3,4,5,6,7,8,9,10,11); |
| 3477 |
endchar; |
| 3478 |
|
| 3479 |
charscription(15.5u, cap_height,0)( |
| 3480 |
path p[]; |
| 3481 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 3482 |
bot y1=0; top y2=h; x1=x2=.5w; |
| 3483 |
cap_serifs_bl(1l); cap_serifs_br(1r); |
| 3484 |
top y3r=top y4r=h; rt x3r=w-u; lft x4r=u; |
| 3485 |
{{numeric old; old:=stem; |
| 3486 |
save stem; stem:=if monospace: 2/3\\fi old; |
| 3487 |
p0:=reverse arm_top_r_points(2r,3).alt; p1:=arm_top_l_points(2l,4).alt; |
| 3488 |
}}; |
| 3489 |
filldraw z1l.b{down}..{left}z1l.c..z1l.a{right}..z1+ser_boule*up.. |
| 3490 |
{right}z1r.a..z1r.c{left}..z1r.b---p0--p1---cycle; |
| 3491 |
penlabels(1,2); |
| 3492 |
); |
| 3493 |
|
| 3494 |
iff known chars.latin_T: |
| 3495 |
bskchar "The letter T"; |
| 3496 |
beginchar(chars.latin_T,15.5u#,cap_height#,0); uni "0x0054"; |
| 3497 |
italcorr cap_height#*slant; |
| 3498 |
adjust_fit(0,0); |
| 3499 |
pickup tiny.nib; |
| 3500 |
usechar; |
| 3501 |
math_fit(-(cap_height#-beak#)*slant-.5u#,ic#-4.5u#); |
| 3502 |
endchar; |
| 3503 |
|
| 3504 |
iff known chars.latin_Tcaron: |
| 3505 |
bskchar "The letter T with caron"; |
| 3506 |
beginchar(chars.latin_Tcaron,15.5u#,Acc_height#,0); uni "0x0164"; |
| 3507 |
italcorr cap_height#*slant; |
| 3508 |
adjust_fit(0,0); |
| 3509 |
pickup tiny.nib; |
| 3510 |
usechar; |
| 3511 |
x101=x2; |
| 3512 |
hacek(100,101,102).capital; |
| 3513 |
endchar; |
| 3514 |
|
| 3515 |
iff known chars.latin_Tcommabelow: |
| 3516 |
bskchar "The letter T with comma below"; |
| 3517 |
beginchar(chars.latin_Tcommabelow,15.5u#,cap_height#,.75comma_depth#); uni "0x021A"; |
| 3518 |
italcorr cap_height#*slant; |
| 3519 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3520 |
pickup tiny.nib; |
| 3521 |
usechar; |
| 3522 |
x100=x1; top y100''r=-2o; |
| 3523 |
comma(100,.75dot_size,.5hair,.75comma_depth); |
| 3524 |
endchar; |
| 3525 |
|
| 3526 |
iff known chars.latin_T_BB: |
| 3527 |
bskchar "The blackboard-bold letter T"; |
| 3528 |
beginchar(chars.latin_T_BB,15.5u#,cap_height#,0); uni "0x1D54B"; |
| 3529 |
italcorr cap_height#*slant; |
| 3530 |
adjust_fit(0,0); |
| 3531 |
pickup tiny.nib; |
| 3532 |
usechar; |
| 3533 |
bot z100=(x1l,y1l.c); |
| 3534 |
infill ifobl(2l,2r,1l,1r,,)---obl(1r,2r,1l)---z1l...obl(100,1l.c,2l)---cycle; |
| 3535 |
math_fit(0,ic#-3u#); |
| 3536 |
endchar; |
| 3537 |
|
| 3538 |
iff known chars.sign_trademark: |
| 3539 |
bskchar "Trademark sign"; |
| 3540 |
beginchar(chars.sign_trademark,17.5u#,asc_height#,0); uni "0x2122"; |
| 3541 |
italcorr asc_height#*slant-u#; |
| 3542 |
adjust_fit(0,0); |
| 3543 |
pickup tiny.nib; |
| 3544 |
numeric zv; zv:=.5; |
| 3545 |
multiply(1.7zv)(cap_stem,cap_hair); |
| 3546 |
usechar shifted -(u,y2r) scaled zv shifted (u,HH); |
| 3547 |
save x,y; |
| 3548 |
let _saved_char=_saved_char_m; |
| 3549 |
_saved_w:=_saved_w_m; |
| 3550 |
usechar shifted -(_saved_w_m,y2) scaled zv shifted (WW-u*(1-zv),HH); |
| 3551 |
endchar; |
| 3552 |
|
| 3553 |
iff known chars.latin_T_SS: |
| 3554 |
bskchar "The sans-serif letter T"; |
| 3555 |
beginchar(chars.latin_T_SS,14u#,cap_height#,0); uni "0x1D5B3"; |
| 3556 |
italcorr cap_height#*slant; |
| 3557 |
adjust_fit(0,0); |
| 3558 |
pickup tiny.nib; |
| 3559 |
pos1(cap_stem,0); pos2(cap_stem,0); pos3(cap_hair,90); pos4(cap_hair,90); |
| 3560 |
bot y1=0; top y2=h; x1=x2=.5w; |
| 3561 |
cap_serifs_bl(1l); cap_serifs_br(1r); |
| 3562 |
top y3r=top y4r=h; rt x3r=w-u; lft x4r=u; |
| 3563 |
y100=y101=y3l; x100=x1l; x101=x1r; |
| 3564 |
oblu:=cap_hair; |
| 3565 |
filldraw z1l.b..z1..z1r.b---obl(101,1r,3l)---z3l+cap_stem*left...z3...z3r+cap_stem*left |
| 3566 |
---z4r+cap_stem*right...z4...z4l+cap_stem*right---obl(100,4l,1l)---cycle; |
| 3567 |
penlabels(1,2,3,4); labels(100,101); |
| 3568 |
math_fit(0,ic#-3u#); |
| 3569 |
endchar; |
| 3570 |
|
| 3571 |
iff known chars.latin_Tcedilla: |
| 3572 |
bskchar "The letter T with cedilla"; |
| 3573 |
beginchar(chars.latin_Tcedilla,15.5u#,cap_height#,.65desc_depth#); uni "0x0162"; |
| 3574 |
italcorr cap_height#*slant; |
| 3575 |
adjust_fit(0,0); |
| 3576 |
pickup tiny.nib; |
| 3577 |
path p[]; |
| 3578 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 3579 |
pos5(.5stem,0); pos6(.5stem,0); pos7(stem,0); pos8(.5stem,-110); |
| 3580 |
bot y1=0; top y2=h; x1=x2=.5w; |
| 3581 |
cap_serifs_bl(1l); cap_serifs_br(1r); |
| 3582 |
top y3r=top y4r=h; rt x3r=w-u; lft x4r=u; |
| 3583 |
{{numeric old; old:=stem; |
| 3584 |
save stem; stem:=if monospace: 2/3\\fi old; |
| 3585 |
p0:=reverse arm_top_r_points(2r,3).alt; p1:=arm_top_l_points(2l,4).alt; |
| 3586 |
}}; |
| 3587 |
x5l=x6l=x2; bot y5=0; y6=-hair; y7=-.5d; |
| 3588 |
rt x7r-lft x8r=4u; x5r-lft x8r=2u; y8r=-d; |
| 3589 |
p2:=z6r..{down}z7r..{left}z8r..{right}z8l..{up}z7l..z6l--z5l; |
| 3590 |
p3:=reverse(z5r{down}..subpath (rundy(p2,(0,curve)),infinity) of p2); |
| 3591 |
filldraw z1l.b{down}..{left}z1l.c..z1l.a---z5l+hair*left..subpath(rundy(p3,0),rundy(p3,infinity).zpet) of p3..z5r+hair*right---z1r.a..z1r.c{left}..z1r.b---p0--p1---cycle; |
| 3592 |
penlabels(1,2,3,5,6,7,8); |
| 3593 |
endchar; |
| 3594 |
|
| 3595 |
iff known chars.latin_Tstroke: |
| 3596 |
bskchar "The letter T with stroke"; |
| 3597 |
beginchar(chars.latin_Tstroke,15.5u#,cap_height#,0); uni "0x0166"; |
| 3598 |
italcorr cap_height#*slant; |
| 3599 |
adjust_fit(0,0); |
| 3600 |
pickup tiny.nib; |
| 3601 |
path p[]; |
| 3602 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 3603 |
pos5(bar,90); pos5'(bar,90); pos6(bar,90); pos6'(bar,90); |
| 3604 |
bot y1=0; top y2=h; x1=x2=.5w; |
| 3605 |
cap_serifs_bl(1l); cap_serifs_br(1r); |
| 3606 |
top y3r=top y4r=h; rt x3r=w-u; lft x4r=u; |
| 3607 |
x6-x5=4u if bold_face:+u fi; y6=y6'=y5=y5'=.8[bar_height,x_height]; .5[x5,x6]=x1; |
| 3608 |
x5'=x1l; x6'=x1r; bskpoints(5,6,hair,hair); |
| 3609 |
{{numeric old; old:=stem; |
| 3610 |
save stem; stem:=if monospace: 2/3\\fi old; |
| 3611 |
p0:=reverse arm_top_r_points(2r,3).alt; p1:=arm_top_l_points(2l,4).alt; |
| 3612 |
}}; |
| 3613 |
filldraw z1l.b{down}..{left}z1l.c..z1l.a{right}..z1+ser_boule*up |
| 3614 |
..{right}z1r.a..z1r.c{left}..z1r.b---obl(6'l,1l,6l)---z6ll |
| 3615 |
..z6r---obl(6'r,6r,2r)---p0--p1---obl(5'r,2l,5rr)---z5rr |
| 3616 |
..z5l---obl(5'l,5l,1l)---cycle; |
| 3617 |
penlabels(1,2,5,5',6,6'); |
| 3618 |
endchar; |
| 3619 |
|
| 3620 |
charscription(14u,cap_height,0)( |
| 3621 |
path p[]; |
| 3622 |
pos1(cap_stem,0); pos2(cap_stem,0); pos3(cap_hair,180); pos4(cap_hair,180); |
| 3623 |
top y1=top y4=h; y2=y3=.45(x4-x1); |
| 3624 |
y2'l=-.5o; x2'l=.5[x2,x3]; |
| 3625 |
lft x1l=2u; x2=x1; rt x4r=w-2u; x3=x4; |
| 3626 |
p1:=z2l{down}...{up}z3l; p2:=z2r{down}...{up}z3r; |
| 3627 |
z2'l-z2'r=(((x2'l,h)--(x2'l,-h)) intersectionpoint p1)-(((x2'l,h)--(x2'l,-h)) intersectionpoint p2); |
| 3628 |
cap_serifs_tl(1l); cap_serifs_tr(1r); cap_serifs_tr(4l); cap_serifs_tl(4r); |
| 3629 |
filldraw z1l---z1l.a..{right}z1l.c..z1l.b---z2l...z2'l{right}...z3l---z4l.b..{right}z4l.c..z4l.a--- |
| 3630 |
z4r.a..{right}z4r.c..z4r.b---z3r...z2'r{left}...z2r---z1r.b..{right}z1r.c..z1r.a---cycle; |
| 3631 |
penlabels(1,2,2',3,4); |
| 3632 |
); |
| 3633 |
|
| 3634 |
iff known chars.latin_U: |
| 3635 |
bskchar "The letter U"; |
| 3636 |
beginchar(chars.latin_U,14u#,cap_height#,0); uni "0x0055"; |
| 3637 |
italcorr cap_height#*slant+.75u#; |
| 3638 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3639 |
pickup tiny.nib; |
| 3640 |
usechar; |
| 3641 |
math_fit(-1/3cap_height#*slant-u#,ic#-2u#); |
| 3642 |
endchar; |
| 3643 |
|
| 3644 |
iff known chars.latin_Uacute: |
| 3645 |
bskchar "The letter U with acute"; |
| 3646 |
beginchar(chars.latin_Uacute,14u#,Acc_height#,0); uni "0x00DA"; |
| 3647 |
italcorr cap_height#*slant+.75u#; |
| 3648 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3649 |
pickup tiny.nib; |
| 3650 |
usechar; |
| 3651 |
x101=x2'r-u; |
| 3652 |
acute(100,101).capital; |
| 3653 |
endchar; |
| 3654 |
|
| 3655 |
iff known chars.latin_Ugrave: |
| 3656 |
bskchar "The letter U with grave"; |
| 3657 |
beginchar(chars.latin_Ugrave,14u#,Acc_height#,0); uni "0x00D9"; |
| 3658 |
italcorr cap_height#*slant+.75u#; |
| 3659 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3660 |
pickup tiny.nib; |
| 3661 |
usechar; |
| 3662 |
x101=x2'r+u; |
| 3663 |
grave(100,101).capital; |
| 3664 |
endchar; |
| 3665 |
|
| 3666 |
iff known chars.latin_Udoublegrave: |
| 3667 |
bskchar "The letter U with double grave"; |
| 3668 |
beginchar(chars.latin_Udoublegrave,14u#,Acc_height#,0); uni "0x0214"; |
| 3669 |
italcorr cap_height#*slant+.75u#; |
| 3670 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3671 |
pickup tiny.nib; |
| 3672 |
usechar; |
| 3673 |
x102-x100=3u; x102=x2'r; |
| 3674 |
d_grave(100,101,102,103,whatever).capital; |
| 3675 |
endchar; |
| 3676 |
|
| 3677 |
iff known chars.latin_Umacron: |
| 3678 |
bskchar "The letter U with macron"; |
| 3679 |
beginchar(chars.latin_Umacron,14u#,Acc_height#-.1x_height#,0); uni "0x016A"; |
| 3680 |
italcorr cap_height#*slant+.75u#; |
| 3681 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3682 |
pickup tiny.nib; |
| 3683 |
usechar; |
| 3684 |
x100=x1r.a; x101=x4r.a; |
| 3685 |
macron(100,101); |
| 3686 |
endchar; |
| 3687 |
|
| 3688 |
iff known chars.latin_Ucaron: |
| 3689 |
bskchar "The letter U with caron"; |
| 3690 |
beginchar(chars.latin_Ucaron,14u#,Acc_height#,0); uni "0x01D3"; |
| 3691 |
italcorr cap_height#*slant+.75u#; |
| 3692 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3693 |
pickup tiny.nib; |
| 3694 |
usechar; |
| 3695 |
x101=x2'r+o; |
| 3696 |
hacek(100,101,102).capital; |
| 3697 |
endchar; |
| 3698 |
|
| 3699 |
iff known chars.latin_Ucircumflex: |
| 3700 |
bskchar "The letter U with circumflex"; |
| 3701 |
beginchar(chars.latin_Ucircumflex,14u#,Acc_height#,0); uni "0x00DB"; |
| 3702 |
italcorr cap_height#*slant+.75u#; |
| 3703 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3704 |
pickup tiny.nib; |
| 3705 |
usechar; |
| 3706 |
x101=x2'r; |
| 3707 |
circumflex(100,101,102).capital; |
| 3708 |
endchar; |
| 3709 |
|
| 3710 |
iff known chars.latin_Ubreve: |
| 3711 |
bskchar "The letter U with breve"; |
| 3712 |
beginchar(chars.latin_Ubreve,14u#,Acc_height#,0); uni "0x016C"; |
| 3713 |
italcorr cap_height#*slant+.75u#; |
| 3714 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3715 |
pickup tiny.nib; |
| 3716 |
usechar; |
| 3717 |
x101=x2'r+o; x102-x100=5u; |
| 3718 |
breve(100,101,102).capital; |
| 3719 |
endchar; |
| 3720 |
|
| 3721 |
iff known chars.latin_Uinvbreve: |
| 3722 |
bskchar "The letter U with inverted breve"; |
| 3723 |
beginchar(chars.latin_Uinvbreve,14u#,Acc_height#,0); uni "0x0216"; |
| 3724 |
italcorr cap_height#*slant+.75u#; |
| 3725 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3726 |
pickup tiny.nib; |
| 3727 |
usechar; |
| 3728 |
x101=x2'r; x102-x100=5u; bot y100=top y1+o; |
| 3729 |
tieacc(100,101,102).capital; |
| 3730 |
endchar; |
| 3731 |
|
| 3732 |
iff known chars.latin_Uhumlaut: |
| 3733 |
bskchar "The letter U with Hungarian umlaut"; |
| 3734 |
beginchar(chars.latin_Uhumlaut,14.3u#,Acc_height#,0); uni "0x0170"; |
| 3735 |
italcorr cap_height#*slant+.75u#; |
| 3736 |
adjust_fit(0,0); |
| 3737 |
pickup tiny.nib; |
| 3738 |
usechar; |
| 3739 |
x101-x100=3u; .5[x100,x101]=.5[x1r.a,x4r.a]+1.5u; |
| 3740 |
h_umlaut(100,101,102,103,2u).capital; |
| 3741 |
endchar; |
| 3742 |
|
| 3743 |
iff known chars.latin_Uring: |
| 3744 |
bskchar "The letter U with ring"; |
| 3745 |
beginchar(chars.latin_Uring,14u#,Acc_height#,0); uni "0x016E"; |
| 3746 |
italcorr cap_height#*slant+.75u#; |
| 3747 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3748 |
pickup tiny.nib; |
| 3749 |
usechar; |
| 3750 |
x100=x2'r; x100-x101=1.5u; bot y100=top y1+hair; |
| 3751 |
ring(100,101).capital; |
| 3752 |
endchar; |
| 3753 |
|
| 3754 |
iff known chars.latin_Utilde: |
| 3755 |
bskchar "The letter U with tilde"; |
| 3756 |
beginchar(chars.latin_Utilde,14u#,Acc_height#,0); uni "0x0168"; |
| 3757 |
italcorr cap_height#*slant+.75u#; |
| 3758 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3759 |
pickup tiny.nib; |
| 3760 |
usechar; |
| 3761 |
x101-x100=6u; bot y100=top y1+o; x.tilde=x2'r+o; |
| 3762 |
tilde(100,101).capital; |
| 3763 |
endchar; |
| 3764 |
|
| 3765 |
iff known chars.latin_Uumlaut: |
| 3766 |
bskchar "The letter U with umlaut"; |
| 3767 |
beginchar(chars.latin_Uumlaut,14u#,Acc_height#,0); uni "0x00DC"; |
| 3768 |
italcorr cap_height#*slant+.75u#; |
| 3769 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3770 |
pickup tiny.nib; |
| 3771 |
usechar; |
| 3772 |
x100=x1r; x101=x4; |
| 3773 |
umlaut(100,101); |
| 3774 |
endchar; |
| 3775 |
|
| 3776 |
iff known chars.latin_U_BB: |
| 3777 |
bskchar "The blackboard-bold letter U"; |
| 3778 |
beginchar(chars.latin_U_BB,14u#,cap_height#,0); uni "0x1D54C"; |
| 3779 |
italcorr cap_height#*slant+.75u#; |
| 3780 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3781 |
pickup tiny.nib; |
| 3782 |
usechar; |
| 3783 |
path p[]; numeric tim[]; |
| 3784 |
top z100=(x1l,y1l.c); |
| 3785 |
p100=z2l{down}..{right}z2'l...{up}z3l; |
| 3786 |
p101=z3r{down}..z2'r{left}..{up}z2r; |
| 3787 |
z101=bsktouch(p100,bbs*dir135,p101,dir-45); |
| 3788 |
tim100=xpart(p100 intersectiontimes (z101--(x101,0))); |
| 3789 |
tim101=xpart(p101 intersectiontimes (z101--(x101,y3))); |
| 3790 |
infill subpath(0,rundy(p100,(tim100,1.5bbw)).zpet) of p100 |
| 3791 |
..subpath(rundy(p101,(tim101,1.5bbw)),infinity) of p101 |
| 3792 |
---obl(1r,2r,1l)---z1l...obl(100,1l.c,2l)---cycle; |
| 3793 |
labels(101); |
| 3794 |
endchar; |
| 3795 |
|
| 3796 |
iff known chars.latin_U_SS: |
| 3797 |
bskchar "The sans-serif letter U"; |
| 3798 |
beginchar(chars.latin_U_SS,14u#,cap_height#,0); uni "0x1D5B4"; |
| 3799 |
italcorr cap_height#*slant+.75u#; |
| 3800 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3801 |
pickup tiny.nib; |
| 3802 |
path p[]; |
| 3803 |
pos1(cap_stem,0); pos2(cap_stem,0); pos3(cap_hair,180); pos4(cap_hair,180); |
| 3804 |
top y1=top y4=h; y2=y3=.45(x4-x1); |
| 3805 |
y2'l=-.5o; x2'l=.5[x2,x3]; |
| 3806 |
lft x1l=2u; x2=x1; rt x4r=w-2.5u; x3=x4; |
| 3807 |
p1:=z2l{down}...{up}z3l; p2:=z2r{down}...{up}z3r; |
| 3808 |
z2'l-z2'r=(((x2'l,h)--(x2'l,-h)) intersectionpoint p1)-(((x2'l,h)--(x2'l,-h)) intersectionpoint p2); |
| 3809 |
cap_serifs_tl(1l); cap_serifs_tr(1r); cap_serifs_tr(4l); cap_serifs_tl(4r); |
| 3810 |
y100l=y100r=.5[y4l.b,y4]; x100l=x4l; x100r=x4r; |
| 3811 |
filldraw z1..z1l.b---z2l...z2'l{right}...z3l---z100l...z4...z100r---z3r...z2'r{left}...z2r---z1r.b..cycle; |
| 3812 |
penlabels(1,2,2',3,4,100); |
| 3813 |
endchar; |
| 3814 |
|
| 3815 |
iff known chars.latin_Uogonek: |
| 3816 |
bskchar "The letter U with ogonek"; |
| 3817 |
beginchar(chars.latin_Uogonek,14u#,cap_height#,.85desc_depth#); uni "0x0172"; |
| 3818 |
italcorr cap_height#*slant+.75u#; |
| 3819 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3820 |
pickup tiny.nib; |
| 3821 |
path p[]; |
| 3822 |
pos1(cap_stem,0); pos2(cap_stem,0); pos3(cap_hair,180); pos4(cap_hair,180); |
| 3823 |
pos5(stem,0); pos6(curve,0); pos7(hair,45); pos8(hair,160); |
| 3824 |
top y1=top y4=h; y2=y3=.45(x4-x1); |
| 3825 |
y2'l=-.5o; x2'l=.5[x2,x3]; |
| 3826 |
lft x1l=2u; x2=x1; rt x4r=w-2u; x3=x4; |
| 3827 |
x5=x6l+1.5u; x5l=x2'r; x7-x6l=3u; rt x8l=x7+1.5u; |
| 3828 |
bot y5=0; y6=-.5d; bot y7l=-d; y8=-2/3d; |
| 3829 |
p1:=z2l{down}...{up}z3l; p2:=z2r{down}...{up}z3r; |
| 3830 |
z2'l-z2'r=(((x2'l,h)--(x2'l,-h)) intersectionpoint p1)-(((x2'l,h)--(x2'l,-h)) intersectionpoint p2); |
| 3831 |
p2:=z2l{down}...z2'l{right}...{up}z3l; |
| 3832 |
p3:=z5l{z6l-z5r}..z6l...z7l..{z5-z6}z8l..z8r{z6-z5}..z7r..z6r..z5r; |
| 3833 |
cap_serifs_tl(1l); cap_serifs_tr(1r); cap_serifs_tr(4l); cap_serifs_tl(4r); |
| 3834 |
filldraw z1l---z1l.a..{right}z1l.c..z1l.b |
| 3835 |
---subpath (0,rundy(p2,(1,stem)).zpet) of p2 |
| 3836 |
..subpath(rundy(p3,(0,stem)),rundy(p3,infinity).zpet) of p3 |
| 3837 |
..subpath(rundy(p2,1),infinity) of p2---z4l.b..{right}z4l.c..z4l.a |
| 3838 |
---z4r.a..{right}z4r.c..z4r.b---z3r...z2'r{left}...z2r |
| 3839 |
---z1r.b..{right}z1r.c..z1r.a---cycle; |
| 3840 |
penlabels(1,2,2',3,4,5,6,7,8); |
| 3841 |
endchar; |
| 3842 |
|
| 3843 |
charscription(14u,cap_height,0)( |
| 3844 |
lft x1l=2u; rt x2r=w-2u; top y1l=top y2r=h; |
| 3845 |
x3l=.5w+o; bot y3l=-apex_o; |
| 3846 |
left_stem=cap_stem; |
| 3847 |
right_stem=cap_hair; |
| 3848 |
alpha=diag_ratio(2,left_stem,y1l-y3l,x3l-x1l); |
| 3849 |
pos1(alpha*left_stem,0); pos2(alpha*right_stem,0); |
| 3850 |
pos1'(alpha*left_stem,0); pos2'(alpha*right_stem,0); |
| 3851 |
pos4(.65cap_hair,90); pos5(.65cap_hair,90); |
| 3852 |
z1'l=z3l=z2'r; |
| 3853 |
z3'=whatever[z1'r,z1r]=whatever[z2'l,z2l]; |
| 3854 |
y3'l=y3'r=y3'+.25[cap_hair,cap_stem]; |
| 3855 |
z3'l=whatever[z3',z1r]; z3'r=whatever[z3',z2l]; |
| 3856 |
cap_serifs_tl(1l); cap_serifs_tr(1r); cap_serifs_tr(2r); cap_serifs_tl(2l); |
| 3857 |
filldraw z1l--z1l.a{left}..{right}z1l.c..diag_serif(1l,3l)--z3l-- |
| 3858 |
diag_serif(2r,3l)..{right}z2r.c..z2r.a---z2l.a..{right}z2l.c |
| 3859 |
..diag_serif(2l,3')---z3'r..z3'l---diag_serif(1r,3') |
| 3860 |
..z1r.c{right}..z1r.a---cycle; |
| 3861 |
penlabels(1,1',2,2',3,3',4,5,6,7); |
| 3862 |
); |
| 3863 |
|
| 3864 |
iff known chars.latin_V: |
| 3865 |
bskchar "The letter V"; |
| 3866 |
beginchar(chars.latin_V,14u#,cap_height#,0); uni "0x0056"; |
| 3867 |
italcorr cap_height#*slant+.75u#; |
| 3868 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3869 |
numeric alpha, right_stem, left_stem; |
| 3870 |
pickup tiny.nib; |
| 3871 |
usechar; |
| 3872 |
math_fit(-cap_height#*slant,ic#-5u#); |
| 3873 |
endchar; |
| 3874 |
|
| 3875 |
iff known chars.latin_V_BB: |
| 3876 |
bskchar "The blackboard-bold letter V"; |
| 3877 |
beginchar(chars.latin_V_BB,14u#,cap_height#,0); uni "0x1D54D"; |
| 3878 |
italcorr cap_height#*slant+.75u#; |
| 3879 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3880 |
numeric alpha, right_stem, left_stem; |
| 3881 |
pickup tiny.nib; |
| 3882 |
usechar; |
| 3883 |
oblu.more:=3oblu; |
| 3884 |
top y100=y1l.c; z100=whatever[z1l.bb,z3l]; |
| 3885 |
infill z1l.bb---ifobl(3l,3',1l.bb,1r.bb,more,)---z1r.bb |
| 3886 |
..obl(1r,3',1l)---z1l...obl(100,1l.c,1l.bb)---cycle; |
| 3887 |
math_fit(0,ic#-3u#); |
| 3888 |
endchar; |
| 3889 |
|
| 3890 |
iff known chars.latin_V_SS: |
| 3891 |
bskchar "The sans-serif letter V"; |
| 3892 |
beginchar(chars.latin_V_SS,13.5u#,cap_height#,0); uni "0x1D5B5"; |
| 3893 |
italcorr cap_height#*slant+.25u#; |
| 3894 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3895 |
numeric alpha, right_stem, left_stem; |
| 3896 |
pickup tiny.nib; |
| 3897 |
lft x1l=2u; rt x2r=w-1.5u; top y1l=top y2r=h; |
| 3898 |
x3l=.5w+o; bot y3l=-apex_o; |
| 3899 |
left_stem=cap_stem; |
| 3900 |
right_stem=cap_hair; |
| 3901 |
alpha=diag_ratio(2,left_stem,y1l-y3l,x3l-x1l); |
| 3902 |
pos1(alpha*left_stem,0); pos2(alpha*right_stem,0); |
| 3903 |
pos1'(alpha*left_stem,0); pos2'(alpha*right_stem,0); |
| 3904 |
pos4(.65cap_hair,90); pos5(.65cap_hair,90); |
| 3905 |
z1'l=z3l=z2'r; |
| 3906 |
z3'=whatever[z1'r,z1r]=whatever[z2'l,z2l]; |
| 3907 |
y3'l=y3'r=y3'+.25[cap_hair,cap_stem]; |
| 3908 |
z3'l=whatever[z3',z1r]; z3'r=whatever[z3',z2l]; |
| 3909 |
cap_serifs_tl(1l); cap_serifs_tr(1r); cap_serifs_tr(2r); cap_serifs_tl(2l); |
| 3910 |
y100l=y100r=y101l=y101r=.5[y1l.b,y1]; |
| 3911 |
z100l=whatever[z1l,z3l]; z100r=whatever[z1r,z3']; |
| 3912 |
z101l=whatever[z3',z2l]; z101r=whatever[z2r,z3l]; |
| 3913 |
filldraw z1..z100l---z3l---z101r...z2...z101l---z3'r..z3'l---z100r..cycle; |
| 3914 |
penlabels(1,1',2,2',3,3',4,5,6,7); |
| 3915 |
math_fit(0,ic#-2u#); |
| 3916 |
endchar; |
| 3917 |
|
| 3918 |
charscription(19u,cap_height,0)( |
| 3919 |
numeric alpha[], right_stem, left_stem; |
| 3920 |
oblu:=2oblu; |
| 3921 |
lft x1l=2u; rt x2r=w-2u; top y1l=top y2r=h; |
| 3922 |
x3=.5w if monospace: +.5(cap_stem-cap_hair) fi; top y3=h if monospace and (x2r-x1l<4cap_stem): -1/3(x2r-x1l) else: +o fi; .5[x4,x5]=x3; x5-x4=.37w; |
| 3923 |
bot y4=bot y5=-apex_o; |
| 3924 |
left_stem=cap_stem; |
| 3925 |
right_stem=cap_hair; |
| 3926 |
alpha1=diag_ratio(1,left_stem,y1l-y4,x4-x1l); |
| 3927 |
alpha2=diag_ratio(1,right_stem,y2r-y5,x2r-x5); |
| 3928 |
alpha3=diag_ratio(1,left_stem,y3-y5,x5-x3); |
| 3929 |
alpha4=diag_ratio(1,right_stem,y3-y4,x3-x4); |
| 3930 |
pos1(alpha1*left_stem,0); pos2(alpha2*right_stem,0); |
| 3931 |
cap_serifs_tl(1l); cap_serifs_tr(1r); |
| 3932 |
cap_serifs_tl(2l); cap_serifs_tr(2r); |
| 3933 |
bot y1'=bot y2'=-o; z1'=z1r+whatever*(z1l-z4); z2'=z2l+whatever*(z2r-z5); |
| 3934 |
y5'=y4'=y3; x3-x5'=alpha3*(left_stem-tiny); x4'-x3=alpha4*(right_stem-tiny); |
| 3935 |
z0=whatever[z4,z4']=whatever[z5,z5']; |
| 3936 |
z2''=whatever[z2l,z2']=whatever[z3,z5+(x3-x5')*right]; |
| 3937 |
z1''=whatever[z1r,z1']=whatever[z3,z4+(x4'-x3)*left]; |
| 3938 |
filldraw z1l.a..{right}z1l.c..diag_serif(1l,4)---z4--- |
| 3939 |
obl(0,4,5)---z5---diag_serif(2r,5)..{right}z2r.c |
| 3940 |
..z2r.a---z2l.a..{right}z2l.c..diag_serif(2l,2')--- |
| 3941 |
obl(2'',2l,3)---z3---obl(1'',3,1r)--- |
| 3942 |
diag_serif(1r,1'')..z1r.c{right}..z1r.a--cycle; |
| 3943 |
penlabels(1,2,3,4,5,6,7); labels(0,1',1'',2',2'',4',5'); |
| 3944 |
); |
| 3945 |
|
| 3946 |
iff known chars.latin_W: |
| 3947 |
bskchar "The letter W"; |
| 3948 |
beginchar(chars.latin_W,19u#,cap_height#,0); uni "0x0057"; |
| 3949 |
italcorr cap_height#*slant+.75u#; |
| 3950 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3951 |
pickup tiny.nib; |
| 3952 |
usechar; |
| 3953 |
math_fit(-cap_height#*slant,ic#-5u#); |
| 3954 |
endchar; |
| 3955 |
|
| 3956 |
iff known chars.latin_Wcircumflex: |
| 3957 |
bskchar "The letter W with circumflex"; |
| 3958 |
beginchar(chars.latin_Wcircumflex,19u#,Acc_height#,0); uni "0x0174"; |
| 3959 |
italcorr cap_height#*slant+.75u#; |
| 3960 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3961 |
pickup tiny.nib; |
| 3962 |
usechar; |
| 3963 |
x101=x4'; |
| 3964 |
circumflex(100,101,102).capital; |
| 3965 |
endchar; |
| 3966 |
|
| 3967 |
iff known chars.latin_Wgrave: |
| 3968 |
bskchar "The letter W with grave"; |
| 3969 |
beginchar(chars.latin_Wgrave,19u#,Acc_height#,0); uni "0x1E80"; |
| 3970 |
italcorr cap_height#*slant+.75u#; |
| 3971 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3972 |
pickup tiny.nib; |
| 3973 |
usechar; |
| 3974 |
.5[x101,x100]=x4'; |
| 3975 |
grave(100,101).capital; |
| 3976 |
endchar; |
| 3977 |
|
| 3978 |
iff known chars.latin_Wacute: |
| 3979 |
bskchar "The letter W with acute"; |
| 3980 |
beginchar(chars.latin_Wacute,19u#,Acc_height#,0); uni "0x1E82"; |
| 3981 |
italcorr cap_height#*slant+.75u#; |
| 3982 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3983 |
pickup tiny.nib; |
| 3984 |
usechar; |
| 3985 |
.5[x101,x100]=x4'; |
| 3986 |
acute(100,101).capital; |
| 3987 |
endchar; |
| 3988 |
|
| 3989 |
iff known chars.latin_Wumlaut: |
| 3990 |
bskchar "The letter W with umlaut"; |
| 3991 |
beginchar(chars.latin_Wumlaut,19u#,Acc_height#,0); uni "0x1E84"; |
| 3992 |
italcorr cap_height#*slant+.75u#; |
| 3993 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 3994 |
pickup tiny.nib; |
| 3995 |
usechar; |
| 3996 |
.5[x100,x101]=x4'; lft x101=x1''; |
| 3997 |
umlaut(100,101); |
| 3998 |
endchar; |
| 3999 |
|
| 4000 |
iff known chars.latin_W_BB: |
| 4001 |
bskchar "The blackboard-bold letter W"; |
| 4002 |
beginchar(chars.latin_W_BB,19u#,cap_height#,0); uni "0x1D54E"; |
| 4003 |
italcorr cap_height#*slant+.75u#; |
| 4004 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 4005 |
pickup tiny.nib; |
| 4006 |
usechar; |
| 4007 |
oblu:=f_obl; |
| 4008 |
oblu.more:=3f_obl; |
| 4009 |
top y100=y1l.c; z100=whatever[z1l.bb,z4]; |
| 4010 |
infill ifobl(4,1'',1l.bb,1r.bb,more,)---z1r.bb |
| 4011 |
..obl(1r,1'',1l)---z1l...obl(100,1l.c,1l.bb)---cycle; |
| 4012 |
infill ifobl(3,0,2'',5,more,)---ifobl(5,2'',0,3,more,)---cycle; |
| 4013 |
math_fit(0,ic#-3u#); |
| 4014 |
endchar; |
| 4015 |
|
| 4016 |
iff known chars.latin_W_SS: |
| 4017 |
bskchar "The sans-serif letter W"; |
| 4018 |
beginchar(chars.latin_W_SS,18u#,cap_height#,0); uni "0x1D5B6"; |
| 4019 |
italcorr cap_height#*slant; |
| 4020 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 4021 |
pickup tiny.nib; |
| 4022 |
numeric alpha[], right_stem, left_stem; |
| 4023 |
oblu:=2oblu; |
| 4024 |
lft x1l=2u; rt x2r=w-2u; top y1l=top y2r=h; |
| 4025 |
x3=.5w if monospace: +.5(cap_stem-cap_hair) fi; top y3=h if monospace and (x2r-x1l<4cap_stem): -1/3(x2r-x1l) else: +o fi; .5[x4,x5]=x3; x5-x4=.37w; |
| 4026 |
bot y4=bot y5=-apex_o; |
| 4027 |
left_stem=cap_stem; |
| 4028 |
right_stem=cap_hair; |
| 4029 |
alpha1=diag_ratio(1,left_stem,y1l-y4,x4-x1l); |
| 4030 |
alpha2=diag_ratio(1,right_stem,y2r-y5,x2r-x5); |
| 4031 |
alpha3=diag_ratio(1,left_stem,y3-y5,x5-x3); |
| 4032 |
alpha4=diag_ratio(1,right_stem,y3-y4,x3-x4); |
| 4033 |
pos1(alpha1*left_stem,0); pos2(alpha2*right_stem,0); |
| 4034 |
cap_serifs_tl(1l); cap_serifs_tr(1r); |
| 4035 |
cap_serifs_tl(2l); cap_serifs_tr(2r); |
| 4036 |
bot y1'=bot y2'=-o; z1'=z1r+whatever*(z1l-z4); z2'=z2l+whatever*(z2r-z5); |
| 4037 |
y5'=y4'=y3; x3-x5'=alpha3*(left_stem-tiny); x4'-x3=alpha4*(right_stem-tiny); |
| 4038 |
z0=whatever[z4,z4']=whatever[z5,z5']; |
| 4039 |
z2''=whatever[z2l,z2']=whatever[z3,z5+(x3-x5')*right]; |
| 4040 |
z1''=whatever[z1r,z1']=whatever[z3,z4+(x4'-x3)*left]; |
| 4041 |
y100l=y100r=y101l=y101r=.5[y1l.b,y1]; |
| 4042 |
z100l=whatever[z1l,z4]; z100r=whatever[z1r,z1'']; |
| 4043 |
z101l=whatever[z2'',z2l]; z101r=whatever[z2r,z5]; |
| 4044 |
filldraw z1..z100l---z4---obl(0,4,5)---z5---z101r...z2...z101l---obl(2'',2l,3)---z3 |
| 4045 |
---obl(1'',3,1r)---z100r..cycle; |
| 4046 |
penlabels(1,2,3,4,5,6,7); labels(0,1',1'',2',2'',4',5'); |
| 4047 |
math_fit(0,ic#-2u#); |
| 4048 |
endchar; |
| 4049 |
|
| 4050 |
iff known chars.sign_won: |
| 4051 |
bskchar "Won sign"; |
| 4052 |
beginchar(chars.sign_won,19u#,cap_height#,0); uni "0x20A9"; |
| 4053 |
italcorr cap_height#*slant+.75u#; |
| 4054 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 4055 |
pickup tiny.nib; |
| 4056 |
numeric alpha[], right_stem, left_stem; |
| 4057 |
oblu:=2oblu; |
| 4058 |
pos8(hair,90); pos9(hair,90); pos10(hair,90); pos11(hair,90); |
| 4059 |
lft x1l=2u; rt x2r=w-2u; top y1l=top y2r=h; |
| 4060 |
x3=.5w if monospace: +.5(cap_stem-cap_hair) fi; top y3=h if monospace and (x2r-x1l<4cap_stem): -1/3(x2r-x1l) else: +o fi; .5[x4,x5]=x3; x5-x4=.37w; |
| 4061 |
bot y4=bot y5=-apex_o; |
| 4062 |
left_stem=cap_stem; |
| 4063 |
right_stem=cap_hair; |
| 4064 |
alpha1=diag_ratio(1,left_stem,y1l-y4,x4-x1l); |
| 4065 |
alpha2=diag_ratio(1,right_stem,y2r-y5,x2r-x5); |
| 4066 |
alpha3=diag_ratio(1,left_stem,y3-y5,x5-x3); |
| 4067 |
alpha4=diag_ratio(1,right_stem,y3-y4,x3-x4); |
| 4068 |
pos1(alpha1*left_stem,0); pos2(alpha2*right_stem,0); |
| 4069 |
cap_serifs_tl(1l); cap_serifs_tr(1r); |
| 4070 |
cap_serifs_tl(2l); cap_serifs_tr(2r); |
| 4071 |
bot y1'=bot y2'=-o; z1'=z1r+whatever*(z1l-z4); z2'=z2l+whatever*(z2r-z5); |
| 4072 |
y5'=y4'=y3; x3-x5'=alpha3*(left_stem-tiny); x4'-x3=alpha4*(right_stem-tiny); |
| 4073 |
z0=whatever[z4,z4']=whatever[z5,z5']; |
| 4074 |
z2''=whatever[z2l,z2']=whatever[z3,z5+(x3-x5')*right]; |
| 4075 |
z1''=whatever[z1r,z1']=whatever[z3,z4+(x4'-x3)*left]; |
| 4076 |
y8=y9=x_height; y10=y11=bar_height; |
| 4077 |
lft x8=lft x10=u; rt x9=rt x11=w-u; |
| 4078 |
y8'r=y8''r=y8'''r=y9'r=y9''r=y9'''r=y8r; y8'l=y8''l=y8'''l=y9'l=y9''l=y9'''l=y8l; |
| 4079 |
y10'r=y11'r=y10r; y10'l=y11'l=y10l; |
| 4080 |
z8'r=whatever[z1l,z4]; z8'l=whatever[z1l,z4]; z10'r=whatever[z1l,z4]; z10'l=whatever[z1l,z4]; |
| 4081 |
z9'r=whatever[z2r,z5]; z9'l=whatever[z2r,z5]; z11'r=whatever[z2r,z5]; z11'l=whatever[z2r,z5]; |
| 4082 |
z9''r=whatever[z2'',z2l]; z9''l=whatever[z2'',z2l]; z9'''r=whatever[z2'',z3]; z9'''l=whatever[z2'',z3]; |
| 4083 |
z8''r=whatever[z1'',z1r]; z8''l=whatever[z1'',z1r]; z8'''r=whatever[z1'',z3]; z8'''l=whatever[z1'',z3]; |
| 4084 |
filldraw z1l.a..{right}z1l.c..diag_serif(1l,4)---obl(8'r,1l,8r)---z8r |
| 4085 |
..z8l---obl(8'l,8l,10'r)---obl(10'r,8'l,10r)---z10r..z10l---obl(10'l,10l,4) |
| 4086 |
---z4---obl(0,4,5)---z5---obl(11'l,5,11l)---z11l..z11r---obl(11'r,11r,9'l) |
| 4087 |
---obl(9'l,11'l,9l)---z9l..z9r---obl(9'r,9r,2r)---diag_serif(2r,5) |
| 4088 |
..{right}z2r.c..z2r.a---z2l.a..{right}z2l.c..diag_serif(2l,2') |
| 4089 |
---obl(9''r,2l,9'''r)---obl(9'''r,9''r,3)---z3---obl(8'''r,3,8''r) |
| 4090 |
---obl(8''r,8'''r,1r)---diag_serif(1r,1'')..z1r.c{right}..z1r.a--cycle; |
| 4091 |
infill obl(9''l,9'''l,2'')---obl(2'',9''l,9'''l)---obl(9'''l,2'',9''l)---cycle; |
| 4092 |
infill obl(8''l,8'''l,1'')---obl(1'',8''l,8'''l)---obl(8'''l,1'',8''l)---cycle; |
| 4093 |
penlabels(1,2,3,4,5,6,7,8,9,10,11); labels(0,1',1'',2',2'',4',5'); |
| 4094 |
endchar; |
| 4095 |
|
| 4096 |
charscription(15u,cap_height,0)( |
| 4097 |
oblu:=1.5oblu; |
| 4098 |
numeric alpha[]; |
| 4099 |
lft x1l=2.5u; top y1l=h; rt x2r=w-2u; bot y2r=0; |
| 4100 |
x3r=w-x1l; top y3r=h; lft x4l=2u; bot y4l=0; |
| 4101 |
alpha1=diag_ratio(2,cap_stem,y1l-y2r,x1l-x2r); |
| 4102 |
alpha2=diag_ratio(1,cap_hair,y3r-y4l,x3r-x4l); |
| 4103 |
pos1(alpha1*cap_stem,0); pos2(alpha1*cap_stem,0); |
| 4104 |
pos3(alpha2*cap_hair,0); pos4(alpha2*cap_hair,0); |
| 4105 |
cap_serifs_tl(1l); cap_serifs_tr(1r); cap_serifs_bl(2l); cap_serifs_br(2r); |
| 4106 |
cap_serifs_tl(3l); cap_serifs_tr(3r); cap_serifs_bl(4l); cap_serifs_br(4r); |
| 4107 |
z1'=whatever[z1l,z2l]=whatever[z3l,z4l]; |
| 4108 |
z2'=whatever[z1r,z2r]=whatever[z3r,z4r]; |
| 4109 |
z3'=whatever[z1r,z2r]=whatever[z3l,z4l]; |
| 4110 |
z4'=whatever[z1l,z2l]=whatever[z3r,z4r]; |
| 4111 |
filldraw z1l.a..{right}z1l.c..diag_serif(1l,2l)---obl(1',1l,4l)--- |
| 4112 |
diag_serif(4l,1')..{left}z4l.c..z4l.a{right}..z4+ser_boule*up.. |
| 4113 |
{right}z4r.a..{left}z4r.c..diag_serif(4r,4')---obl(4',4r,2l)--- |
| 4114 |
diag_serif(2l,1l)..{left}z2l.c..z2l.a{right}..z2+ser_boule*up.. |
| 4115 |
{right}z2r.a..{left}z2r.c..diag_serif(2r,1r)---obl(2',2r,3r)--- |
| 4116 |
diag_serif(3r,2')..{right}z3r.c..z3r.a---z3l.a.. |
| 4117 |
{right}z3l.c..diag_serif(3l,3')---obl(3',3l,1r)--- |
| 4118 |
diag_serif(1r,3')..{right}z1r.c..z1r.a---cycle; |
| 4119 |
penlabels(1,2,3,4); labels(1',2',3',4',5'); |
| 4120 |
); |
| 4121 |
|
| 4122 |
iff known chars.latin_X: |
| 4123 |
bskchar "The letter X"; |
| 4124 |
beginchar(chars.latin_X,15u#,cap_height#,0); uni "0x0058"; |
| 4125 |
italcorr cap_height#*slant+.4u#; |
| 4126 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 4127 |
pickup tiny.nib; |
| 4128 |
usechar; |
| 4129 |
math_fit(0,u#); |
| 4130 |
endchar; |
| 4131 |
|
| 4132 |
iff known chars.latin_X_BB: |
| 4133 |
bskchar "The blackboard-bold letter X"; |
| 4134 |
beginchar(chars.latin_X_BB,15u#,cap_height#,0); uni "0x1D54F"; |
| 4135 |
italcorr cap_height#*slant+.4u#; |
| 4136 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 4137 |
pickup tiny.nib; |
| 4138 |
usechar; |
| 4139 |
oblu:=f_obl; |
| 4140 |
top y100=y1l.c; bot y101=y2r.c; z100=whatever[z1l.bb,z2l]; z101=whatever[z2r.bb,z1r]; |
| 4141 |
infill obl(100,1l.c,2l)---obl(2l,100,2r)---z2r...obl(101,2r.c,1r)---obl(1r,101,1l)---z1l...cycle; |
| 4142 |
endchar; |
| 4143 |
|
| 4144 |
iff known chars.latin_X_SS: |
| 4145 |
bskchar "The sans-serif letter X"; |
| 4146 |
beginchar(chars.latin_X_SS,13u#,cap_height#,0); uni "0x1D5B7"; |
| 4147 |
italcorr cap_height#*slant; |
| 4148 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 4149 |
pickup tiny.nib; |
| 4150 |
oblu:=1.5oblu; |
| 4151 |
numeric alpha[]; |
| 4152 |
lft x1l=2u; top y1l=h; x2r=w-x4l; bot y2r=0; |
| 4153 |
x3r=w-x1l; top y3r=h; x4l=x1l-.5u; bot y4l=0; |
| 4154 |
alpha1=diag_ratio(2,cap_stem,y1l-y2r,x1l-x2r); |
| 4155 |
alpha2=diag_ratio(1,cap_hair,y3r-y4l,x3r-x4l); |
| 4156 |
pos1(alpha1*cap_stem,0); pos2(alpha1*cap_stem,0); |
| 4157 |
pos3(alpha2*cap_hair,0); pos4(alpha2*cap_hair,0); |
| 4158 |
cap_serifs_tl(1l); cap_serifs_tr(1r); cap_serifs_bl(2l); cap_serifs_br(2r); |
| 4159 |
cap_serifs_tl(3l); cap_serifs_tr(3r); cap_serifs_bl(4l); cap_serifs_br(4r); |
| 4160 |
z1'=whatever[z1l,z2l]=whatever[z3l,z4l]; |
| 4161 |
z2'=whatever[z1r,z2r]=whatever[z3r,z4r]; |
| 4162 |
z3'=whatever[z1r,z2r]=whatever[z3l,z4l]; |
| 4163 |
z4'=whatever[z1l,z2l]=whatever[z3r,z4r]; |
| 4164 |
y100l=y100r=y101l=y101r=.5[y1l.b,y1]; |
| 4165 |
y102l=y102r=y103l=y103r=.5[y2l.b,y2]; |
| 4166 |
z100l=whatever[z1l,z2l]; z100r=whatever[z1r,z2r]; |
| 4167 |
z101l=whatever[z4l,z3l]; z101r=whatever[z4r,z3r]; |
| 4168 |
z102l=whatever[z1l,z2l]; z102r=whatever[z1r,z2r]; |
| 4169 |
z103l=whatever[z4l,z3l]; z103r=whatever[z4r,z3r]; |
| 4170 |
filldraw z100l---obl(1',1l,4l)---z103l...z4...z103r---obl(4',4r,2l)---z102l..z2..z102r |
| 4171 |
---obl(2',2r,3r)---z101r...z3...z101l---obl(3',3l,1r)---z100r..z1..cycle; |
| 4172 |
penlabels(1,2,3,4,100,101,102,103); labels(1',2',3',4',5'); |
| 4173 |
endchar; |
| 4174 |
|
| 4175 |
charscription(14u,cap_height,0)( |
| 4176 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 4177 |
bot y1=0; top y2=.5h; x1=x2=.5w; |
| 4178 |
pos3(whatever,0); pos4(whatever,0); |
| 4179 |
lft x3l=2u; rt x4r=w-2u; top y3l=top y4r=h; |
| 4180 |
z3r=z2r+whatever*(z3l-z2l); z4l'=z2r+(0,cap_hair-tiny) rotated (angle(z4r-z2r)); |
| 4181 |
z4l=z4l'+whatever*(z4r-z2r); z2'=whatever[z4l',z4l]=whatever[z2r,z3r]; |
| 4182 |
z0'=z2r+(u,0) rotated (angle(z4r-z2r)); z0'''=z2l+(u,0) rotated (angle(z3l-z2l)); |
| 4183 |
z0''=z2'+(u,0) rotated (angle(z4l-z2')); z0''''=z2'+(u,0) rotated (angle(z3r-z2r)); |
| 4184 |
cap_serifs_bl(1l); cap_serifs_br(1r); cap_serifs_tl(3l); cap_serifs_tr(3r); cap_serifs_tr(4r); cap_serifs_tl(4l); |
| 4185 |
filldraw z1l.b{down}..{left}z1l.c..z1l.a{right}..z1+ser_boule*up.. |
| 4186 |
{right}z1r.a..z1r.c{left}..z1r.b---z2r+u*down..z0'--- |
| 4187 |
diag_serif(4r,2r)..{right}z4r.c..z4r.a---z4l.a.. |
| 4188 |
{right}z4l.c..diag_serif(4l,4l')---z0''...z0''''--- |
| 4189 |
diag_serif(3r,2')..{right}z3r.c..z3r.a---z3l.a.. |
| 4190 |
{right}z3l.c..diag_serif(3l,2l)---z0'''..z2l+u*down--cycle; |
| 4191 |
penlabels(1,2,3,4); labels(0',0'',0''',0,0'''',2',4l'); |
| 4192 |
); |
| 4193 |
|
| 4194 |
iff known chars.latin_Y: |
| 4195 |
bskchar "The letter Y"; |
| 4196 |
beginchar(chars.latin_Y,14u#,cap_height#,0); uni "0x0059"; |
| 4197 |
italcorr cap_height#*slant+.5u#; |
| 4198 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 4199 |
pickup tiny.nib; |
| 4200 |
usechar; |
| 4201 |
math_fit(-cap_height#*slant,ic#-4.5u#); |
| 4202 |
endchar; |
| 4203 |
|
| 4204 |
iff known chars.latin_Ygrave: |
| 4205 |
bskchar "The letter Y with grave"; |
| 4206 |
beginchar(chars.latin_Ygrave,14u#,Acc_height#,0); uni "0x1EF2"; |
| 4207 |
italcorr cap_height#*slant+.75u#; |
| 4208 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 4209 |
pickup tiny.nib; |
| 4210 |
usechar; |
| 4211 |
x101=x2+u; |
| 4212 |
grave(100,101).capital; |
| 4213 |
endchar; |
| 4214 |
|
| 4215 |
iff known chars.latin_Yacute: |
| 4216 |
bskchar "The letter Y with acute"; |
| 4217 |
beginchar(chars.latin_Yacute,14u#,Acc_height#,0); uni "0x00DD"; |
| 4218 |
italcorr cap_height#*slant+.75u#; |
| 4219 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 4220 |
pickup tiny.nib; |
| 4221 |
usechar; |
| 4222 |
x101=x2-u; |
| 4223 |
acute(100,101).capital; |
| 4224 |
endchar; |
| 4225 |
|
| 4226 |
iff known chars.latin_Ymacron: |
| 4227 |
bskchar "The letter Y with macron"; |
| 4228 |
beginchar(chars.latin_Ymacron,14u#,Acc_height#-.1x_height#,0); uni "0x0232"; |
| 4229 |
italcorr cap_height#*slant+.75u#; |
| 4230 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 4231 |
pickup tiny.nib; |
| 4232 |
usechar; |
| 4233 |
x100=x3r.a; x101=x4l.a; |
| 4234 |
macron(100,101); |
| 4235 |
endchar; |
| 4236 |
|
| 4237 |
iff known chars.latin_Yumlaut: |
| 4238 |
bskchar "The letter Y with umlaut"; |
| 4239 |
beginchar(chars.latin_Yumlaut,14u#,Acc_height#,0); uni "0x0178"; |
| 4240 |
italcorr cap_height#*slant+.75u#; |
| 4241 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 4242 |
pickup tiny.nib; |
| 4243 |
usechar; |
| 4244 |
x100=x3r; x101=x4l; |
| 4245 |
umlaut(100,101); |
| 4246 |
endchar; |
| 4247 |
|
| 4248 |
iff known chars.latin_Ycircumflex: |
| 4249 |
bskchar "The letter Y with circumflex"; |
| 4250 |
beginchar(chars.latin_Ycircumflex,14u#,Acc_height#,0); uni "0x0176"; |
| 4251 |
italcorr cap_height#*slant+.75u#; |
| 4252 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 4253 |
pickup tiny.nib; |
| 4254 |
usechar; |
| 4255 |
x101=x2+o; |
| 4256 |
circumflex(100,101,102).capital; |
| 4257 |
endchar; |
| 4258 |
|
| 4259 |
iff known chars.latin_Y_BB: |
| 4260 |
bskchar "The blackboard-bold letter Y"; |
| 4261 |
beginchar(chars.latin_Y_BB,14u#,cap_height#,0); uni "0x1D550"; |
| 4262 |
italcorr cap_height#*slant+.75u#; |
| 4263 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 4264 |
pickup tiny.nib; |
| 4265 |
usechar; |
| 4266 |
bot z100=(x1r,y1r.c); top y101=y3l.c; z101=whatever[z3l.bb,z2l]; |
| 4267 |
infill obl(3r,3l,2r)---obl(2r,3r,1r)---obl(100,2r,1r.c)...z1r---obl(1l,1r,2l)---obl(2l,1l,3l)---obl(101,2l,3l.c)...z3l---cycle; |
| 4268 |
math_fit(0,ic#-3u#); |
| 4269 |
endchar; |
| 4270 |
|
| 4271 |
iff known chars.latin_Y_SS: |
| 4272 |
bskchar "The sans-serif letter Y"; |
| 4273 |
beginchar(chars.latin_Y_SS,14u#,cap_height#,0); uni "0x1D5B8"; |
| 4274 |
italcorr cap_height#*slant; |
| 4275 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 4276 |
pickup tiny.nib; |
| 4277 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 4278 |
bot y1=0; top y2=.5h; x1=x2=.5w; |
| 4279 |
pos3(whatever,0); pos4(whatever,0); |
| 4280 |
lft x3l=2u; rt x4r=w-2u; top y3l=top y4r=h; |
| 4281 |
z3r=z2r+whatever*(z3l-z2l); z4l'=z2r+(0,cap_hair-tiny) rotated (angle(z4r-z2r)); |
| 4282 |
z4l=z4l'+whatever*(z4r-z2r); z2'=whatever[z4l',z4l]=whatever[z2r,z3r]; |
| 4283 |
z0'=z2r+(u,0) rotated (angle(z4r-z2r)); z0'''=z2l+(u,0) rotated (angle(z3l-z2l)); |
| 4284 |
z0''=z2'+(u,0) rotated (angle(z4l-z2')); z0''''=z2'+(u,0) rotated (angle(z3r-z2r)); |
| 4285 |
cap_serifs_bl(1l); cap_serifs_br(1r); cap_serifs_tl(3l); cap_serifs_tr(3r); cap_serifs_tr(4r); cap_serifs_tl(4l); |
| 4286 |
y100l=y100r=y101l=y101r=.5[y3l.b,y3]; |
| 4287 |
z100l=whatever[z3l,z2l]; z100r=whatever[z3r,z2']; |
| 4288 |
z101l=whatever[z0'',z4l]; z101r=whatever[z2r,z0']; |
| 4289 |
filldraw z1l.b..z1..z1r.b---z2r+u*down..z0'---z101r...z4...z101l---z0''...z0'''' |
| 4290 |
---z100r..z3..z100l---z0'''..z2l+u*down---cycle; |
| 4291 |
penlabels(1,2,3,4,100,101); labels(0',0'',0''',0,0'''',2',4l'); |
| 4292 |
math_fit(0,ic#-2u#); |
| 4293 |
endchar; |
| 4294 |
|
| 4295 |
iff known chars.sign_yen: |
| 4296 |
bskchar "Yen symbol"; |
| 4297 |
beginchar(chars.sign_yen,14u#,cap_height#,0); uni "0x00A5"; |
| 4298 |
italcorr cap_height#*slant+.75u#; |
| 4299 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 4300 |
pickup tiny.nib; oblu.more:=2f_obl; |
| 4301 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 4302 |
bot y1=0; top y2=.5h; x1=x2=.5w; |
| 4303 |
pos3(whatever,0); pos4(whatever,0); |
| 4304 |
forsuffixes i=5,6,7,8,9,12: pos.i(bar,90); endfor; |
| 4305 |
lft x3l=2u; rt x4r=w-2u; top y3l=top y4r=h; |
| 4306 |
z3r=z2r+whatever*(z3l-z2l); z4l'=z2r+(0,cap_hair-tiny) rotated (angle(z4r-z2r)); |
| 4307 |
z4l=z4l'+whatever*(z4r-z2r); z2'=whatever[z4l',z4l]=whatever[z2r,z3r]; |
| 4308 |
z0'=z2r+(u,0) rotated (angle(z4r-z2r)); z0'''=z2l+(u,0) rotated (angle(z3l-z2l)); |
| 4309 |
z0''=z2'+(u,0) rotated (angle(z4l-z2')); z0''''=z2'+(u,0) rotated (angle(z3r-z2r)); |
| 4310 |
cap_serifs_bl(1l); cap_serifs_br(1r); cap_serifs_tl(3l); cap_serifs_tr(3r); cap_serifs_tr(4r); cap_serifs_tl(4l); |
| 4311 |
y5=y6=y7=y8=.75bar_height; y9=y10=y11=y12=max(x_height,y0''''+cap_hair); |
| 4312 |
x6=x1l; x7=x1r; lft x5=lft x9=2u; rt x8=rt x12=w-2u; |
| 4313 |
z13=point 0 of diag_serif(4r,2r); |
| 4314 |
z14=point 0 of diag_serif(3l,2l); |
| 4315 |
y10l=y11l=y12l; y10r=y11r=y12r; |
| 4316 |
z11l=whatever[z13,z0']; z11r=whatever[z13,z0']; |
| 4317 |
z10l=whatever[z14,z0''']; z10r=whatever[z14,z0''']; |
| 4318 |
bskpoints(5,8,bar,bar); bskpoints(9,12,bar,bar); |
| 4319 |
filldraw z1l.b{down}..{left}z1l.c..z1l.a{right}..z1+ser_boule*up.. |
| 4320 |
{right}z1r.a..z1r.c{left}..z1r.b---obl(7l,1r,8l)---z8ll..z8r |
| 4321 |
---obl(7r,8r,2r)---z2r+u*down..z0'---obl(11l,0',12l)---z12ll |
| 4322 |
..z12r---obl(11r,12r,13).more--- |
| 4323 |
z13{z4r-z2r}..{right}z4r.c..z4r.a---z4l.a.. |
| 4324 |
{right}z4l.c..diag_serif(4l,4l')---z0''...z0''''--- |
| 4325 |
diag_serif(3r,2')..{right}z3r.c..z3r.a---z3l.a.. |
| 4326 |
{right}z3l.c..z14---obl(10r,14,9r).more---z9rr..z9l |
| 4327 |
---obl(10l,9l,0''')---z0'''..z2l+u*down |
| 4328 |
---obl(6r,2l,5r)---z5rr..z5l---obl(6l,5l,1l)---cycle; |
| 4329 |
penlabels(1,2,3,4,5,6,7,8,9,10,11,12); labels(0',0'',0''',0,0'''',2',4l',5rr,8ll,9rr,12ll); |
| 4330 |
endchar; |
| 4331 |
|
| 4332 |
charscription(13u,cap_height,0)( |
| 4333 |
numeric alpha; |
| 4334 |
lft x1l=u; bot y1l=0; rt x2r=w-u-o; top y2r=h; |
| 4335 |
x2r-x2l=x1r-x1l; |
| 4336 |
alpha=diag_ratio(2,cap_stem,y2r-y1l,x2r-x1l); |
| 4337 |
pos1(alpha*cap_stem,0); pos2(alpha*cap_stem,0); |
| 4338 |
bot y4r=0; rt x4r=w-u; top y5r=h; x5r=1.5u; |
| 4339 |
pickup nullpen; |
| 4340 |
{{save filldraw; def filldraw:= draw enddef; arm_bot_r(1r,4); arm_top_l(2l,5)}}; |
| 4341 |
pickup tiny.nib; |
| 4342 |
x1'=x4e; z1'=whatever[z1r,z2r]; |
| 4343 |
y2'=y5f; z2'=whatever[z1l,z2l]; |
| 4344 |
filldraw z1l---z4a..{right}z4b...z4r+cap_hair*up---z4l..{down}z4l.o& |
| 4345 |
z4l.o..z4.c..z4.d---z4e+o*right{left}..z1'---z2r---z5b..z5r+cap_hair*down--- |
| 4346 |
z5l..z5c{dir55}..z5d---z5e..z2'---cycle; |
| 4347 |
penlabels(1,2,3,4); labels(0',0'',0''',0,0'''',2',4l'); |
| 4348 |
); |
| 4349 |
|
| 4350 |
iff known chars.latin_Z: |
| 4351 |
bskchar "The letter Z"; |
| 4352 |
beginchar(chars.latin_Z,13u#,cap_height#,0); uni "0x005A"; |
| 4353 |
italcorr cap_height#*slant; |
| 4354 |
adjust_fit(0,0); |
| 4355 |
pickup tiny.nib; |
| 4356 |
usechar; |
| 4357 |
math_fit(-.5u#,.75ic#); |
| 4358 |
endchar; |
| 4359 |
|
| 4360 |
iff known chars.latin_Zcaron: |
| 4361 |
bskchar "The letter Z with caron"; |
| 4362 |
beginchar(chars.latin_Zcaron,13u#,Acc_height#,0); uni "0x017D"; |
| 4363 |
italcorr cap_height#*slant; |
| 4364 |
adjust_fit(0,0); |
| 4365 |
pickup tiny.nib; |
| 4366 |
usechar; |
| 4367 |
x101=.5[x5,x2r]; |
| 4368 |
hacek(100,101,102).capital; |
| 4369 |
endchar; |
| 4370 |
|
| 4371 |
iff known chars.latin_Zdotabove: |
| 4372 |
bskchar "The letter Z with dot above"; |
| 4373 |
beginchar(chars.latin_Zdotabove,13u#,Acc_height#,0); uni "0x017B"; |
| 4374 |
italcorr cap_height#*slant; |
| 4375 |
adjust_fit(0,0); |
| 4376 |
pickup tiny.nib; |
| 4377 |
usechar; |
| 4378 |
x100=.5[x5,x2r]; |
| 4379 |
dotabove(100); |
| 4380 |
endchar; |
| 4381 |
|
| 4382 |
iff known chars.latin_Zacute: |
| 4383 |
bskchar "The letter Z with acute"; |
| 4384 |
beginchar(chars.latin_Zacute,13u#,Acc_height#,0); uni "0x0179"; |
| 4385 |
italcorr cap_height#*slant; |
| 4386 |
adjust_fit(0,0); |
| 4387 |
pickup tiny.nib; |
| 4388 |
usechar; |
| 4389 |
.25[x101,x100]=.5[x5,x2r]; |
| 4390 |
acute(100,101).capital; |
| 4391 |
endchar; |
| 4392 |
|
| 4393 |
iff known chars.latin_Z_BB: |
| 4394 |
bskchar "The blackboard-bold letter Z"; |
| 4395 |
beginchar(chars.latin_Z_BB,13u#,cap_height#,0); uni "0x2124"; |
| 4396 |
italcorr cap_height#*slant; |
| 4397 |
adjust_fit(0,0); |
| 4398 |
pickup tiny.nib; |
| 4399 |
usechar; |
| 4400 |
oblu.more:=2oblu; |
| 4401 |
y100=y4e; x100=.5[x1r,x4e]; |
| 4402 |
infill ifobl(2l,2r,1l,1r,,more)---obl(1',2r,1r)...z100..z1r |
| 4403 |
---obl(1l,1r,2l).more---cycle; |
| 4404 |
labels(100); |
| 4405 |
endchar; |
| 4406 |
|
| 4407 |
iff known chars.latin_Z_SS: |
| 4408 |
bskchar "The sans-serif letter Z"; |
| 4409 |
beginchar(chars.latin_Z_SS,13u#,cap_height#,0); uni "0x1D5B9"; |
| 4410 |
italcorr cap_height#*slant; |
| 4411 |
adjust_fit(0,0); |
| 4412 |
pickup tiny.nib; |
| 4413 |
numeric alpha; |
| 4414 |
lft x1l=u; bot y1l=0; rt x2r=w-u-o; top y2r=h; |
| 4415 |
x2r-x2l=x1r-x1l; |
| 4416 |
alpha=diag_ratio(2,cap_stem,y2r-y1l,x2r-x1l); |
| 4417 |
pos1(alpha*cap_stem,0); pos2(alpha*cap_stem,0); |
| 4418 |
pos4(cap_hair,-90); pos5(cap_hair,90); |
| 4419 |
bot y4r=0; rt x4r=w-u; top y5r=h; x5r=1.5u; |
| 4420 |
y1'=y4l; z1'=whatever[z1r,z2r]; |
| 4421 |
y2'=y5l; z2'=whatever[z1l,z2l]; |
| 4422 |
oblu:=.5[cap_hair,cap_stem]; |
| 4423 |
filldraw z1l---z4r+cap_stem*left...z4...z4l+cap_stem*left---obl(1',4l,2r)---z2r |
| 4424 |
---z5r+cap_stem*right...z5...z5l+cap_stem*right---obl(2',5l,1l)---cycle; |
| 4425 |
penlabels(1,2,3,4,5); labels(0',0'',0''',0,0'''',2',4l'); |
| 4426 |
endchar; |
| 4427 |
|
| 4428 |
bskboundary; |
| 4429 |
|
| 4430 |
charscription(9u,x_height,0)( |
| 4431 |
numeric aend; aend:=stem; oblu:=2oblu; |
| 4432 |
path p[]; numeric tim[]; |
| 4433 |
pos0(hair,180); pos0'(.9[stem,hair],90); pos1(stem,0); pos2(stem,0); |
| 4434 |
pos3(hair,90); pos4(aend,180); z4'=z4+.2aend*down+o*right; |
| 4435 |
z4''=z4+.5(aend-currentbreadth)*dir135; |
| 4436 |
rt x1r=w-u-stem; x2=x1; y1=stem+hair; y2=h-like_curve; |
| 4437 |
x0l=w-u; y0=2/3(x0r-x1r); y0'l=0; x0'=.5[x0r,x1r]; |
| 4438 |
x3=.5[x1r,lft u]; top y3r=h+o; |
| 4439 |
y4''=.5[y2,y3l]; lft x4r=u+o; |
| 4440 |
z5l=z2l; z6l=z5l+like_hair*down; z7=(u,y1); |
| 4441 |
pos6(hair,angle(z7-z6l)+90); |
| 4442 |
pos8(curve,30); lft x8l=u; y8r=y7-like_hair; |
| 4443 |
pos9(hair,120); x9r=x3; y9l=o; |
| 4444 |
pos10(hair,angle(z1-z9l)+90); z10l=z1; |
| 4445 |
p0=z0l{dir(angle(z0'l-z0r)+10)}..z0'l{left}..z1l---z2l..{left}z3l.. |
| 4446 |
{down}z4l..z4'..{up}z4r..z4''..{right}z3r...z2r---z1r.. |
| 4447 |
{right}z0'r..{z0r-z0'}z0r; |
| 4448 |
p1=z10l{z9l-z1}..z9l..z8l..{z6l-z7-hair*up}z6l; |
| 4449 |
p2:=z10r{z9l-z1}..z9r..z8r..{z6r-z7-hair*up}z6r; |
| 4450 |
(tim1,tim2)=p0 intersectiontimes p1; |
| 4451 |
(tim3,tim4)=subpath(2,infinity) of p1 intersectiontimes p0; |
| 4452 |
(tim5,tim6)=p2 intersectiontimes p0; |
| 4453 |
(tim7,tim8)=subpath(2,infinity) of p2 intersectiontimes p0; |
| 4454 |
filldraw subpath(0,rundy(p0,tim1).zpet) of p0.. |
| 4455 |
subpath(rundy(p1,tim2),rundy(p1,2+tim3).zpet) of p1.. |
| 4456 |
subpath(rundy(p0,tim4),infinity) of p0..cycle; |
| 4457 |
z11=point rundy(p0,tim8).zpet of p0; |
| 4458 |
z12=point rundy(p0,tim6) of p0; |
| 4459 |
infill subpath(rundy(p2,tim5),rundy(p2,2+tim7).zpet) of p2.. |
| 4460 |
if (y12>y11): |
| 4461 |
subpath(tim8,tim6) of p0 |
| 4462 |
else: |
| 4463 |
subpath(rundy(p0,tim8).zpet,rundy(p0,tim6)) of p0 |
| 4464 |
fi |
| 4465 |
..cycle; |
| 4466 |
penlabels(0,0',1,2,3,4,5,6,8,9,10); labels(4',4'',7,11,12); |
| 4467 |
); |
| 4468 |
|
| 4469 |
iff known chars.latin_a: |
| 4470 |
bskchar "The letter a"; |
| 4471 |
beginchar(chars.latin_a,9u#,x_height#,0); uni "0x0061"; |
| 4472 |
adjust_fit(0,0); |
| 4473 |
pickup tiny.nib; |
| 4474 |
usechar; |
| 4475 |
endchar; |
| 4476 |
|
| 4477 |
iff known chars.latin_aacute: |
| 4478 |
bskchar "The letter a with acute"; |
| 4479 |
beginchar(chars.latin_aacute,9u#,asc_height#,0); uni "0x00E1"; |
| 4480 |
italcorr asc_height#*slant-1.75u#; |
| 4481 |
adjust_fit(0,0); |
| 4482 |
pickup tiny.nib; |
| 4483 |
usechar; |
| 4484 |
x101=x3; acute(100,101); |
| 4485 |
endchar; |
| 4486 |
|
| 4487 |
iff known chars.latin_agrave: |
| 4488 |
bskchar "The letter a with grave"; |
| 4489 |
beginchar(chars.latin_agrave,9u#,asc_height#,0); uni "0x00E0"; |
| 4490 |
adjust_fit(0,0); |
| 4491 |
pickup tiny.nib; |
| 4492 |
usechar; |
| 4493 |
lft x100l=x4l; grave(100,101); |
| 4494 |
endchar; |
| 4495 |
|
| 4496 |
iff known chars.latin_aumlaut: |
| 4497 |
bskchar "The letter a with umlaut"; |
| 4498 |
beginchar(chars.latin_aumlaut,9u#,asc_height#-dot_size#,0); uni "0x00E4"; |
| 4499 |
adjust_fit(0,0); |
| 4500 |
pickup tiny.nib; |
| 4501 |
usechar; |
| 4502 |
.5[x100,x101]=x3; umlaut(100,101); |
| 4503 |
endchar; |
| 4504 |
|
| 4505 |
iff known chars.latin_adoublegrave: |
| 4506 |
bskchar "The letter a with doublegrave"; |
| 4507 |
beginchar(chars.latin_adoublegrave,9u#,asc_height#,0); uni "0x0201"; |
| 4508 |
pickup tiny.nib; |
| 4509 |
adjust_fit(0,0); |
| 4510 |
usechar; |
| 4511 |
x102-x100=3u; |
| 4512 |
d_grave(100,101,102,103,x3l); |
| 4513 |
endchar; |
| 4514 |
|
| 4515 |
iff known chars.latin_acircumflex: |
| 4516 |
bskchar "The letter a with circumflex"; |
| 4517 |
beginchar(chars.latin_acircumflex,9u#,asc_height#-.1x_height#,0); uni "0x00E2"; |
| 4518 |
italcorr .5[asc_height#,x_height#]*slant-u#; |
| 4519 |
adjust_fit(0,0); |
| 4520 |
pickup tiny.nib; |
| 4521 |
usechar; |
| 4522 |
x101=x3+2o; |
| 4523 |
circumflex(100,101,102); |
| 4524 |
endchar; |
| 4525 |
|
| 4526 |
iff known chars.latin_acaron: |
| 4527 |
bskchar "The letter a with caron"; |
| 4528 |
beginchar(chars.latin_acaron,9u#,asc_height#,0); uni "0x01CE"; |
| 4529 |
adjust_fit(0,0); |
| 4530 |
pickup tiny.nib; |
| 4531 |
usechar; |
| 4532 |
x101=x3; |
| 4533 |
hacek(100,101,102); |
| 4534 |
endchar; |
| 4535 |
|
| 4536 |
iff known chars.latin_abreve: |
| 4537 |
bskchar "The letter a with breve"; |
| 4538 |
beginchar(chars.latin_abreve,9u#,asc_height#+apex_o#,0); uni "0x0103"; |
| 4539 |
adjust_fit(0,0); |
| 4540 |
pickup tiny.nib; |
| 4541 |
usechar; |
| 4542 |
lft x101=x3+o; x102-x100=5u; |
| 4543 |
breve(100,101,102); |
| 4544 |
endchar; |
| 4545 |
|
| 4546 |
iff known chars.latin_ainvbreve: |
| 4547 |
bskchar "The letter a with inverted breve"; |
| 4548 |
beginchar(chars.latin_ainvbreve,9u#,asc_height#,0); uni "0x0203"; |
| 4549 |
adjust_fit(0,0); |
| 4550 |
pickup tiny.nib; |
| 4551 |
usechar; |
| 4552 |
lft x101=x3+o; x102-x100=5u; |
| 4553 |
tieacc(100,101,102); |
| 4554 |
endchar; |
| 4555 |
|
| 4556 |
iff known chars.latin_amacron: |
| 4557 |
bskchar "The letter a with macron"; |
| 4558 |
beginchar(chars.latin_amacron,9u#,.5[asc_height#,x_height#],0); uni "0x0101"; |
| 4559 |
adjust_fit(0,0); |
| 4560 |
pickup tiny.nib; |
| 4561 |
usechar; |
| 4562 |
x100=x4r; |
| 4563 |
macron(100,101); |
| 4564 |
endchar; |
| 4565 |
|
| 4566 |
iff known chars.latin_atilde: |
| 4567 |
bskchar "The letter a with tilde"; |
| 4568 |
beginchar(chars.latin_atilde,9u#,asc_height#,0); uni "0x00E3"; |
| 4569 |
italcorr asc_height#*slant-u#; |
| 4570 |
adjust_fit(0,0); |
| 4571 |
pickup tiny.nib; |
| 4572 |
usechar; |
| 4573 |
x101-x100=6u; lft x.tilde=x3; |
| 4574 |
tilde(100,101); |
| 4575 |
endchar; |
| 4576 |
|
| 4577 |
iff known chars.latin_aring: |
| 4578 |
bskchar "The letter a with ring"; |
| 4579 |
beginchar(chars.latin_aring,9u#,asc_height#,0); uni "0x00E5"; |
| 4580 |
adjust_fit(0,0); |
| 4581 |
pickup tiny.nib; |
| 4582 |
usechar; |
| 4583 |
lft x100=x3; x100-x101=1.3u; |
| 4584 |
ring(100,101); |
| 4585 |
endchar; |
| 4586 |
|
| 4587 |
iff known chars.latin_adotabove: |
| 4588 |
bskchar "The letter a with dot above"; |
| 4589 |
beginchar(chars.latin_adotabove,9u#,asc_height#-.5dot_size#,0); uni "0x0227"; |
| 4590 |
adjust_fit(0,0); |
| 4591 |
pickup tiny.nib; |
| 4592 |
usechar; |
| 4593 |
x100=x3l; |
| 4594 |
dotabove(100); |
| 4595 |
endchar; |
| 4596 |
|
| 4597 |
iff known chars.latin_a_feminine: |
| 4598 |
bskchar "Feminine ordinal indicator (superscript a)"; |
| 4599 |
beginchar(chars.latin_a_feminine,5.5u#,asc_height#-.5x_height#,0); uni "0x00AA"; |
| 4600 |
adjust_fit(0,0); |
| 4601 |
pickup tiny.nib; |
| 4602 |
multiply(.85)(curve,hair,vair); |
| 4603 |
usechar shifted (-x8l+o,-y3r) scaled .5 shifted (u+(HH-.5x_height)*slant,HH); |
| 4604 |
endchar; |
| 4605 |
|
| 4606 |
iff known chars.latin_aogonek: |
| 4607 |
bskchar "The letter a with ogonek"; |
| 4608 |
beginchar(chars.latin_aogonek,9u#,x_height#,.85desc_depth#); uni "0x0105"; |
| 4609 |
adjust_fit(0,0); |
| 4610 |
pickup tiny.nib; |
| 4611 |
numeric aend; aend:=stem; oblu:=2oblu; |
| 4612 |
path p[]; numeric tim[]; |
| 4613 |
pos0(hair,180); pos0'(.9[stem,hair],90); pos1(stem,0); pos2(stem,0); |
| 4614 |
pos3(hair,90); pos4(aend,180); z4'=z4+.2aend*down+o*right; |
| 4615 |
pos13(stem,0); pos14(curve,0); pos15(hair,45); pos16(hair,160); |
| 4616 |
z4''=z4+.5(aend-currentbreadth)*dir135; |
| 4617 |
rt x1r=w-u-stem; x2=x1; y1=stem+hair; y2=h-like_curve; |
| 4618 |
x0l=w-u; y0=2/3(x0r-x1r); y0'l=0; x0'=.5[x0r,x1r]; |
| 4619 |
x3=.5[x1r,lft u]; top y3r=h+o; |
| 4620 |
y4''=.5[y2,y3l]; lft x4r=u+o; |
| 4621 |
z5l=z2l; z6l=z5l+like_hair*down; z7=(u,y1); |
| 4622 |
x13-x14l=1.5u; x13r=x0'; x15-x14l=3u; rt x16l-x15=1.5u; |
| 4623 |
y13=0; y14=-.5d; bot y15l=-d; y16=-2/3d; |
| 4624 |
pos6(hair,angle(z7-z6l)+90); |
| 4625 |
pos8(curve,30); lft x8l=u; y8r=y7-like_hair; |
| 4626 |
pos9(hair,120); x9r=x3; y9l=o; |
| 4627 |
pos10(hair,angle(z1-z9l)+90); z10l=z1; |
| 4628 |
p0=z0l{dir(angle(z0'l-z0r)+10)}..z0'l{left}..z1l---z2l..{left}z3l.. |
| 4629 |
{down}z4l..z4'..{up}z4r..z4''..{right}z3r...z2r---z1r.. |
| 4630 |
{right}z0'r..{z0r-z0'}z0r; |
| 4631 |
p1=z10l{z9l-z1}..z9l..z8l..{z6l-z7-hair*up}z6l; |
| 4632 |
p2:=z10r{z9l-z1}..z9r..z8r..{z6r-z7-hair*up}z6r; |
| 4633 |
p3:=reverse (z13l{z14l-z13r}..z14l...z15l..{z13-z14}z16l..z16r{z14-z13}..z15r..z14r..z13r); |
| 4634 |
(tim1,tim2)=p0 intersectiontimes p1; |
| 4635 |
(tim3,tim4)=subpath(2,infinity) of p1 intersectiontimes p0; |
| 4636 |
(tim5,tim6)=p2 intersectiontimes p0; |
| 4637 |
(tim7,tim8)=subpath(2,infinity) of p2 intersectiontimes p0; |
| 4638 |
filldraw subpath(0,rundy(p0,1).zpet) of p0 |
| 4639 |
..subpath(rundy(p3,0),rundy(p3,infinity).zpet) of p3 |
| 4640 |
..subpath(rundy(p0,1),rundy(p0,tim1).zpet) of p0.. |
| 4641 |
subpath(rundy(p1,tim2),rundy(p1,2+tim3).zpet) of p1.. |
| 4642 |
subpath(rundy(p0,tim4),infinity) of p0..cycle; |
| 4643 |
z11=point rundy(p0,tim8).zpet of p0; |
| 4644 |
z12=point rundy(p0,tim6) of p0; |
| 4645 |
infill subpath(rundy(p2,tim5),rundy(p2,2+tim7).zpet) of p2.. |
| 4646 |
if (y12>y11): |
| 4647 |
subpath(tim8,tim6) of p0 |
| 4648 |
else: |
| 4649 |
subpath(rundy(p0,tim8).zpet,rundy(p0,tim6)) of p0 |
| 4650 |
fi |
| 4651 |
..cycle; |
| 4652 |
penlabels(0,0',1,2,3,4,5,6,8,9,10,13,14,15,16); labels(4',4'',7,11,12); |
| 4653 |
endchar; |
| 4654 |
|
| 4655 |
iff known chars.latin_a_BB: |
| 4656 |
bskchar "The blackboard-bold letter a"; |
| 4657 |
beginchar(chars.latin_a_BB,9u#,x_height#,0); uni "0x1D552"; |
| 4658 |
adjust_fit(0,0); |
| 4659 |
pickup tiny.nib; |
| 4660 |
numeric aend; aend:=.8cap_stem; oblu:=2oblu; |
| 4661 |
path p[]; numeric tim[]; |
| 4662 |
pos0(hair,180); pos0'(.9[stem,hair],90); pos1(.8cap_stem,0); pos2(.8cap_stem,0); |
| 4663 |
pos3(hair,90); pos4(aend,180); z4'=z4+.2aend*down+o*right; |
| 4664 |
z4''=z4+.5(aend-currentbreadth)*dir135; |
| 4665 |
rt x1r=w-u-stem; x2=x1; y1=stem+hair; y2=h-like_curve; |
| 4666 |
x0l=w-u; y0=2/3(x0r-x1r); y0'l=0; x0'=.5[x0r,x1r]; |
| 4667 |
x3=.5[x1r,lft u]; top y3r=h+o; |
| 4668 |
y4''=.5[y2,y3l]; lft x4r=u+o; |
| 4669 |
z5l=z2l; z6l=z5l+like_hair*down; z7=(u,y1); |
| 4670 |
pos6(hair,angle(z7-z6l)+90); |
| 4671 |
pos8(cap_stem,30); lft x8l=u; y8=y7-like_hair; |
| 4672 |
pos9(hair,120); x9r=x3; y9l=o; |
| 4673 |
pos10(hair,angle(z1-z9l)+90); z10l=z1; |
| 4674 |
p0=z0l{dir(angle(z0'l-z0r)+10)}..z0'l{left}..z1l---z2l..{left}z3l.. |
| 4675 |
{down}z4l..z4'..{up}z4r..z4''..{right}z3r...z2r---z1r.. |
| 4676 |
{right}z0'r..{z0r-z0'}z0r; |
| 4677 |
p1=z10l{z9l-z1}..z9l..z8l..{z6l-z7-hair*up}z6l; |
| 4678 |
p2:=z10r{z9l-z1}..z9r..z8r..{z6r-z7-hair*up}z6r; |
| 4679 |
(tim1,tim2)=p0 intersectiontimes p1; |
| 4680 |
(tim3,tim4)=subpath(2,infinity) of p1 intersectiontimes p0; |
| 4681 |
(tim5,tim6)=p2 intersectiontimes p0; |
| 4682 |
(tim7,tim8)=subpath(2,infinity) of p2 intersectiontimes p0; |
| 4683 |
filldraw subpath(0,rundy(p0,tim1).zpet) of p0.. |
| 4684 |
subpath(rundy(p1,tim2),rundy(p1,2+tim3).zpet) of p1.. |
| 4685 |
subpath(rundy(p0,tim4),infinity) of p0..cycle; |
| 4686 |
z11=point rundy(p0,tim8).zpet of p0; |
| 4687 |
z12=point rundy(p0,tim6) of p0; |
| 4688 |
infill subpath(rundy(p2,tim5),rundy(p2,2+tim7).zpet) of p2.. |
| 4689 |
if (y12>y11): |
| 4690 |
subpath(tim8,tim6) of p0 |
| 4691 |
else: |
| 4692 |
subpath(rundy(p0,tim8).zpet,rundy(p0,tim6)) of p0 |
| 4693 |
fi |
| 4694 |
..cycle; |
| 4695 |
p100:=subpath(1,4) of p0; |
| 4696 |
p101:=subpath(9,12) of p0; |
| 4697 |
p102:=subpath(1,infinity) of p1; |
| 4698 |
p103:=subpath(1,infinity) of p2; |
| 4699 |
z100=bsktouch(p100,up,p101,down); |
| 4700 |
z101=bsktouch(subpath(1,infinity) of p100,up,p101,down); |
| 4701 |
z102=bsktouch(p102,up,p103,down); |
| 4702 |
z103=bsktouch(p102,dir-30,p103,dir120); |
| 4703 |
tim100=xpart(p100 intersectiontimes (z100--(x100,0'l-5))); |
| 4704 |
tim101=xpart(p101 intersectiontimes (z100--(x100,y1))); |
| 4705 |
tim102=xpart(p100 intersectiontimes (z101--(x101,y1))); |
| 4706 |
tim103=xpart(p101 intersectiontimes (z101--(x101,y3r+5))); |
| 4707 |
tim104=xpart(p102 intersectiontimes (z102--(x102,y9l-5))); |
| 4708 |
tim105=xpart(p103 intersectiontimes (z102--(x102,y12))); |
| 4709 |
tim106=xpart(p102 intersectiontimes (z103--(x103,y2))); |
| 4710 |
tim107=xpart(p103 intersectiontimes (z103--(x103,y7))); |
| 4711 |
oblu:=bbw; |
| 4712 |
infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100 |
| 4713 |
..subpath(rundy(p101,tim103),rundy(p101,tim101).zpet) of p101..cycle; |
| 4714 |
infill subpath(rundy(p102,tim104),rundy(p102,tim106).zpet) of p102 |
| 4715 |
..reverse subpath(rundy(p103,tim105),rundy(p103,tim107).zpet) of p103..cycle; |
| 4716 |
penlabels(0,0',1,2,3,4,5,6,8,9,10); labels(4',4'',7,11,12,100,101,102,103); |
| 4717 |
endchar; |
| 4718 |
|
| 4719 |
iff known chars.latin_a_SS: |
| 4720 |
bskchar "The sans-serif letter a"; |
| 4721 |
beginchar(chars.latin_a_SS,9u#,x_height#,0); uni "0x1D5BA"; |
| 4722 |
adjust_fit(0,-stem#); |
| 4723 |
pickup tiny.nib; |
| 4724 |
numeric aend; aend:=stem; oblu:=2oblu; |
| 4725 |
path p[]; numeric tim[]; |
| 4726 |
pos0(hair,180); pos0'(.9[stem,hair],90); pos1(stem,0); pos2(stem,0); |
| 4727 |
pos3(hair,90); pos4(aend,180); z4'=z4+.2aend*down+o*right; |
| 4728 |
z4''=z4+.5(aend-currentbreadth)*dir135; |
| 4729 |
rt x1r=w-u-stem; x2=x1; y1=stem+hair; y2=h-like_curve; |
| 4730 |
x0l=w-u; y0=2/3(x0r-x1r); y0'l=0; x0'=.5[x0r,x1r]; |
| 4731 |
x3=.5[x1r,lft u]; top y3r=h+o; |
| 4732 |
y4''=.5[y2,y3l]; lft x4r=u+o; |
| 4733 |
z5l=z2l; z6l=z5l+like_hair*down; z7=(u,y1); |
| 4734 |
pos6(hair,angle(z7-z6l)+90); |
| 4735 |
pos8(curve,30); lft x8l=u; y8r=y7-like_hair; |
| 4736 |
pos9(hair,120); x9r=x3; y9l=o; |
| 4737 |
pos10(hair,angle(z1-z9l)+90); z10l=z1; |
| 4738 |
p0=(x1l,hair)---z2l..{left}z3l..{down}z4l..z4'..{up}z4r..z4''..{right}z3r...z2r---(x1r,hair)..(x1,0)..{up}(x1l,hair); |
| 4739 |
p1=z10l{z9l-z1}..z9l..z8l..{z6l-z7-hair*up}z6l; |
| 4740 |
p2:=z10r{z9l-z1}..z9r..z8r..{z6r-z7-hair*up}z6r; |
| 4741 |
(tim1,tim2)=p0 intersectiontimes p1; |
| 4742 |
(tim3,tim4)=subpath(2,infinity) of p1 intersectiontimes p0; |
| 4743 |
(tim5,tim6)=p2 intersectiontimes p0; |
| 4744 |
(tim7,tim8)=subpath(2,infinity) of p2 intersectiontimes p0; |
| 4745 |
filldraw subpath(0,rundy(p0,tim1).zpet) of p0.. |
| 4746 |
subpath(rundy(p1,tim2),rundy(p1,2+tim3).zpet) of p1.. |
| 4747 |
subpath(rundy(p0,tim4),infinity) of p0..cycle; |
| 4748 |
z11=point rundy(p0,tim8).zpet of p0; |
| 4749 |
z12=point rundy(p0,tim6) of p0; |
| 4750 |
infill subpath(rundy(p2,tim5),rundy(p2,2+tim7).zpet) of p2.. |
| 4751 |
if (y12>y11): |
| 4752 |
subpath(rundy(p0,(tim8,f_obl)).zpet,rundy(p0,(tim6,f_obl))) of p0 |
| 4753 |
else: |
| 4754 |
subpath(rundy(p0,tim8).zpet,rundy(p0,tim6)) of p0 |
| 4755 |
fi |
| 4756 |
..cycle; |
| 4757 |
penlabels(0,0',1,2,3,4,5,6,8,9,10); labels(4',4'',7,11,12); |
| 4758 |
endchar; |
| 4759 |
|
| 4760 |
iff known chars.latin_b: |
| 4761 |
bskchar "The letter b"; |
| 4762 |
beginchar(chars.latin_b,11u#,asc_height#,0); uni "0x0062"; |
| 4763 |
italcorr .5x_height#*slant; |
| 4764 |
adjust_fit(serif_fit#,0); |
| 4765 |
pickup tiny.nib; |
| 4766 |
path p[]; numeric tim[]; oblu:=2oblu; |
| 4767 |
pos1(hair,0); pos1'(hair,0); pos2(hair,90); pos3(curve,180); pos4(hair,270); |
| 4768 |
rt x1r=2u+stem; rt x3l=w-u; y1=.65x_height; y3=.5x_height; .5[x2,x4]=.5[x1,x3]; |
| 4769 |
x2-x4=-.5u; x1'r=x1r; y1'=.2x_height; |
| 4770 |
if (y1'/hair)<2.5: x1'l:=x1'l-.5hair; fi; |
| 4771 |
bot y2l=-o; top y4l=x_height+o; |
| 4772 |
lft x5l=2u; bot y5=-d; top y6r=h; |
| 4773 |
{{ |
| 4774 |
numeric oldserif; oldserif:=serif_drop; |
| 4775 |
save serif_drop; serif_drop:=.81oldserif; |
| 4776 |
lowercase_points(5,6,jut); |
| 4777 |
}}; |
| 4778 |
p0=z1l{up}..z4l..z3l..z2l..{z1r-z2r}z1'l---cycle; |
| 4779 |
p1=z1r{up}..z4r..z3r..z2r..{up}z1'r--z1r; |
| 4780 |
p2=z5f--z6r; |
| 4781 |
tim1 =xpart(subpath (0,3) of p0 intersectiontimes p2); |
| 4782 |
tim2-3=xpart(subpath (3,5) of p0 intersectiontimes ((0,hair)--(w,hair))); |
| 4783 |
z7=point tim1 of p0 + like_stem*up; |
| 4784 |
tim3 =xpart(p0 intersectiontimes ((0,y7-.5hair)--(w,y7-.5hair))); |
| 4785 |
y0=ypart(point tim2 of p0)+o; z0=whatever[z5l,z5f]; |
| 4786 |
if (abs(z0-z1'l))<hair: y0:=y0-2o; fi; |
| 4787 |
p4=z1r{up}..z4r..z3r..z2r..(z2r+hair*left)..{up}z1'r--z1r; |
| 4788 |
filldraw z0---z5l+apex_o*down---lowercase_stem_upper(5,6)---z7 |
| 4789 |
..subpath (tim3, tim2) of p0..cycle; |
| 4790 |
infill p4..cycle; |
| 4791 |
penlabels(1,1',2,3,4); labels(0,7); |
| 4792 |
endchar; |
| 4793 |
|
| 4794 |
iff known chars.latin_b_BB: |
| 4795 |
bskchar "The blackboard-bold letter b"; |
| 4796 |
beginchar(chars.latin_b_BB,11u#,asc_height#,0); uni "0x1D553"; |
| 4797 |
italcorr .5x_height#*slant; |
| 4798 |
adjust_fit(serif_fit#,0); |
| 4799 |
pickup tiny.nib; |
| 4800 |
path p[]; numeric tim[]; oblu:=2oblu; |
| 4801 |
pos1(hair,0); pos1'(hair,0); pos2(hair,90); pos3(cap_stem,180); pos4(hair,270); |
| 4802 |
rt x1r=2u+.8cap_stem; rt x3l=w-u; y1=.65x_height; y3=.5x_height; .5[x2,x4]=.5[x1,x3]; |
| 4803 |
x2-x4=-.5u; x1'r=x1r; y1'=.2x_height; |
| 4804 |
if (y1'/hair)<2.5: x1'l:=x1'l-.5hair; fi; |
| 4805 |
bot y2l=-o; top y4l=x_height+o; |
| 4806 |
lft x5l=2u; bot y5=-d; top y6r=h; |
| 4807 |
{{ |
| 4808 |
numeric oldserif; oldserif:=serif_drop; |
| 4809 |
save serif_drop, stem; serif_drop:=.81oldserif; stem:=.8cap_stem; |
| 4810 |
lowercase_points(5,6,jut); |
| 4811 |
}}; |
| 4812 |
p0=z1l{up}..z4l..z3l..z2l..{z1r-z2r}z1'l---cycle; |
| 4813 |
p1=z1r{up}..z4r..z3r..z2r..{up}z1'r--z1r; |
| 4814 |
p2=z5f--z6r; |
| 4815 |
tim1 =xpart(subpath (0,3) of p0 intersectiontimes p2); |
| 4816 |
tim2-3=xpart(subpath (3,5) of p0 intersectiontimes ((0,hair)--(w,hair))); |
| 4817 |
z7=point tim1 of p0 + like_stem*up; |
| 4818 |
tim3 =xpart(p0 intersectiontimes ((0,y7-.5hair)--(w,y7-.5hair))); |
| 4819 |
y0=ypart(point tim2 of p0)+o; z0=whatever[z5l,z5f]; |
| 4820 |
if (abs(z0-z1'l))<hair: y0:=y0-2o; fi; |
| 4821 |
p4=z1r{up}..z4r..z3r..z2r..(z2r+hair*left)..{up}z1'r--z1r; |
| 4822 |
filldraw z0---z5l+apex_o*down---lowercase_stem_upper(5,6)---z7 |
| 4823 |
..subpath (tim3, tim2) of p0..cycle; |
| 4824 |
infill p4..cycle; |
| 4825 |
p100:=z5a--z5l; |
| 4826 |
p101:=z5l+apex_o*down--z0---obl(5f,5l,6r); |
| 4827 |
p102:=subpath(1,3) of p0; |
| 4828 |
p103:=subpath(1,3) of p4; |
| 4829 |
z100=bsktouch(p100,right,p101,dir135); |
| 4830 |
z101=bsktouch(p102,down,p103,up); |
| 4831 |
z102=bsktouch(p102,up,p103,down); |
| 4832 |
tim100=xpart(p100 intersectiontimes (z100--(0,y100))); |
| 4833 |
tim101=xpart(p101 intersectiontimes (z100--(w,y100))); |
| 4834 |
tim102=xpart(p102 intersectiontimes (z101--(x101,h))); |
| 4835 |
tim103=xpart(p103 intersectiontimes (z101--(x101,0))); |
| 4836 |
tim104=xpart(p102 intersectiontimes (z102--(x102,y2l-5))); |
| 4837 |
tim105=xpart(p103 intersectiontimes (z102--(x102,y3))); |
| 4838 |
infill ifobl(6r,6b,5r,5l,more,)---subpath(0,rundy(p100,tim100).zpet) of p100 |
| 4839 |
..subpath(rundy(p101,tim101),infinity) of p101---cycle; |
| 4840 |
oblu:=bbw; |
| 4841 |
infill subpath(rundy(p102,tim102),rundy(p102,tim104).zpet) of p102 |
| 4842 |
..reverse subpath(rundy(p103,tim103),rundy(p103,tim105).zpet) of p103..cycle; |
| 4843 |
penlabels(1,1',2,3,4); labels(0,7,100,101,102); |
| 4844 |
endchar; |
| 4845 |
|
| 4846 |
iff known chars.latin_b_SS: |
| 4847 |
bskchar "The sans-serif letter b"; |
| 4848 |
beginchar(chars.latin_b_SS,11u#,asc_height#,0); uni "0x1D5BB"; |
| 4849 |
italcorr .5x_height#*slant; |
| 4850 |
adjust_fit(serif_fit#,0); |
| 4851 |
pickup tiny.nib; |
| 4852 |
path p[]; numeric tim[]; oblu:=2oblu; |
| 4853 |
pos1(hair,0); pos1'(hair,0); pos2(hair,90); pos3(curve,180); pos4(hair,270); |
| 4854 |
rt x1r=2u+stem; rt x3l=w-u; y1=.65x_height; y3=.5x_height; .5[x2,x4]=.5[x1,x3]; |
| 4855 |
x2-x4=-.5u; x1'r=x1r; y1'=.2x_height; |
| 4856 |
if (y1'/hair)<2.5: x1'l:=x1'l-.5hair; fi; |
| 4857 |
bot y2l=0; top y4l=x_height+o; |
| 4858 |
lft x5l=2u; bot y5=-d; top y6r=h; |
| 4859 |
{{ |
| 4860 |
numeric oldserif; oldserif:=serif_drop; |
| 4861 |
save serif_drop; serif_drop:=.81oldserif; |
| 4862 |
lowercase_points(5,6,jut); |
| 4863 |
}}; |
| 4864 |
p0=z1l{up}..z4l..z3l..z2l..{z1r-z2r}z1'l---cycle; |
| 4865 |
p1=z1r{up}..z4r..z3r..z2r..{up}z1'r--z1r; |
| 4866 |
p2=z5f--z6r; |
| 4867 |
tim1 =xpart(subpath (0,3) of p0 intersectiontimes p2); |
| 4868 |
tim2-3=xpart(subpath (3,5) of p0 intersectiontimes ((0,hair)--(w,hair))); |
| 4869 |
z7=point tim1 of p0 + like_stem*up; |
| 4870 |
tim3 =xpart(p0 intersectiontimes ((0,y7-.5hair)--(w,y7-.5hair))); |
| 4871 |
y0=ypart(point tim2 of p0)+o; z0=whatever[z5l,z5f]; |
| 4872 |
if (abs(z0-z1'l))<hair: y0:=y0-2o; fi; |
| 4873 |
p4=z1r{up}..z4r..z3r..z2r..(z2r+hair*left)..{up}z1'r--z1r; |
| 4874 |
filldraw obl(5l,2l,6l)---z6b..z6r---z7..subpath (tim3, 3) of p0---cycle; |
| 4875 |
infill p4..cycle; |
| 4876 |
penlabels(1,1',2,3,4); labels(0,7); |
| 4877 |
endchar; |
| 4878 |
|
| 4879 |
iff known chars.sign_blank_b: |
| 4880 |
bskchar "Blank b sign"; |
| 4881 |
beginchar(chars.sign_blank_b,11u#,asc_height#,0); uni "0x2422"; |
| 4882 |
italcorr .5x_height#*slant; |
| 4883 |
adjust_fit(serif_fit#,0); |
| 4884 |
pickup tiny.nib; |
| 4885 |
path p[]; numeric tim[]; oblu:=2oblu; oblu.light:=f_obl; |
| 4886 |
pos1(hair,0); pos1'(hair,0); pos2(hair,90); pos3(curve,180); pos4(hair,270); |
| 4887 |
rt x1r=2u+stem; rt x3l=w-u; y1=.65x_height; y3=.5x_height; .5[x2,x4]=.5[x1,x3]; |
| 4888 |
x2-x4=-.5u; x1'r=x1r; y1'=.2x_height; |
| 4889 |
if (y1'/hair)<2.5: x1'l:=x1'l-.5hair; fi; |
| 4890 |
bot y2l=-o; top y4l=x_height+o; |
| 4891 |
lft x5l=2u; bot y5=-d; top y6r=h; |
| 4892 |
{{ |
| 4893 |
numeric oldserif; oldserif:=serif_drop; |
| 4894 |
save serif_drop; serif_drop:=.81oldserif; |
| 4895 |
lowercase_points(5,6,jut); |
| 4896 |
}}; |
| 4897 |
lft x8=.5u; x9=.5w+u; top y9=h-o; y8=.2[x_height,h]; |
| 4898 |
theta:=angle(z9-z8)+90; |
| 4899 |
pos8(bar,theta); pos9(bar,theta); |
| 4900 |
x8'l=x8'r=x5l; x9'l=x9'r=x5r; bskpoints(8,9,hair,hair); |
| 4901 |
z8'l=whatever[z8l,z9l]; z9'l=whatever[z8l,z9l]; |
| 4902 |
z8'r=whatever[z8r,z9r]; z9'r=whatever[z8r,z9r]; |
| 4903 |
p0=z1l{up}..z4l..z3l..z2l..{z1r-z2r}z1'l---cycle; |
| 4904 |
p1=z1r{up}..z4r..z3r..z2r..{up}z1'r--z1r; |
| 4905 |
p2=z5f--z6r; |
| 4906 |
tim1 =xpart(subpath (0,3) of p0 intersectiontimes p2); |
| 4907 |
tim2-3=xpart(subpath (3,5) of p0 intersectiontimes ((0,hair)--(w,hair))); |
| 4908 |
z7=point tim1 of p0 + like_stem*up; |
| 4909 |
tim3 =xpart(p0 intersectiontimes ((0,y7-.5hair)--(w,y7-.5hair))); |
| 4910 |
y0=ypart(point tim2 of p0)+o; z0=whatever[z5l,z5f]; |
| 4911 |
if (abs(z0-z1'l))<hair: y0:=y0-2o; fi; |
| 4912 |
p4=z1r{up}..z4r..z3r..z2r..(z2r+hair*left)..{up}z1'r--z1r; |
| 4913 |
filldraw z0---z5l+apex_o*down---obl(8'l,5l,8l)---z8l..z8rr |
| 4914 |
---obl(8'r,8r,6l).light---lowercase_stem_upper(5,6) |
| 4915 |
---obl(9'r,6r,9r)---z9r..z9ll---obl(9'l,9l,7)---z7 |
| 4916 |
..subpath (tim3, tim2) of p0..cycle; |
| 4917 |
infill p4..cycle; |
| 4918 |
penlabels(1,1',2,3,4,8,8',9,9'); labels(0,7,8rr,9ll); |
| 4919 |
endchar; |
| 4920 |
|
| 4921 |
charscription(8.5u,x_height,0)( |
| 4922 |
numeric cend; cend:=stem; |
| 4923 |
pos1(curve,0); pos2(hair,90); pos3(hair,270); pos4(cend,20); |
| 4924 |
lft x1l=u; y1=.5h; x2=x3=.5w+hair; bot y2l=-o; top y3l=h+o; |
| 4925 |
rt x0=w-u; y0=.2h; z0'=z0+hair*dir220; z3'r=z3r+like_hair*dir-10; |
| 4926 |
rt x4r=w-u; y4r=.85h; |
| 4927 |
z4'-z4l=hair*unitvector(z4l-z3r); |
| 4928 |
filldraw z0---z0'+o*down..{left}z2l..z1l..{right}z3l.. |
| 4929 |
z4r..z4'..{dir(angle(z4l-z4')-20)}z4l.. |
| 4930 |
z3'r..z3r{left}..z1r..{right}z2r..z0'---cycle; |
| 4931 |
penlabels(1,2,3,4); labels(0,0',3'r,4'); |
| 4932 |
); |
| 4933 |
|
| 4934 |
iff known chars.latin_c: |
| 4935 |
bskchar "The letter c"; |
| 4936 |
beginchar(chars.latin_c,8.5u#,x_height#,0); uni "0x0063"; |
| 4937 |
italcorr .5[x_height#,bar_height#]*slant-.25u#; |
| 4938 |
adjust_fit(0,0); |
| 4939 |
pickup tiny.nib; |
| 4940 |
usechar; |
| 4941 |
endchar; |
| 4942 |
|
| 4943 |
iff known chars.latin_ccaron: |
| 4944 |
bskchar "The letter c with caron"; |
| 4945 |
beginchar(chars.latin_ccaron,8.5u#,asc_height#,0); uni "0x010D"; |
| 4946 |
italcorr asc_height#*slant-.25u#; |
| 4947 |
adjust_fit(0,0); |
| 4948 |
pickup tiny.nib; |
| 4949 |
usechar; |
| 4950 |
x101=x3; |
| 4951 |
hacek(100,101,102); |
| 4952 |
endchar; |
| 4953 |
|
| 4954 |
iff known chars.latin_cacute: |
| 4955 |
bskchar "The letter c with acute"; |
| 4956 |
beginchar(chars.latin_cacute,8.5u#,asc_height#,0); uni "0x0107"; |
| 4957 |
italcorr asc_height#*slant-.25u#; |
| 4958 |
adjust_fit(0,0); |
| 4959 |
pickup tiny.nib; |
| 4960 |
usechar; |
| 4961 |
x100=x4; |
| 4962 |
acute(100,101); |
| 4963 |
endchar; |
| 4964 |
|
| 4965 |
iff known chars.latin_ccircumflex: |
| 4966 |
bskchar "The letter c with circumflex"; |
| 4967 |
beginchar(chars.latin_ccircumflex,8.5u#,asc_height#-.1x_height#,0); uni "0x0109"; |
| 4968 |
italcorr .5[asc_height#,x_height#]*slant; |
| 4969 |
adjust_fit(0,0); |
| 4970 |
pickup tiny.nib; |
| 4971 |
usechar; |
| 4972 |
lft x101=x3; |
| 4973 |
circumflex(100,101,102); |
| 4974 |
endchar; |
| 4975 |
|
| 4976 |
iff known chars.latin_cdotabove: |
| 4977 |
bskchar "The letter c with dot above"; |
| 4978 |
beginchar(chars.latin_cdotabove,8.5u#,asc_height#-.5dot_size#,0); uni "0x010B"; |
| 4979 |
italcorr .5[x_height#,bar_height#]*slant-.25u#; |
| 4980 |
adjust_fit(0,0); |
| 4981 |
pickup tiny.nib; |
| 4982 |
usechar; |
| 4983 |
x100=x3; |
| 4984 |
dotabove(100); |
| 4985 |
endchar; |
| 4986 |
|
| 4987 |
iff known chars.latin_c_BB: |
| 4988 |
bskchar "The blackboard-bold letter c"; |
| 4989 |
beginchar(chars.latin_c_BB,8.5u#,x_height#,0); uni "0x1D554"; |
| 4990 |
italcorr .5[x_height#,bar_height#]*slant-.25u#; |
| 4991 |
adjust_fit(0,0); |
| 4992 |
pickup tiny.nib; |
| 4993 |
numeric cend; cend:=stem; |
| 4994 |
pos1(cap_stem,0); pos2(hair,90); pos3(hair,270); pos4(cend,20); |
| 4995 |
lft x1l=u; y1=.5h; x2=x3=.5w+hair; bot y2l=-o; top y3l=h+o; |
| 4996 |
rt x0=w-u; y0=.2h; z0'=z0+hair*dir220; z3'r=z3r+like_hair*dir-10; |
| 4997 |
rt x4r=w-u; y4r=.85h; |
| 4998 |
z4'-z4l=hair*unitvector(z4l-z3r); |
| 4999 |
filldraw z0---z0'+o*down..{left}z2l..z1l..{right}z3l.. |
| 5000 |
z4r..z4'..{dir(angle(z4l-z4')-20)}z4l.. |
| 5001 |
z3'r..z3r{left}..z1r..{right}z2r..z0'---cycle; |
| 5002 |
path p[]; numeric tim[]; |
| 5003 |
oblu:=bbw; |
| 5004 |
p100:=z0---z0'+o*down..{left}z2l..z1l..{right}z3l; |
| 5005 |
p101:=z3r{left}..z1r..{right}z2r..z0'---z0; |
| 5006 |
z100=bsktouch(p100,up,p101,down); |
| 5007 |
z101=bsktouch(p100,down,p101,up); |
| 5008 |
tim100=xpart(p100 intersectiontimes (z100--(x100,y2l-5))); |
| 5009 |
tim101=xpart(p101 intersectiontimes (z100--(x100,y1))); |
| 5010 |
tim102=xpart(p100 intersectiontimes (z101--(x101,y3l+5))); |
| 5011 |
tim103=xpart(p101 intersectiontimes (z101--(x101,y1))); |
| 5012 |
infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100 |
| 5013 |
..subpath(rundy(p101,tim103),rundy(p101,tim101).zpet) of p101..cycle; |
| 5014 |
penlabels(1,2,3,4); labels(0,0',3'r,4',100,101); |
| 5015 |
endchar; |
| 5016 |
|
| 5017 |
iff known chars.latin_c_SS: |
| 5018 |
bskchar "The sans-serif letter c"; |
| 5019 |
beginchar(chars.latin_c_SS,8.5u#,x_height#,0); uni "0x1D5BC"; |
| 5020 |
italcorr .5[x_height#,bar_height#]*slant-.25u#; |
| 5021 |
adjust_fit(0,0); |
| 5022 |
pickup tiny.nib; |
| 5023 |
numeric cend; cend:=stem; |
| 5024 |
pos1(curve,0); pos2(hair,90); pos3(hair,270); pos4(cend,20); |
| 5025 |
lft x1l=u; y1=.5h; x2=x3=.5w+hair; bot y2l=-o; top y3l=h+o; |
| 5026 |
rt x0=w-u; y0=.2h; z0'=z0+hair*dir220; z3'r=z3r+like_hair*dir-10; |
| 5027 |
rt x4r=w-u; y4r=.85h; |
| 5028 |
z4'-z4l=hair*unitvector(z4l-z3r); |
| 5029 |
filldraw z0---z0'+o*down..{left}z2l..z1l..{right}z3l.. |
| 5030 |
z4r..z4'..{dir(angle(z4l-z4')-20)}z4l.. |
| 5031 |
z3'r..z3r{left}..z1r..{right}z2r..z0'---z0+o*up..cycle; |
| 5032 |
penlabels(1,2,3,4); labels(0,0',3'r,4'); |
| 5033 |
endchar; |
| 5034 |
|
| 5035 |
iff known chars.latin_ccedilla: |
| 5036 |
bskchar "The letter c with cedilla"; |
| 5037 |
beginchar(chars.latin_ccedilla,8.5u#,x_height#,.65desc_depth#); uni "0x00E7"; |
| 5038 |
italcorr .5[x_height#,bar_height#]*slant-.25u#; |
| 5039 |
adjust_fit(0,0); |
| 5040 |
pickup tiny.nib; |
| 5041 |
numeric cend, tim[]; cend:=stem; |
| 5042 |
pos1(curve,0); pos2(hair,90); pos3(hair,270); pos4(cend,20); |
| 5043 |
pos5(.5stem,0); pos6(.5stem,0); pos7(.8stem,0); pos8(.5stem,-110); |
| 5044 |
lft x1l=u; y1=.5h; x2=x3=.5w+hair; bot y2l=-o; top y3l=h+o; |
| 5045 |
rt x0=w-u; y0=.2h; z0'=z0+hair*dir220; z3'r=z3r+like_hair*dir-10; |
| 5046 |
rt x4r=w-u; y4r=.85h; |
| 5047 |
z4'-z4l=hair*unitvector(z4l-z3r); |
| 5048 |
x5r=x6r; z5r=z2l; y6=-hair; y7=-.5d; |
| 5049 |
rt x7r-lft x8r=4u; x5r-lft x8r=2u; y8r=-d; |
| 5050 |
p1:=z0---z0'+o*down..{left}z2l..z1l..{right}z3l; |
| 5051 |
p2:=z6r..{down}z7r..{left}z8r..{right}z8l..{up}z7l..z6l--z5l; |
| 5052 |
p3:=z5r{down}..subpath (rundy(p2,(0,curve)),infinity) of p2; |
| 5053 |
tim1=xpart(p1 intersectiontimes (z6r--(x5r,.5h))); |
| 5054 |
filldraw subpath(0,rundy(p1,2).zpet) of p1 |
| 5055 |
..subpath(rundy(p3,0),rundy(p3,infinity).zpet) of p3 |
| 5056 |
..subpath(rundy(p1,tim1),infinity) of p1.. |
| 5057 |
z4r..z4'..{dir(angle(z4l-z4')-20)}z4l.. |
| 5058 |
z3'r..z3r{left}..z1r..{right}z2r..z0'if testdpi: +up-- else: --- fi cycle; |
| 5059 |
penlabels(1,2,3,4,5,6,7,8); labels(0,0',3'r,4'); |
| 5060 |
endchar; |
| 5061 |
|
| 5062 |
iff known chars.sign_cent: |
| 5063 |
bskchar "Cent sign"; |
| 5064 |
beginchar(chars.sign_cent,8.5u#,asc_height#,comma_depth#); uni "0x00A2"; |
| 5065 |
italcorr .5[x_height#,bar_height#]*slant-.25u#; |
| 5066 |
adjust_fit(0,0); |
| 5067 |
pickup tiny.nib; |
| 5068 |
numeric cend, tim[]; cend:=stem; |
| 5069 |
path p[]; |
| 5070 |
pos1(curve,0); pos2(hair,90); pos3(hair,270); pos4(cend,20); |
| 5071 |
lft x1l=u; y1=.5x_height; x2=x3=.5w+hair; bot y2l=-o; top y3l=x_height+o; |
| 5072 |
rt x0=w-u; y0=.2x_height; z0'=z0+hair*dir220; z3'r=z3r+like_hair*dir-10; |
| 5073 |
rt x4r=w-u; y4r=.85x_height; |
| 5074 |
z4'-z4l=hair*unitvector(z4l-z3r); |
| 5075 |
top z5=(x3,h); z6=(x3,-d); pos5(hair, angle(z6-z5)+90); pos6(hair,angle(z6-z5)+90); |
| 5076 |
bskpoints(5,6,hair,hair); |
| 5077 |
p0:=z0---z0'+o*down..{left}z2l..z1l..{right}z3l..z4r..z4'..{dir(angle(z4l-z4')-20)}z4l; |
| 5078 |
p1:=z3l{right}..z4r..z4'..z4l{dir(angle(z4l-z4')-20)}..z3'r..z3r{left}..z1r..{right}z2r..z0'---z0; |
| 5079 |
p1:=subpath(3,infinity) of p1; |
| 5080 |
p2:=z6ll---z5l; |
| 5081 |
p3:=z5rr---z6r; |
| 5082 |
(tim0,tim1)=p0 intersectiontimes p3; |
| 5083 |
(tim2,tim3)=p0 intersectiontimes p2; |
| 5084 |
(tim4-3,tim5)=subpath (3,infinity) of p0 intersectiontimes p2; |
| 5085 |
(tim6-3,tim7)=subpath (3,infinity) of p0 intersectiontimes p3; |
| 5086 |
(tim8,tim9)=p1 intersectiontimes p3; |
| 5087 |
(tim10-3,tim11)=subpath(3,infinity) of p1 intersectiontimes p3; |
| 5088 |
(tim12,tim13)=p1 intersectiontimes p2; |
| 5089 |
(tim14-3,tim15)=subpath(3,infinity) of p1 intersectiontimes p2; |
| 5090 |
{{ if testdpi: save rundy; def rundy(expr p,t)suffix modifier:= t enddef; fi |
| 5091 |
filldraw subpath(0,rundy(p0,tim0).zpet) of p0 |
| 5092 |
..subpath(rundy(p3,tim1),infinity) of p3 |
| 5093 |
---subpath(0,rundy(p2,tim3).zpet) of p2 |
| 5094 |
..subpath(rundy(p0,tim2),rundy(p0,tim4).zpet) of p0 |
| 5095 |
..subpath(rundy(p2,tim5),infinity) of p2 |
| 5096 |
..subpath(0,rundy(p3,tim7).zpet) of p3 |
| 5097 |
..subpath(rundy(p0,tim6),infinity) of p0 |
| 5098 |
..subpath(0,rundy(p1,tim8).zpet) of p1 |
| 5099 |
..subpath(rundy(p3,tim9),rundy(p3,tim11).zpet) of p3 |
| 5100 |
..subpath(rundy(p1,tim10),infinity) of p1..cycle; |
| 5101 |
}}; |
| 5102 |
infill subpath(rundy(p1,tim12),rundy(p1,tim14).zpet) of p1 |
| 5103 |
..subpath(rundy(p2,tim15),rundy(p2,tim13).zpet) of p2 |
| 5104 |
..cycle; |
| 5105 |
penlabels(1,2,3,4,5,6); labels(0,0',3'r,4',5rr,6ll); |
| 5106 |
endchar; |
| 5107 |
|
| 5108 |
iff known chars.sign_cent_old: |
| 5109 |
bskchar "Old style cent sign"; |
| 5110 |
beginchar(chars.sign_cent_old,8.5u#,asc_height#,comma_depth#); uni "non"; |
| 5111 |
italcorr asc_height#*slant; |
| 5112 |
adjust_fit(0,0); |
| 5113 |
pickup tiny.nib; |
| 5114 |
numeric cend, tim[]; cend:=stem; |
| 5115 |
path p[]; |
| 5116 |
pos1(curve,0); pos2(hair,90); pos3(hair,270); pos4(cend,20); |
| 5117 |
lft x1l=u; y1=.5x_height; x2=x3=.5w+hair; bot y2l=-o; top y3l=x_height+o; |
| 5118 |
rt x0=w-u; y0=.2x_height; z0'=z0+hair*dir220; z3'r=z3r+like_hair*dir-10; |
| 5119 |
rt x4r=w-u; y4r=.85x_height; |
| 5120 |
z4'-z4l=hair*unitvector(z4l-z3r); |
| 5121 |
z5=(w-u,h); z6=(u,-d); pos5(hair, angle(z6-z5)+90); pos6(hair,angle(z6-z5)+90); |
| 5122 |
bskpoints(5,6,hair,hair); |
| 5123 |
p0:=z0---z0'+o*down..{left}z2l..z1l..{right}z3l..z4r..z4'..{dir(angle(z4l-z4')-20)}z4l; |
| 5124 |
p1:=z3l{right}..z4r..z4'..z4l{dir(angle(z4l-z4')-20)}..z3'r..z3r{left}..z1r..{right}z2r..z0'---z0; |
| 5125 |
p1:=subpath(3,infinity) of p1; |
| 5126 |
p2:=z6ll---z5l; |
| 5127 |
p3:=z5rr---z6r; |
| 5128 |
(tim0,tim1)=p0 intersectiontimes p3; |
| 5129 |
(tim2,tim3)=p0 intersectiontimes p2; |
| 5130 |
(tim4-3,tim5)=subpath (3,infinity) of p0 intersectiontimes p2; |
| 5131 |
(tim6-3,tim7)=subpath (3,infinity) of p0 intersectiontimes p3; |
| 5132 |
(tim8,tim9)=p1 intersectiontimes p3; |
| 5133 |
(tim10-3,tim11)=subpath(3,infinity) of p1 intersectiontimes p3; |
| 5134 |
(tim12,tim13)=p1 intersectiontimes p2; |
| 5135 |
(tim14-3,tim15)=subpath(3,infinity) of p1 intersectiontimes p2; |
| 5136 |
{{ if testdpi: save rundy; def rundy(expr p,t)suffix modifier:= t enddef; fi |
| 5137 |
filldraw subpath(0,rundy(p0,tim0).zpet) of p0 |
| 5138 |
..subpath(rundy(p3,tim1),infinity) of p3 |
| 5139 |
---subpath(0,rundy(p2,tim3).zpet) of p2 |
| 5140 |
..subpath(rundy(p0,tim2),rundy(p0,tim4).zpet) of p0 |
| 5141 |
..subpath(rundy(p2,tim5),infinity) of p2 |
| 5142 |
..subpath(0,rundy(p3,tim7).zpet) of p3 |
| 5143 |
..subpath(rundy(p0,tim6),infinity) of p0 |
| 5144 |
..subpath(0,rundy(p1,tim8).zpet) of p1 |
| 5145 |
..subpath(rundy(p3,tim9),rundy(p3,tim11).zpet) of p3 |
| 5146 |
..subpath(rundy(p1,tim10),infinity) of p1..cycle; |
| 5147 |
}}; |
| 5148 |
infill subpath(rundy(p1,tim12),rundy(p1,tim14).zpet) of p1 |
| 5149 |
..subpath(rundy(p2,tim15),rundy(p2,tim13).zpet) of p2 |
| 5150 |
..cycle; |
| 5151 |
penlabels(1,2,3,4,5,6); labels(0,0',3'r,4',5rr,6ll); |
| 5152 |
endchar; |
| 5153 |
|
| 5154 |
charscription(11u,asc_height,0)( |
| 5155 |
path p[]; numeric tim[]; oblu:=2oblu; |
| 5156 |
pos1(curve,0); pos3'(hair,180); pos2(hair,90); |
| 5157 |
pos3(hair,180); pos4(hair,270); |
| 5158 |
lft x1l=u; lft x3r=w-2u-stem; y3=.65x_height; y1=.5x_height; |
| 5159 |
.5[x2,x4]=.5[x1,x3]; |
| 5160 |
x2-x4=-.5u; x3'r=x3r; y3'=.3x_height; |
| 5161 |
if (y3'/hair)<3.5: x3'l:=x3'l+.5hair; fi; |
| 5162 |
bot y2l=-o; top y4l=x_height+o; |
| 5163 |
rt x5r=w-2u; bot y5=-d; top y6r=h; |
| 5164 |
lowercase_points(5,6,1.2jut); |
| 5165 |
p0=z3l---z3'l{z2r-z3r}..z2l..z1l..z4l..{down}z3l; |
| 5166 |
p1=z3r{up}..z4r..z1r..z2r..{up}z3'r--z3r; |
| 5167 |
p2=z5a--z6l; |
| 5168 |
p3=lowercase_lower_u_serif(5,hair); |
| 5169 |
tim1-2=xpart(subpath (2, 5) of p0 intersectiontimes p2); |
| 5170 |
tim2 =xpart(subpath (0,3) of p0 intersectiontimes ((0,0)--(w,0))); |
| 5171 |
if tim2<0: tim2:=xpart(subpath (0,3) of p0 intersectiontimes ((0,o)--(w,o))); fi; |
| 5172 |
tim3 =xpart(p3 intersectiontimes ((0,-o)--(x3'r,-o))); |
| 5173 |
z7=point tim1 of p0 + like_stem*up; |
| 5174 |
tim4 =xpart(p0 intersectiontimes ((.5w,y7-.5hair)--(w,y7-.5hair))); |
| 5175 |
if tim4=-1: tim4:=xpart(p0 intersectiontimes ((.5[x4,x7],bar_height)--(.5[x4,x7],h))) fi; |
| 5176 |
p4=z3r{up}..z4r..z1r..z2r..z2r+2hair*right..{up}z3'r--z3r; |
| 5177 |
filldraw subpath (tim2, tim4) of p0..z7---lowercase_stem_upper(5,6) |
| 5178 |
---subpath(0,tim3) of p3..cycle; |
| 5179 |
infill p4..cycle; |
| 5180 |
penlabels(1,3',2,3,4); labels(7); |
| 5181 |
); |
| 5182 |
|
| 5183 |
iff known chars.latin_d: |
| 5184 |
bskchar "The letter d"; |
| 5185 |
beginchar(chars.latin_d,11u#,asc_height#,0); uni "0x0064"; |
| 5186 |
italcorr asc_height#*slant-.75u#; |
| 5187 |
adjust_fit(0,serif_fit#); |
| 5188 |
pickup tiny.nib; |
| 5189 |
usechar; |
| 5190 |
endchar; |
| 5191 |
|
| 5192 |
iff known chars.latin_dcaron: |
| 5193 |
bskchar "The letter d with caron (treated like comma)"; |
| 5194 |
beginchar(chars.latin_dcaron,11u#,asc_height#,0); uni "0x010F"; |
| 5195 |
italcorr asc_height#*slant+2u#; |
| 5196 |
adjust_fit(0,0); |
| 5197 |
pickup tiny.nib; |
| 5198 |
usechar; |
| 5199 |
y100''r=h; rt x100'''=w+u; |
| 5200 |
comma(100,.75dot_size,.5hair,.75comma_depth); |
| 5201 |
endchar; |
| 5202 |
|
| 5203 |
iff known chars.latin_d_BB: |
| 5204 |
bskchar "The blackboard-bold letter d"; |
| 5205 |
beginchar(chars.latin_d_BB,11u#,asc_height#,0); uni "0x1D555"; |
| 5206 |
italcorr asc_height#*slant-.75u#; |
| 5207 |
adjust_fit(0,serif_fit#); |
| 5208 |
pickup tiny.nib; |
| 5209 |
path p[]; numeric tim[]; oblu:=2oblu; |
| 5210 |
pos1(cap_stem,0); pos3'(hair,180); pos2(hair,90); |
| 5211 |
pos3(hair,180); pos4(hair,270); |
| 5212 |
lft x1l=u; lft x3r=w-2u-.8cap_stem; y3=.65x_height; y1=.5x_height; |
| 5213 |
.5[x2,x4]=.5[x1,x3]; |
| 5214 |
x2-x4=-.5u; x3'r=x3r; y3'=.3x_height; |
| 5215 |
if (y3'/hair)<3.5: x3'l:=x3'l+.5hair; fi; |
| 5216 |
bot y2l=-o; top y4l=x_height+o; |
| 5217 |
rt x5r=w-2u; bot y5=-d; top y6r=h; |
| 5218 |
{{ |
| 5219 |
save stem; stem:=.8cap_stem; |
| 5220 |
lowercase_points(5,6,1.2jut); |
| 5221 |
}}; |
| 5222 |
p0=z3l---z3'l{z2r-z3r}..z2l..z1l..z4l..{down}z3l; |
| 5223 |
p1=z3r{up}..z4r..z1r..z2r..{up}z3'r--z3r; |
| 5224 |
p2=z5a--z6l; |
| 5225 |
p3=lowercase_lower_u_serif(5,hair); |
| 5226 |
tim1-2=xpart(subpath (2, 5) of p0 intersectiontimes p2); |
| 5227 |
tim2 =xpart(subpath (0,3) of p0 intersectiontimes ((0,0)--(w,0))); |
| 5228 |
if tim2<0: tim2:=xpart(subpath (0,3) of p0 intersectiontimes ((0,o)--(w,o))); fi; |
| 5229 |
tim3 =xpart(p3 intersectiontimes ((0,-o)--(x3'r,-o))); |
| 5230 |
z7=point tim1 of p0 + like_stem*up; |
| 5231 |
tim4 =xpart(p0 intersectiontimes ((.5w,y7-.5hair)--(w,y7-.5hair))); |
| 5232 |
if tim4=-1: tim4:=xpart(p0 intersectiontimes ((.5[x4,x7],bar_height)--(.5[x4,x7],h))) fi; |
| 5233 |
p4=z3r{up}..z4r..z1r..z2r..z2r+2hair*right..{up}z3'r--z3r; |
| 5234 |
filldraw subpath (tim2, tim4) of p0..z7---lowercase_stem_upper(5,6) |
| 5235 |
---subpath(0,tim3) of p3..cycle; |
| 5236 |
oblu.more:=1.25f_obl; |
| 5237 |
infill p4..cycle; |
| 5238 |
infill ifobl(6r,6b,5r,5l,more,)---z5a..z5..z5f---cycle; |
| 5239 |
oblu:=bbw; |
| 5240 |
p100:=subpath(2,4) of p0; |
| 5241 |
p101:=subpath(1,3) of p4; |
| 5242 |
z100=bsktouch(p100,down,p101,up); |
| 5243 |
z101=bsktouch(p100,up,p101,down); |
| 5244 |
tim100=xpart(p100 intersectiontimes (z100--(x100,h))); |
| 5245 |
tim101=xpart(p101 intersectiontimes (z100--(x100,0))); |
| 5246 |
tim102=xpart(p100 intersectiontimes (z101--(x101,y2l-5))); |
| 5247 |
tim103=xpart(p101 intersectiontimes (z101--(x101,y3))); |
| 5248 |
infill subpath(rundy(p100,tim102),rundy(p100,tim100).zpet) of p100 |
| 5249 |
..reverse subpath(rundy(p101,tim103).zpet,rundy(p101,tim101)) of p101..cycle; |
| 5250 |
penlabels(1,3',2,3,4); labels(7,100,101); |
| 5251 |
endchar; |
| 5252 |
|
| 5253 |
iff known chars.latin_d_SS: |
| 5254 |
bskchar "The sans-serif letter d"; |
| 5255 |
beginchar(chars.latin_d_SS,11u#,asc_height#,0); uni "0x1D5BD"; |
| 5256 |
italcorr asc_height#*slant-.75u#; |
| 5257 |
adjust_fit(0,serif_fit#); |
| 5258 |
pickup tiny.nib; |
| 5259 |
path p[]; numeric tim[]; oblu:=2oblu; |
| 5260 |
pos1(curve,0); pos3'(hair,180); pos2(hair,90); |
| 5261 |
pos3(hair,180); pos4(hair,270); |
| 5262 |
lft x1l=u; lft x3r=w-2u-stem; y3=.65x_height; y1=.5x_height; |
| 5263 |
.5[x2,x4]=.5[x1,x3]; |
| 5264 |
x2-x4=-.5u; x3'r=x3r; y3'=.3x_height; |
| 5265 |
if (y3'/hair)<3.5: x3'l:=x3'l+.5hair; fi; |
| 5266 |
bot y2l=0; top y4l=x_height+o; |
| 5267 |
rt x5r=w-2u; bot y5=-d; top y6r=h; |
| 5268 |
lowercase_points(5,6,1.2jut); |
| 5269 |
p0=z3l---z3'l{z2r-z3r}..z2l..z1l..z4l..{down}z3l; |
| 5270 |
p1=z3r{up}..z4r..z1r..z2r..{up}z3'r--z3r; |
| 5271 |
p2=z5a--z6l; |
| 5272 |
p3=lowercase_lower_u_serif(5,hair); |
| 5273 |
tim1-2=xpart(subpath (2, 5) of p0 intersectiontimes p2); |
| 5274 |
tim2 =xpart(subpath (0,3) of p0 intersectiontimes ((0,0)--(w,0))); |
| 5275 |
if tim2<0: tim2:=xpart(subpath (0,3) of p0 intersectiontimes ((0,o)--(w,o))); fi; |
| 5276 |
tim3 =xpart(p3 intersectiontimes ((0,-o)--(x3'r,-o))); |
| 5277 |
z7=point tim1 of p0 + like_stem*up; |
| 5278 |
tim4 =xpart(p0 intersectiontimes ((.5w,y7-.5hair)--(w,y7-.5hair))); |
| 5279 |
if tim4=-1: tim4:=xpart(p0 intersectiontimes ((.5[x4,x7],bar_height)--(.5[x4,x7],h))) fi; |
| 5280 |
p4=z3r{up}..z4r..z1r..z2r..z2r+2hair*right..{up}z3'r--z3r; |
| 5281 |
filldraw subpath (2, tim4) of p0..z7---z6b..z6r---obl(5r,6r,2l)---cycle; |
| 5282 |
infill p4..cycle; |
| 5283 |
penlabels(1,3',2,3,4); labels(7); |
| 5284 |
endchar; |
| 5285 |
|
| 5286 |
iff known chars.latin_dstroke: |
| 5287 |
bskchar "The letter d with stroke"; |
| 5288 |
beginchar(chars.latin_dstroke,11u#,asc_height#,0); uni "0x0111"; |
| 5289 |
italcorr asc_height#*slant; |
| 5290 |
adjust_fit(serif_fit#,0); |
| 5291 |
pickup tiny.nib; |
| 5292 |
path p[]; numeric tim[]; oblu:=2f_obl; oblu.light:=f_obl; |
| 5293 |
pos1(curve,0); pos3'(hair,180); pos2(hair,90); |
| 5294 |
pos3(hair,180); pos4(hair,270); |
| 5295 |
pos8(bar,90); pos8'(bar,90); pos9(bar,90); pos9'(bar,90); |
| 5296 |
lft x1l=u; lft x3r=w-2u-stem; y3=.65x_height; y1=.5x_height; |
| 5297 |
.5[x2,x4]=.5[x1,x3]; |
| 5298 |
x2-x4=-.5u; x3'r=x3r; y3'=.3x_height; |
| 5299 |
if (y3'/hair)<3.5: x3'l:=x3'l+.5hair; fi; |
| 5300 |
bot y2l=-o; top y4l=x_height+o; |
| 5301 |
rt x5r=w-2u; bot y5=-d; top y6r=h; |
| 5302 |
x9-x8=4u; y9=y9'=y8=y8'=.4[x_height,h]; rt x9=w-.5u; |
| 5303 |
x8'=x6l; x9'=x6r; bskpoints(8,9,hair,hair); |
| 5304 |
lowercase_points(5,6,1.2jut); |
| 5305 |
p0=z3l---z3'l{z2r-z3r}..z2l..z1l..z4l..{down}z3l; |
| 5306 |
p1=z3r{up}..z4r..z1r..z2r..{up}z3'r--z3r; |
| 5307 |
p2=z5a--z6l; |
| 5308 |
p3=lowercase_lower_u_serif(5,hair); |
| 5309 |
tim1-2=xpart(subpath (2, 5) of p0 intersectiontimes p2); |
| 5310 |
tim2 =xpart(subpath (0,3) of p0 intersectiontimes ((0,0)--(w,0))); |
| 5311 |
if tim2<0: tim2:=xpart(subpath (0,3) of p0 intersectiontimes ((0,o)--(w,o))); fi; |
| 5312 |
tim3 =xpart(p3 intersectiontimes ((0,-o)--(x3'r,-o))); |
| 5313 |
z7=point tim1 of p0 + like_stem*up; |
| 5314 |
tim4 =xpart(p0 intersectiontimes ((.5w,y7-.5hair)--(w,y7-.5hair))); |
| 5315 |
if tim4=-1: tim4:=xpart(p0 intersectiontimes ((.5[x4,x7],bar_height)--(.5[x4,x7],h))) fi; |
| 5316 |
p4=z3r{up}..z4r..z1r..z2r..z2r+2hair*right..{up}z3'r--z3r; |
| 5317 |
filldraw subpath (tim2, tim4) of p0..z7 |
| 5318 |
---obl(8'l,7,8l).light---z8l..z8rr---obl(8'r,8r,6b).light |
| 5319 |
---lowercase_stem_upper(5,6) |
| 5320 |
---obl(9'r,6r,9r).light---z9r..z9ll---obl(9'l,9l,5f).light |
| 5321 |
---subpath(0,tim3) of p3..cycle; |
| 5322 |
infill p4..cycle; |
| 5323 |
penlabels(1,3',2,3,4,8,8',9,9'); labels(7,8rr,9ll); |
| 5324 |
endchar; |
| 5325 |
|
| 5326 |
iff known chars.sign_dong: |
| 5327 |
bskchar "Dong sign"; |
| 5328 |
beginchar(chars.sign_dong,11u#,asc_height#,2rule_thickness#+o#); uni "0x20AB"; |
| 5329 |
italcorr asc_height#*slant; |
| 5330 |
adjust_fit(serif_fit#,0); |
| 5331 |
pickup tiny.nib; |
| 5332 |
path p[]; numeric tim[]; oblu:=2oblu; oblu.light:=f_obl; |
| 5333 |
pos1(curve,0); pos3'(hair,180); pos2(hair,90); |
| 5334 |
pos3(hair,180); pos4(hair,270); |
| 5335 |
pos8(bar,90); pos8'(bar,90); pos9(bar,90); pos9'(bar,90); |
| 5336 |
pos10(rule_thickness,90); pos11(rule_thickness,90); |
| 5337 |
lft x1l=u; lft x3r=w-2u-stem; y3=.65x_height; y1=.5x_height; |
| 5338 |
.5[x2,x4]=.5[x1,x3]; |
| 5339 |
x2-x4=-.5u; x3'r=x3r; y3'=.3x_height; |
| 5340 |
if (y3'/hair)<3.5: x3'l:=x3'l+.5hair; fi; |
| 5341 |
bot y2l=-o; top y4l=x_height+o; |
| 5342 |
rt x5r=w-2u; bot y5=0; top y6r=h; |
| 5343 |
y9=y9'=y8=y8'=.4[x_height,h]; rt x9=w-.5u; lft x8=x1r; |
| 5344 |
x8'=x6l; x9'=x6r; bskpoints(8,9,hair,hair); |
| 5345 |
lowercase_points(5,6,1.2jut); |
| 5346 |
bot y10l=bot y11l=-d; lft x10=u; rt x11=w-u; |
| 5347 |
p0=z3l---z3'l{z2r-z3r}..z2l..z1l..z4l..{down}z3l; |
| 5348 |
p1=z3r{up}..z4r..z1r..z2r..{up}z3'r--z3r; |
| 5349 |
p2=z5a--z6l; |
| 5350 |
p3=lowercase_lower_u_serif(5,hair); |
| 5351 |
tim1-2=xpart(subpath (2, 5) of p0 intersectiontimes p2); |
| 5352 |
tim2 =xpart(subpath (0,3) of p0 intersectiontimes ((0,0)--(w,0))); |
| 5353 |
if tim2<0: tim2:=xpart(subpath (0,3) of p0 intersectiontimes ((0,o)--(w,o))); fi; |
| 5354 |
tim3 =xpart(p3 intersectiontimes ((0,-o)--(x3'r,-o))); |
| 5355 |
z7=point tim1 of p0 + like_stem*up; |
| 5356 |
tim4 =xpart(p0 intersectiontimes ((.5w,y7-.5hair)--(w,y7-.5hair))); |
| 5357 |
if tim4=-1: tim4:=xpart(p0 intersectiontimes ((.5[x4,x7],bar_height)--(.5[x4,x7],h))) fi; |
| 5358 |
p4=z3r{up}..z4r..z1r..z2r..z2r+2hair*right..{up}z3'r--z3r; |
| 5359 |
filldraw subpath (tim2, tim4) of p0..z7 |
| 5360 |
---obl(8'l,7,8l).light---z8l..z8rr---obl(8'r,8r,6b).light |
| 5361 |
---lowercase_stem_upper(5,6) |
| 5362 |
---obl(9'r,6r,9r).light---z9r..z9ll---obl(9'l,9l,5f).light |
| 5363 |
---subpath(0,tim3) of p3..cycle; |
| 5364 |
infill p4..cycle; |
| 5365 |
filldraw bskrule(10,11,rule_thickness,rule_thickness); |
| 5366 |
penlabels(1,3',2,3,4,8,8',9,9'); labels(7,8rr,9ll); |
| 5367 |
endchar; |
| 5368 |
|
| 5369 |
iff known chars.latin_eth: |
| 5370 |
bskchar "The letter eth"; |
| 5371 |
beginchar(chars.latin_eth,10u#,asc_height#,0); uni "0x00F0"; |
| 5372 |
italcorr bar_height#*slant; |
| 5373 |
adjust_fit(0,0); |
| 5374 |
pickup tiny.nib; |
| 5375 |
path p[]; numeric tim[], theta; oblu:=2oblu; |
| 5376 |
pos1(curve,0); pos2(hair,90); pos3(hair,180); pos4(hair,270); |
| 5377 |
pos5(curve,180); pos6(hair,-90); |
| 5378 |
lft x1l=u; y1=y3=.5x_height; x2=x4=.5w+.5hair; bot y2l=-o; .5[y4r,y2r]=y3; |
| 5379 |
rt x5l=w-u; y5l=y3l+stem; top y6l=h+o; lft x6=u; |
| 5380 |
p0=z2r{right}..z5r..{dir170}z6r; x3l=xpart (((w,y3)--(.5w,y3))intersectionpoint p0); |
| 5381 |
p1=z2l{left}..z1l..z4l..{down}z3l; |
| 5382 |
p2=z2r{right}..z5r..{dir170}z6r; |
| 5383 |
z0=bsktouch(p1,right,p2,left); |
| 5384 |
tim1=xpart(p1 intersectiontimes (z0--(x4,y0))); |
| 5385 |
tim2=xpart(p2 intersectiontimes (z0--(w,y0))); |
| 5386 |
p3:=z6l{dir-10}..z5l..{left}z2l; |
| 5387 |
p4:=z2l{left}..subpath(0,rundy(p1,tim1).zpet) of p1..subpath(rundy(p2,tim2),infinity) of p2; |
| 5388 |
tim0=xpart(p3 intersectiontimes ((0,.5[x_height,h])--(w,.5[x_height,h]))); |
| 5389 |
top y8=h; x8=.5[x5,x4]; z7=z8+5u*unitvector(((direction tim0 of p3) rotated -95)); |
| 5390 |
if y7<y4l+o: y7:=y7+hair; fi |
| 5391 |
theta:=angle(z8-z7)+90; |
| 5392 |
pos7(bar,theta); pos8(bar,theta); bskpoints(7,8,bar,bar); |
| 5393 |
p5:=z7rr---z8r; |
| 5394 |
p6:=z8ll---z7l; |
| 5395 |
(tim3,tim4)=p3 intersectiontimes p5; |
| 5396 |
(tim5,tim6)=p3 intersectiontimes p6; |
| 5397 |
(tim7,tim8)=p4 intersectiontimes p6; |
| 5398 |
(tim9,tim10)=p4 intersectiontimes p5; |
| 5399 |
filldraw subpath(0,rundy(p3,tim3).zpet) of p3 |
| 5400 |
..subpath(rundy(p5,tim4),infinity) of p5 |
| 5401 |
..{z7l-z8l}z8ll..subpath(rundy(p3,(tim5,2hair)),infinity) of p3 |
| 5402 |
..subpath(0,rundy(p4,tim7).zpet) of p4 |
| 5403 |
..subpath(rundy(p6,tim8),infinity) of p6 |
| 5404 |
..subpath(0,rundy(p5,tim10).zpet) of p5 |
| 5405 |
..subpath(rundy(p4,tim9),infinity) of p4..cycle; |
| 5406 |
infill z1r{up}..z4r..z3r..z2r..cycle; |
| 5407 |
penlabels(1,2,3,4,5,6,7,8); labels(7rr,8ll); |
| 5408 |
endchar; |
| 5409 |
|
| 5410 |
charscription(9u,x_height,0)( |
| 5411 |
path p[]; numeric tim[], shift; |
| 5412 |
oblu:=2.5oblu; |
| 5413 |
pos1(curve,0); pos2(hair,90); pos3(hair,270); pos4(curve,180); |
| 5414 |
lft x1l=u; y1=y4=.5h; x2=x3=.5w+hair; bot y2l=-o; top y3l=h+o; |
| 5415 |
rt x0=w-u; y0=.2h; z0'=z0+hair*dir220; x4=w-x1; |
| 5416 |
p0=z0---z0'+o*down..{left}z2l..z1l..{right}z3l..{down}z4l; |
| 5417 |
p1=z4r{up}..z3r{left}..z1r..{right}z2r..z0'; |
| 5418 |
tim1=xpart(p0 intersectiontimes ((.5w,bar_height)--(w,bar_height))); |
| 5419 |
tim2=xpart(p1 intersectiontimes ((.5w,bar_height)--(w,bar_height))); |
| 5420 |
shift:=lft xpart(point tim1 of p0)- w+u; |
| 5421 |
x4l:=x4l-shift; x4r:=x4r-shift; |
| 5422 |
p0:=z0---z0'+o*down..{left}z2l..z1l..{right}z3l..{down}z4l; |
| 5423 |
p1:=z4r{up}..z3r{left}..z1r..{right}z2r..z0'if testdpi:+up fi; |
| 5424 |
tim3=xpart(p0 intersectiontimes ((w,bar_height)--(x3,bar_height))); |
| 5425 |
tim4=xpart(p1 intersectiontimes ((0,bar_height)--(x3,bar_height))); |
| 5426 |
tim5=xpart(p1 intersectiontimes ((0,bar_height)--(x3,bar_height))); |
| 5427 |
tim6=xpart(p1 intersectiontimes ((w,bar_height+bar-tiny)--(x3,bar_height+bar-tiny))); |
| 5428 |
tim7=xpart(p1 intersectiontimes ((0,bar_height+bar-tiny)--(x3,bar_height+bar-tiny))); |
| 5429 |
p2=point tim3 of p0 -- point tim4 of p1; |
| 5430 |
p3=point tim7 of p1 -- point tim6 of p1; |
| 5431 |
filldraw subpath(0,rundy(p0,(tim3,hair)).zpet) of p0--(subpath(0,rundy(p2,1).zpet) of p2).. |
| 5432 |
subpath(rundy(p1,(tim5,if bold_face: 2f_obl else: oblu fi)),infinity) of p1 |
| 5433 |
{z0-z0'-o*down}..cycle; |
| 5434 |
oblu:=1.5f_obl; |
| 5435 |
infill subpath (rundy(p1,tim6),rundy(p1,tim7).zpet) of p1..subpath(rundy(p3,0),rundy(p3,1).zpet) |
| 5436 |
of p3..cycle; |
| 5437 |
penlabels(1,2,3,4); labels(0,0'); |
| 5438 |
); |
| 5439 |
|
| 5440 |
iff known chars.latin_e: |
| 5441 |
bskchar "The letter e"; |
| 5442 |
beginchar(chars.latin_e,9u#,x_height#,0); uni "0x0065"; |
| 5443 |
italcorr bar_height#*slant; |
| 5444 |
adjust_fit(0,0); |
| 5445 |
pickup tiny.nib; |
| 5446 |
usechar; |
| 5447 |
endchar; |
| 5448 |
|
| 5449 |
iff known chars.latin_eacute: |
| 5450 |
bskchar "The letter e with acute"; |
| 5451 |
beginchar(chars.latin_eacute,9u#,asc_height#,0); uni "0x00E9"; |
| 5452 |
italcorr bar_height#*slant; |
| 5453 |
adjust_fit(0,0); |
| 5454 |
pickup tiny.nib; |
| 5455 |
x101=x3-u; |
| 5456 |
usechar; |
| 5457 |
acute(100,101); |
| 5458 |
endchar; |
| 5459 |
|
| 5460 |
iff known chars.latin_ecaron: |
| 5461 |
bskchar "The letter e with caron"; |
| 5462 |
beginchar(chars.latin_ecaron,9u#,asc_height#,0); uni "0x011B"; |
| 5463 |
italcorr asc_height#*slant-.5u#; |
| 5464 |
adjust_fit(0,0); |
| 5465 |
pickup tiny.nib; |
| 5466 |
usechar; |
| 5467 |
x101=x3; |
| 5468 |
hacek(100,101,102); |
| 5469 |
endchar; |
| 5470 |
|
| 5471 |
iff known chars.latin_egrave: |
| 5472 |
bskchar "The letter e with grave"; |
| 5473 |
beginchar(chars.latin_egrave,9u#,asc_height#,0); uni "0x00E8"; |
| 5474 |
italcorr bar_height#*slant; |
| 5475 |
adjust_fit(0,0); |
| 5476 |
pickup tiny.nib; |
| 5477 |
usechar; |
| 5478 |
lft x101l=x3; |
| 5479 |
grave(100,101); |
| 5480 |
endchar; |
| 5481 |
|
| 5482 |
iff known chars.latin_edoublegrave: |
| 5483 |
bskchar "The letter e with double grave"; |
| 5484 |
beginchar(chars.latin_edoublegrave,9u#,asc_height#,0); uni "0x0205"; |
| 5485 |
italcorr bar_height#*slant; |
| 5486 |
adjust_fit(0,0); |
| 5487 |
pickup tiny.nib; |
| 5488 |
usechar; |
| 5489 |
x102-x100=3u; x102r=x3; |
| 5490 |
d_grave(100,101,102,103,whatever); |
| 5491 |
endchar; |
| 5492 |
|
| 5493 |
iff known chars.latin_ecircumflex: |
| 5494 |
bskchar "The letter e with circumflex"; |
| 5495 |
beginchar(chars.latin_ecircumflex,9u#,asc_height#-.1x_height#,0); uni "0x00EA"; |
| 5496 |
italcorr .5[asc_height#,x_height#]*slant-.25u#; |
| 5497 |
adjust_fit(0,0); |
| 5498 |
pickup tiny.nib; |
| 5499 |
usechar; |
| 5500 |
x101=x3; |
| 5501 |
circumflex(100,101,102); |
| 5502 |
endchar; |
| 5503 |
|
| 5504 |
iff known chars.latin_eumlaut: |
| 5505 |
bskchar "The letter e with umlaut"; |
| 5506 |
beginchar(chars.latin_eumlaut,9u#,asc_height#-dot_size#,0); uni "0x00EB"; |
| 5507 |
italcorr bar_height#*slant; |
| 5508 |
adjust_fit(0,0); |
| 5509 |
pickup tiny.nib; |
| 5510 |
usechar; |
| 5511 |
.5[x100,x101]=x3; x101-x100=3u; |
| 5512 |
umlaut(100,101); |
| 5513 |
endchar; |
| 5514 |
|
| 5515 |
iff known chars.latin_emacron: |
| 5516 |
bskchar "The letter e with macron"; |
| 5517 |
beginchar(chars.latin_emacron,9u#,.5[asc_height#,x_height#],0); uni "0x0113"; |
| 5518 |
italcorr .5[asc_height#,x_height#]*slant-.5u#; |
| 5519 |
adjust_fit(0,0); |
| 5520 |
pickup tiny.nib; |
| 5521 |
usechar; |
| 5522 |
x100=x1r; |
| 5523 |
macron(100,101); |
| 5524 |
endchar; |
| 5525 |
|
| 5526 |
iff known chars.latin_edotabove: |
| 5527 |
bskchar "The letter e with dot above"; |
| 5528 |
beginchar(chars.latin_edotabove,9u#,asc_height#-.5dot_size#,0); uni "0x0117"; |
| 5529 |
italcorr bar_height#*slant; |
| 5530 |
adjust_fit(0,0); |
| 5531 |
pickup tiny.nib; |
| 5532 |
usechar; |
| 5533 |
x100=x3; |
| 5534 |
dotabove(100); |
| 5535 |
endchar; |
| 5536 |
|
| 5537 |
iff known chars.latin_ebreve: |
| 5538 |
bskchar "The letter e with breve"; |
| 5539 |
beginchar(chars.latin_ebreve,9u#,asc_height#,0); uni "0x0115"; |
| 5540 |
italcorr asc_height#*slant-.5u#; |
| 5541 |
adjust_fit(0,0); |
| 5542 |
pickup tiny.nib; |
| 5543 |
usechar; |
| 5544 |
x101=x3; x102-x100=5u; |
| 5545 |
breve(100,101,102); |
| 5546 |
endchar; |
| 5547 |
|
| 5548 |
iff known chars.latin_einvbreve: |
| 5549 |
bskchar "The letter e with inverted breve"; |
| 5550 |
beginchar(chars.latin_einvbreve,9u#,asc_height#+o#,0); uni "0x0207"; |
| 5551 |
italcorr x_height#*slant; |
| 5552 |
adjust_fit(0,0); |
| 5553 |
pickup tiny.nib; |
| 5554 |
usechar; |
| 5555 |
x101=x3; x102-x100=5u; |
| 5556 |
tieacc(100,101,102); |
| 5557 |
endchar; |
| 5558 |
|
| 5559 |
iff known chars.latin_e_BB: |
| 5560 |
bskchar "The blackboard-bold letter e"; |
| 5561 |
beginchar(chars.latin_e_BB,9u#,x_height#,0); uni "0x1D556"; |
| 5562 |
italcorr bar_height#*slant; |
| 5563 |
adjust_fit(0,0); |
| 5564 |
pickup tiny.nib; |
| 5565 |
path p[]; numeric tim[], shift; |
| 5566 |
oblu:=2.5oblu; |
| 5567 |
pos1(cap_stem,0); pos2(hair,90); pos3(hair,270); pos4(cap_stem,180); |
| 5568 |
lft x1l=u; y1=y4=.5h; x2=x3=.5w+hair; bot y2l=-o; top y3l=h+o; |
| 5569 |
rt x0=w-u; y0=.2h; z0'=z0+hair*dir220; x4=w-x1; |
| 5570 |
p0=z0---z0'+o*down..{left}z2l..z1l..{right}z3l..{down}z4l; |
| 5571 |
p1=z4r{up}..z3r{left}..z1r..{right}z2r..z0'; |
| 5572 |
tim1=xpart(p0 intersectiontimes ((.5w,bar_height)--(w,bar_height))); |
| 5573 |
tim2=xpart(p1 intersectiontimes ((.5w,bar_height)--(w,bar_height))); |
| 5574 |
shift:=lft xpart(point tim1 of p0)- w+u; |
| 5575 |
x4l:=x4l-shift; x4r:=x4r-shift; |
| 5576 |
p0:=z0---z0'+o*down..{left}z2l..z1l..{right}z3l..{down}z4l; |
| 5577 |
p1:=z4r{up}..z3r{left}..z1r..{right}z2r..z0'if testdpi:+up fi; |
| 5578 |
tim3=xpart(p0 intersectiontimes ((w,bar_height)--(x3,bar_height))); |
| 5579 |
tim4=xpart(p1 intersectiontimes ((0,bar_height)--(x3,bar_height))); |
| 5580 |
tim5=xpart(p1 intersectiontimes ((0,bar_height)--(x3,bar_height))); |
| 5581 |
tim6=xpart(p1 intersectiontimes ((w,bar_height+bar-tiny)--(x3,bar_height+bar-tiny))); |
| 5582 |
tim7=xpart(p1 intersectiontimes ((0,bar_height+bar-tiny)--(x3,bar_height+bar-tiny))); |
| 5583 |
p2=point tim3 of p0 -- point tim4 of p1; |
| 5584 |
p3=point tim7 of p1 -- point tim6 of p1; |
| 5585 |
filldraw subpath(0,rundy(p0,(tim3,hair)).zpet) of p0--(subpath(0,rundy(p2,1).zpet) of p2).. |
| 5586 |
subpath(rundy(p1,(tim5,if bold_face: 2f_obl else: oblu fi)),infinity) of p1 |
| 5587 |
{z0-z0'-o*down}..cycle; |
| 5588 |
oblu:=1.5f_obl; |
| 5589 |
infill subpath (rundy(p1,tim6),rundy(p1,tim7).zpet) of p1..subpath(rundy(p3,0),rundy(p3,1).zpet) |
| 5590 |
of p3..cycle; |
| 5591 |
oblu:=bbw; |
| 5592 |
p100:=p0; |
| 5593 |
p101:=subpath(1,infinity) of p1; |
| 5594 |
p102:=subpath(4,tim3) of p100; |
| 5595 |
p103:=subpath(tim6,1) of p1; |
| 5596 |
z100=bsktouch(p100,up,p101,down); |
| 5597 |
z101=bsktouch(p100,down,p101,up); |
| 5598 |
z102=bsktouch(p102,down,p103,up); |
| 5599 |
tim100=xpart(p100 intersectiontimes (z100--(x100,y2l-5))); |
| 5600 |
tim101=xpart(p101 intersectiontimes (z100--(x100,y1))); |
| 5601 |
tim102=xpart(p100 intersectiontimes (z101--(x101,y3l+5))); |
| 5602 |
tim103=xpart(p101 intersectiontimes (z101--(x101,y1))); |
| 5603 |
tim104=xpart(p102 intersectiontimes (z102--(x102,y3l+5))); |
| 5604 |
tim105=xpart(p103 intersectiontimes (z102--(x102,y1))); |
| 5605 |
infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100 |
| 5606 |
..subpath(rundy(p101,tim103),rundy(p101,tim101).zpet) of p101..cycle; |
| 5607 |
oblu:=.75bbw; |
| 5608 |
infill subpath(rundy(p102,tim104),rundy(p102,length(p102)).zpet) of p102 |
| 5609 |
..subpath(rundy(p103,0),rundy(p103,tim105).zpet) of p103..cycle; |
| 5610 |
penlabels(1,2,3,4); labels(0,0',100,101,102); |
| 5611 |
endchar; |
| 5612 |
|
| 5613 |
iff known chars.latin_e_SS: |
| 5614 |
bskchar "The sans-serif letter e"; |
| 5615 |
beginchar(chars.latin_e_SS,9u#,x_height#,0); uni "0x1D5BE"; |
| 5616 |
italcorr bar_height#*slant; |
| 5617 |
adjust_fit(-o#,0); |
| 5618 |
pickup tiny.nib; |
| 5619 |
path p[]; numeric tim[], shift; |
| 5620 |
oblu:=2.5oblu; |
| 5621 |
pos1(curve,0); pos2(hair,90); pos3(hair,270); pos4(curve,180); |
| 5622 |
lft x1l=u; y1=y4=.5h; x2=x3=.5w+hair; bot y2l=-o; top y3l=h+o; |
| 5623 |
rt x0=w-u; y0=.2h; z0'=z0+hair*dir220; x4=w-x1; |
| 5624 |
p0=z0---z0'+o*down..{left}z2l..z1l..{right}z3l..{down}z4l; |
| 5625 |
p1=z4r{up}..z3r{left}..z1r..{right}z2r..z0'; |
| 5626 |
tim1=xpart(p0 intersectiontimes ((.5w,bar_height)--(w,bar_height))); |
| 5627 |
tim2=xpart(p1 intersectiontimes ((.5w,bar_height)--(w,bar_height))); |
| 5628 |
shift:=lft xpart(point tim1 of p0)- w+u; |
| 5629 |
x4l:=x4l-shift; x4r:=x4r-shift; |
| 5630 |
p0:=z0---z0'+o*down..{left}z2l..z1l..{right}z3l..{down}z4l; |
| 5631 |
p1:=z4r{up}..z3r{left}..z1r..{right}z2r..z0'if testdpi:+up fi---z0+o*up; |
| 5632 |
tim3=xpart(p0 intersectiontimes ((w,bar_height)--(x3,bar_height))); |
| 5633 |
tim4=xpart(p1 intersectiontimes ((0,bar_height)--(x3,bar_height))); |
| 5634 |
tim5=xpart(p1 intersectiontimes ((0,bar_height)--(x3,bar_height))); |
| 5635 |
tim6=xpart(p1 intersectiontimes ((w,bar_height+hair-tiny)--(x3,bar_height+hair-tiny))); |
| 5636 |
tim7=xpart(p1 intersectiontimes ((0,bar_height+hair-tiny)--(x3,bar_height+hair-tiny))); |
| 5637 |
p2=point tim3 of p0 -- point tim4 of p1; |
| 5638 |
p3=point tim7 of p1 -- point tim6 of p1; |
| 5639 |
filldraw subpath(0,rundy(p0,(tim3,hair)).zpet) of p0--(subpath(0,rundy(p2,1).zpet) of p2).. |
| 5640 |
subpath(rundy(p1,(tim5,if bold_face: 2f_obl else: oblu fi)),infinity) of p1 |
| 5641 |
{z0-z0'-o*down}..cycle; |
| 5642 |
oblu:=1.5f_obl; |
| 5643 |
infill subpath (rundy(p1,tim6),rundy(p1,tim7).zpet) of p1..subpath(rundy(p3,0),rundy(p3,1).zpet) |
| 5644 |
of p3..cycle; |
| 5645 |
penlabels(1,2,3,4); labels(0,0'); |
| 5646 |
endchar; |
| 5647 |
|
| 5648 |
iff known chars.latin_eogonek: |
| 5649 |
bskchar "The letter e with ogonek"; |
| 5650 |
beginchar(chars.latin_eogonek,9u#,x_height#+o#,.85desc_depth#); uni "0x0119"; |
| 5651 |
italcorr bar_height#*slant; |
| 5652 |
adjust_fit(0,0); |
| 5653 |
pickup tiny.nib; |
| 5654 |
path p[]; numeric tim[], shift; |
| 5655 |
oblu:=2.5oblu; |
| 5656 |
pos1(curve,0); pos2(hair,90); pos3(hair,270); pos4(curve,180); |
| 5657 |
pos5(stem,0); pos6(curve,0); pos7(hair,45); pos8(hair,160); |
| 5658 |
lft x1l=u; y1=y4=.5h; x2=x3=.5w+hair; bot y2l=-o; top y3l=h+o; |
| 5659 |
rt x0=w-u; y0=.2h; z0'=z0+hair*dir220; x4=w-x1; |
| 5660 |
p0=z0---z0'+o*down..{left}z2l..z1l..{right}z3l..{down}z4l; |
| 5661 |
p1=z4r{up}..z3r{left}..z1r..{right}z2r..z0'; |
| 5662 |
tim1=xpart(p0 intersectiontimes ((.5w,bar_height)--(w,bar_height))); |
| 5663 |
tim2=xpart(p1 intersectiontimes ((.5w,bar_height)--(w,bar_height))); |
| 5664 |
shift:=lft xpart(point tim1 of p0)- w+u; |
| 5665 |
x4l:=x4l-shift; x4r:=x4r-shift; |
| 5666 |
x5-x6l=1.5u; x5l=x2; x7-x6l=3u; rt x8l-x7=1.5u; |
| 5667 |
y5=0; y6=-.5d; bot y7l=-d; y8=-2/3d; |
| 5668 |
p0:=z0---z0'+o*down..{left}z2l..z1l..{right}z3l..{down}z4l; |
| 5669 |
p1:=z4r{up}..z3r{left}..z1r..{right}z2r..z0'; |
| 5670 |
tim3=xpart(p0 intersectiontimes ((w,bar_height)--(x3,bar_height))); |
| 5671 |
tim4=xpart(p1 intersectiontimes ((0,bar_height)--(x3,bar_height))); |
| 5672 |
tim5=xpart(p1 intersectiontimes ((0,bar_height)--(x3,bar_height))); |
| 5673 |
tim6=xpart(p1 intersectiontimes ((w,bar_height+bar-tiny)--(x3,bar_height+bar-tiny))); |
| 5674 |
tim7=xpart(p1 intersectiontimes ((0,bar_height+bar-tiny)--(x3,bar_height+bar-tiny))); |
| 5675 |
p2:=point tim3 of p0 -- point tim4 of p1; |
| 5676 |
p3:=point tim7 of p1 -- point tim6 of p1; |
| 5677 |
p4:=reverse (z5l{z6l-z5r}..z6l...z7l..{z5-z6}z8l..z8r{z6-z5}..z7r..z6r..z5r); |
| 5678 |
tim8=xpart(p0 intersectiontimes ((x5r,0)--(x5r,h))); |
| 5679 |
tim9=xpart(p0 intersectiontimes subpath(1,infinity) of p4); |
| 5680 |
filldraw subpath(0,rundy(p0,tim8).zpet) of p0 |
| 5681 |
..subpath(rundy(p4,0),rundy(p4,infinity).zpet) of p4 |
| 5682 |
..subpath(rundy(p0,tim9),rundy(p0,(tim3,hair)).zpet) of p0 |
| 5683 |
--(subpath(0,rundy(p2,1).zpet) of p2) |
| 5684 |
..subpath(rundy(p1,(tim5,if bold_face: 1.5f_obl else: oblu fi)),infinity) of p1{z0-z0'-o*down} |
| 5685 |
..cycle; |
| 5686 |
oblu:=1.5f_obl; |
| 5687 |
infill subpath (rundy(p1,tim6),rundy(p1,tim7).zpet) of p1..subpath(rundy(p3,0),rundy(p3,1).zpet) |
| 5688 |
of p3..cycle; |
| 5689 |
penlabels(1,2,3,4,5,6,7,8); labels(0,0'); |
| 5690 |
endchar; |
| 5691 |
|
| 5692 |
iff known chars.latin_ecedilla: |
| 5693 |
bskchar "The letter e with cedilla"; |
| 5694 |
beginchar(chars.latin_ecedilla,9u#,x_height#,.65desc_depth#); uni "0x0229"; |
| 5695 |
italcorr bar_height#*slant; |
| 5696 |
adjust_fit(0,0); |
| 5697 |
pickup tiny.nib; |
| 5698 |
path p[]; numeric tim[], shift; |
| 5699 |
oblu:=2.5oblu; |
| 5700 |
pos1(curve,0); pos2(hair,90); pos3(hair,270); pos4(curve,180); |
| 5701 |
pos5(.5stem,0); pos6(.5stem,0); pos7(stem,0); pos8(.5stem,-110); |
| 5702 |
lft x1l=u; y1=y4=.5h; x2=x3=.5w+hair; bot y2l=-o; top y3l=h+o; |
| 5703 |
rt x0=w-u; y0=.2h; z0'=z0+hair*dir220; x4=w-x1; |
| 5704 |
p0=z0---z0'+o*down..{left}z2l..z1l..{right}z3l..{down}z4l; |
| 5705 |
p1=z4r{up}..z3r{left}..z1r..{right}z2r..z0'; |
| 5706 |
tim1=xpart(p0 intersectiontimes ((.5w,bar_height)--(w,bar_height))); |
| 5707 |
tim2=xpart(p1 intersectiontimes ((.5w,bar_height)--(w,bar_height))); |
| 5708 |
shift:=lft xpart(point tim1 of p0)- w+u; |
| 5709 |
x4l:=x4l-shift; x4r:=x4r-shift; |
| 5710 |
x5l=x6l; z5r=z2l; y6=-hair; y7=-.5d; |
| 5711 |
rt x7r-lft x8r=4u; x5r-lft x8r=2u; y8r=-d; |
| 5712 |
p0:=z0---z0'+o*down..{left}z2l..z1l..{right}z3l..{down}z4l; |
| 5713 |
p1:=z4r{up}..z3r{left}..z1r..{right}z2r..z0'if testdpi: +up fi; |
| 5714 |
tim3=xpart(p0 intersectiontimes ((w,bar_height)--(x3,bar_height))); |
| 5715 |
tim4=xpart(p1 intersectiontimes ((0,bar_height)--(x3,bar_height))); |
| 5716 |
tim5=xpart(p1 intersectiontimes ((0,bar_height)--(x3,bar_height))); |
| 5717 |
tim6=xpart(p1 intersectiontimes ((w,bar_height+bar-tiny)--(x3,bar_height+bar-tiny))); |
| 5718 |
tim7=xpart(p1 intersectiontimes ((0,bar_height+bar-tiny)--(x3,bar_height+bar-tiny))); |
| 5719 |
p2:=point tim3 of p0 -- point tim4 of p1; |
| 5720 |
p3:=point tim7 of p1 -- point tim6 of p1; |
| 5721 |
p4:=z6r..{down}z7r..{left}z8r..{right}z8l..{up}z7l..z6l--z5l; |
| 5722 |
p5:=z5r{down}..subpath (rundy(p4,(0,curve)),infinity) of p4; |
| 5723 |
tim8=xpart(p0 intersectiontimes (z6l--(x5l,y0))); |
| 5724 |
filldraw subpath(0,rundy(p0,2).zpet) of p0..subpath(rundy(p5,0),rundy(p5,infinity).zpet) of p5 |
| 5725 |
..subpath(rundy(p0,(tim8,hair)),rundy(p0,(tim3,hair)).zpet) of p0 |
| 5726 |
--(subpath(0,rundy(p2,1).zpet) of p2) |
| 5727 |
..subpath(rundy(p1,(tim5,if bold_face: 1.5f_obl else: oblu fi)),infinity) of p1{z0-z0'-o*down} |
| 5728 |
..cycle; |
| 5729 |
oblu:=1.5f_obl; |
| 5730 |
infill subpath (rundy(p1,tim6),rundy(p1,tim7).zpet) of p1..subpath(rundy(p3,0),rundy(p3,1).zpet) |
| 5731 |
of p3..cycle; |
| 5732 |
penlabels(1,2,3,4,5,6,7,8); labels(0,0'); |
| 5733 |
endchar; |
| 5734 |
|
| 5735 |
iff known chars.latin_oe: |
| 5736 |
bskchar "The ligature oe"; |
| 5737 |
beginchar(chars.latin_oe,13.5u#,x_height#,0); uni "0x0153"; |
| 5738 |
italcorr bar_height#*slant; |
| 5739 |
adjust_fit(0,0); |
| 5740 |
pickup tiny.nib; |
| 5741 |
path p[]; numeric tim[], shift; |
| 5742 |
oblu:=2.5oblu; |
| 5743 |
pos1(curve,0); pos2(hair,90); pos3(hair,270); pos4(curve,180); |
| 5744 |
pos5(curve,0); pos6(hair,90); pos7(curve,180); pos8(hair,270); |
| 5745 |
lft x1l=5.5u; y1=y4=.5h; x2=x3=.5w+hair+2u; bot y2l=-o; top y3l=h+o; |
| 5746 |
rt x0=w-u; y0=.2h; z0'=z0+hair*dir220; x4=w-u-lft .5curve; |
| 5747 |
lft x5l=u; x7r=x1r; y5=y7=.5h; .5[x6,x8]=.5[x5,x7]; |
| 5748 |
x6=x8; bot y6l=-o; top y8l=h+o; x8r:=x8r+.25u; x6r:=x6r-.25u; |
| 5749 |
p0=z0---z0'+if monospace: 1.5\\fi o*down..{left}z2l..z1l..{right}z3l..{down}z4l; labels(4l); |
| 5750 |
p1=z4r{up}..z3r{left}..z1r..{right}z2r..z0'; |
| 5751 |
tim1=xpart(p0 intersectiontimes ((.5w,bar_height)--(w,bar_height))); |
| 5752 |
tim2=xpart(p1 intersectiontimes ((.5w,bar_height)--(w,bar_height))); |
| 5753 |
shift:=lft xpart(point tim1 of p0)- w+u; |
| 5754 |
x4l:=x4l-shift; x4r:=x4r-shift; |
| 5755 |
p0:=z0---z0'+if monospace: 1.5\\fi o*down..{left}z2l..z1l..{right}z3l..{down}z4l; |
| 5756 |
p1:=z4r{up}..z3r{left}..z1r..{right}z2r..if monospace:{z0-z0'+o*up}z0 else: z0' fi if testdpi: +up fi; |
| 5757 |
tim3=xpart(p0 intersectiontimes ((w,bar_height)--(x3,bar_height))); |
| 5758 |
tim4=xpart(p1 intersectiontimes ((0,bar_height)--(x3,bar_height))); |
| 5759 |
tim5=xpart(p1 intersectiontimes ((0,bar_height)--(x3,bar_height))); |
| 5760 |
tim6=xpart(p1 intersectiontimes ((w,bar_height+bar-tiny)--(x3,bar_height+bar-tiny))); |
| 5761 |
tim7=xpart(p1 intersectiontimes ((0,bar_height+bar-tiny)--(x3,bar_height+bar-tiny))); |
| 5762 |
p2=point tim3 of p0 -- point tim4 of p1; |
| 5763 |
p3=point tim7 of p1 -- point tim6 of p1; |
| 5764 |
p4=z7l{down}..z6l..{up}z5l..z8l..cycle; |
| 5765 |
p5=z7r{down}..z6r..{up}z5r..z8r..cycle; |
| 5766 |
(tim8,tim9)=p0 intersectiontimes p4; |
| 5767 |
(tim10,tim11)=subpath(2,infinity) of p4 intersectiontimes p0; |
| 5768 |
(tim12,tim13)=p5 intersectiontimes p0; |
| 5769 |
(tim14,tim15)=subpath(2,infinity) of p5 intersectiontimes p0; |
| 5770 |
filldraw subpath(0,rundy(p0,tim8).zpet) of p0.. |
| 5771 |
subpath(rundy(p4,tim9),rundy(p4,2+tim10).zpet) of p4 .. |
| 5772 |
subpath(rundy(p0,tim11),rundy(p0,(tim3,hair)).zpet) of p0-- |
| 5773 |
subpath(0,rundy(p2,1).zpet) of p2.. |
| 5774 |
subpath(rundy(p1,(tim5, if bold_face: 1.5f_obl else: oblu fi)),infinity) of p1 |
| 5775 |
{z0-z0'-o*down}..cycle; |
| 5776 |
oblu:=1.5f_obl; |
| 5777 |
infill subpath (rundy(p1,tim6),rundy(p1,tim7).zpet) of p1..subpath(rundy(p3,0),rundy(p3,1).zpet) |
| 5778 |
of p3..cycle; |
| 5779 |
infill subpath(rundy(p5,tim12),rundy(p5,2+tim14).zpet) of p5.. |
| 5780 |
subpath(rundy(p0,tim15).zpet,rundy(p0,tim13)) of p0..cycle; |
| 5781 |
penlabels(1,2,3,4,5,6,7,8); labels(0,0'); |
| 5782 |
endchar; |
| 5783 |
|
| 5784 |
charscription(12.5u,x_height,0)( |
| 5785 |
path p[]; numeric tim[], shift; |
| 5786 |
oblu:=2.5oblu; |
| 5787 |
pos1(curve,0); pos2(hair,90); pos3(hair,270); pos4(curve,180); |
| 5788 |
lft x1l=5.25u; y1=y4=.5h; x2=x3=.5w+hair+2.25u; bot y2l=-o; top y3l=h+o; |
| 5789 |
rt x0=w-u; y0=.2h; z0'=z0+hair*dir220; x4=w-u-lft .5curve; |
| 5790 |
z5l=(x1l,h-like_curve); z6l=z5l+like_hair*down; z7=(u,stem+hair); |
| 5791 |
pos6(hair,angle(z7-z6l)+90); pos8(curve,30); pos9(hair,120); |
| 5792 |
lft x8l=u; y8r=y7-like_hair; x9r=.5[x1r,lft u]; y9l=o; |
| 5793 |
pos10(hair,angle((x1,y7)-z9l)+90); z10l=(.5[x1,x1r],y7); |
| 5794 |
pos11(stem,0); pos12(hair,90); pos13(stem,180); |
| 5795 |
z11l=(x1l,h-curve); top y12r=h+o; x12=x9r; |
| 5796 |
z13'=z13+(o,-.2stem); z13''=z13+.5(stem-currentbreadth)*dir135; |
| 5797 |
y13''=.5[y11,y12l]; lft x13r=u+o; |
| 5798 |
p0=z0---z0'+if monospace: 1.5\\fi o*down..{left}z2l..z1l..{right}z3l..{down}z4l; |
| 5799 |
p1=z4r{up}..z3r{left}..z1r..{right}z2r..z0'; |
| 5800 |
tim1=xpart(p0 intersectiontimes ((.5w,bar_height)--(w,bar_height))); |
| 5801 |
tim2=xpart(p1 intersectiontimes ((.5w,bar_height)--(w,bar_height))); |
| 5802 |
shift:=lft xpart(point tim1 of p0)- w+u; |
| 5803 |
x4l:=x4l-shift; x4r:=x4r-shift; |
| 5804 |
p0:=z0---z0'+if monospace: 1.5\\fi o*down..{left}z2l..z1l..{right}z3l..{down}z4l; |
| 5805 |
p1:=z4r{up}..z3r{left}..z1r..{right}z2r..if monospace:{z0-z0'+.5o*up}z0 else: z0' fi if testdpi: +up fi; |
| 5806 |
tim3=xpart(p0 intersectiontimes ((w,bar_height)--(x3,bar_height))); |
| 5807 |
tim4=xpart(p1 intersectiontimes ((0,bar_height)--(x3,bar_height))); |
| 5808 |
tim5=xpart(p1 intersectiontimes ((0,bar_height)--(x3,bar_height))); |
| 5809 |
tim6=xpart(p1 intersectiontimes ((w,bar_height+bar-tiny)--(x3,bar_height+bar-tiny))); |
| 5810 |
tim7=xpart(p1 intersectiontimes ((0,bar_height+bar-tiny)--(x3,bar_height+bar-tiny))); |
| 5811 |
p2=point tim3 of p0 -- point tim4 of p1; |
| 5812 |
p3=point tim7 of p1 -- point tim6 of p1; |
| 5813 |
p4=z10l{z9l-z1}..z9l..z8l..{z6l-z7-hair*up}z6l; |
| 5814 |
p5=z1l---z11l..{left}z12l..{down}z13l..z13'..{up}z13r..z13'' |
| 5815 |
..{right}z12r...z11r---(x11r,y1); |
| 5816 |
p6=z10r{dir(angle(z9l-z1))}..z9r..z8r..{z6r-z7-hair*up}z6r; |
| 5817 |
(tim8,tim9)=p0 intersectiontimes p4; |
| 5818 |
if tim8<0: %Hack for math parameters |
| 5819 |
tim8:=xpart(p0 intersectiontimes (z10l--(x2,y10l))); |
| 5820 |
tim9:=0; |
| 5821 |
fi |
| 5822 |
(tim10,tim11)=p4 intersectiontimes p5; |
| 5823 |
(tim12,tim13)=subpath(2,infinity) of p5 intersectiontimes p0; |
| 5824 |
(tim14,tim15)=p6 intersectiontimes p0; |
| 5825 |
if tim15<0: %Hack for math parameters |
| 5826 |
tim15:=xpart(p0 intersectiontimes (z10r--(x2,y10r))); |
| 5827 |
tim14:=0; |
| 5828 |
fi |
| 5829 |
(tim16,tim17)=p6 intersectiontimes p5; |
| 5830 |
if tim16<0: tim16:=infinity; fi |
| 5831 |
filldraw subpath(0,rundy(p0,tim8).zpet) of p0 |
| 5832 |
..subpath(rundy(p4,tim9),rundy(p4,tim10).zpet) of p4 |
| 5833 |
..subpath(rundy(p5,tim11),rundy(p5,2+tim12).zpet) of p5 |
| 5834 |
..subpath(rundy(p0,tim13),rundy(p0,(tim3,hair)).zpet) of p0 |
| 5835 |
--subpath(0,rundy(p2,1).zpet) of p2 |
| 5836 |
..subpath(rundy(p1,(tim5, if bold_face: 1.5f_obl else: oblu fi)),infinity) of p1{z0-z0'-o*down} |
| 5837 |
..cycle; |
| 5838 |
oblu:=1.5f_obl; |
| 5839 |
infill subpath (rundy(p1,tim6),rundy(p1,tim7).zpet) of p1 |
| 5840 |
..subpath(rundy(p3,0),rundy(p3,1).zpet) of p3..cycle; |
| 5841 |
infill subpath(rundy(p6,tim14),rundy(p6,tim16).zpet) of p6 |
| 5842 |
..(reverse subpath(0,rundy(p5,tim17).zpet) of p5) |
| 5843 |
..subpath(3,rundy(p0,tim15)) of p0..cycle; |
| 5844 |
penlabels(1,2,3,4,5,6,8,9,10,11,12,13); labels(0,0',7,13',13''); |
| 5845 |
); |
| 5846 |
|
| 5847 |
iff known chars.latin_ae: |
| 5848 |
bskchar "The ligature ae"; |
| 5849 |
beginchar(chars.latin_ae,12.5u#,x_height#,0); uni "0x00E6"; |
| 5850 |
italcorr bar_height#*slant; |
| 5851 |
adjust_fit(0,0); |
| 5852 |
pickup tiny.nib; |
| 5853 |
usechar; |
| 5854 |
endchar; |
| 5855 |
|
| 5856 |
iff known chars.latin_aemacron: |
| 5857 |
bskchar "The ligature ae with macron"; |
| 5858 |
beginchar(chars.latin_aemacron,12.5u#,.5[asc_height#,x_height#],0); uni "0x01E3"; |
| 5859 |
italcorr bar_height#*slant; |
| 5860 |
adjust_fit(0,0); |
| 5861 |
pickup tiny.nib; |
| 5862 |
usechar; |
| 5863 |
macron(100,101); |
| 5864 |
endchar; |
| 5865 |
|
| 5866 |
iff known chars.latin_aeacute: |
| 5867 |
bskchar "The ligature ae with acute"; |
| 5868 |
beginchar(chars.latin_aeacute,12.5u#,asc_height#,0); uni "0x01FD"; |
| 5869 |
italcorr bar_height#*slant; |
| 5870 |
adjust_fit(0,0); |
| 5871 |
pickup tiny.nib; |
| 5872 |
usechar; |
| 5873 |
rt x101=x1; |
| 5874 |
acute(100,101); |
| 5875 |
endchar; |
| 5876 |
|
| 5877 |
iff known chars.latin_f: |
| 5878 |
bskchar "The letter f"; |
| 5879 |
beginchar(chars.latin_f,6.5u#, asc_height#, 0); uni "0x0066"; |
| 5880 |
italcorr asc_height#*slant+1.5u#; |
| 5881 |
adjust_fit(serif_fit#,serif_fit#); |
| 5882 |
pickup tiny.nib; |
| 5883 |
numeric fend; fend:=stem; |
| 5884 |
pos3(hair,-90); pos4(fend,180); |
| 5885 |
lft x1l=2.5u; bot y1=0; top y2=h-like_curve; |
| 5886 |
top y3l=h+o; x3=if monospace: .6[w,x1r] else: w-1.25u fi; |
| 5887 |
.5[x2r,x4]=x3; y4''=y3r-like_hair; |
| 5888 |
z4'=z4+.2fend*down+o*left; z4''=z4+.5(fend-currentbreadth)*dir45; |
| 5889 |
lowercase_points(1,2,jut); |
| 5890 |
if not bold_face: y2r:=y2r+hair; fi; |
| 5891 |
z3'r=z3r+.5hair*right; |
| 5892 |
pos5(hair,90); pos5'(hair,90); pos6(hair,90); pos6'(hair,90); |
| 5893 |
y5=y5'=y6=y6'=bot x_height; |
| 5894 |
lft x5=u; x6=if monospace: 2x1-x5 else: w-u fi; x5'=x1l; x6'=x1r; |
| 5895 |
filldraw z1a..z1b{left}..z1c{right}..z1+ser_boule*up..{right}z1d.. |
| 5896 |
{left}z1e..{up}z1f---obl(6'l,1r,6l)---z6l..z6r---obl(6'r,6r,2r)--- |
| 5897 |
z2r...{right}z3r..z4r..z4'..z4l{up}..z4''..z3l..z2l--- |
| 5898 |
obl(5'r,2l,5r)---z5r..z5l---obl(5'l,5l,1l)---cycle; |
| 5899 |
penlabels(3,4,5,5',6,6'); labels(4',4''); |
| 5900 |
endchar; |
| 5901 |
|
| 5902 |
iff known chars.latin_f_BB: |
| 5903 |
bskchar "The blackboard-bold letter f"; |
| 5904 |
beginchar(chars.latin_f_BB,6.5u#, asc_height#, 0); uni "0x1D557"; |
| 5905 |
italcorr asc_height#*slant+1.5u#; |
| 5906 |
adjust_fit(serif_fit#,serif_fit#); |
| 5907 |
pickup tiny.nib; |
| 5908 |
numeric fend; fend:=stem; |
| 5909 |
pos3(hair,-90); pos4(fend,180); |
| 5910 |
lft x1l=2.5u; bot y1=0; top y2=h-like_curve; |
| 5911 |
top y3l=h+o; x3=if monospace: .6[w,x1r] else: w-1.25u fi; |
| 5912 |
.5[x2r-.5(cap_stem-stem),x4]=x3; y4''=y3r-like_hair; |
| 5913 |
z4'=z4+.2fend*down+o*left; z4''=z4+.5(fend-currentbreadth)*dir45; |
| 5914 |
save stem; numeric stem; stem:=.8cap_stem; |
| 5915 |
lowercase_points(1,2,jut); |
| 5916 |
if not bold_face: y2r:=y2r+hair; fi; |
| 5917 |
z3'r=z3r+.5hair*right; |
| 5918 |
pos5(hair,90); pos5'(hair,90); pos6(hair,90); pos6'(hair,90); |
| 5919 |
y5=y5'=y6=y6'=bot x_height; |
| 5920 |
lft x5=u; x6=if monospace: 2x1-x5 else: w-u fi; x5'=x1l; x6'=x1r; |
| 5921 |
filldraw z1a..z1b{left}..z1c{right}..z1+ser_boule*up..{right}z1d.. |
| 5922 |
{left}z1e..{up}z1f---obl(6'l,1r,6l)---z6l..z6r---obl(6'r,6r,2r)--- |
| 5923 |
z2r...{right}z3r..z4r..z4'..z4l{up}..z4''..z3l..z2l--- |
| 5924 |
obl(5'r,2l,5r)---z5r..z5l---obl(5'l,5l,1l)---cycle; |
| 5925 |
path p[]; numeric tim[]; |
| 5926 |
p100:=z6'r---z2r..{right}z3r; |
| 5927 |
p101:=z4l{up}..z4''..z3l..z2l---z5'r; |
| 5928 |
bot z100=(x1l,y1b); |
| 5929 |
z101=bsktouch(p100,up,p101,down); |
| 5930 |
tim100=xpart(p100 intersectiontimes (z101--(x101,y2))); |
| 5931 |
tim101=xpart(p101 intersectiontimes (z101--(x101,y3l+5))); |
| 5932 |
infill subpath(rundy(p101,(tim101,bbw)),infinity) of p101---obl(100,2b,1b) |
| 5933 |
...z1l---obl(1r,1l,2r)---subpath(0,rundy(p100,(tim100,bbw)).zpet) of p100 |
| 5934 |
..cycle; |
| 5935 |
penlabels(3,4,5,5',6,6'); labels(4',4'',100,101); |
| 5936 |
endchar; |
| 5937 |
|
| 5938 |
iff known chars.latin_f_SS: |
| 5939 |
bskchar "The sans-serif letter f"; |
| 5940 |
beginchar(chars.latin_f_SS,6.5u#, asc_height#, 0); uni "0x1D5BF"; |
| 5941 |
italcorr asc_height#*slant+1.5u#; |
| 5942 |
adjust_fit(serif_fit#,serif_fit#); |
| 5943 |
pickup tiny.nib; |
| 5944 |
numeric fend; fend:=stem; |
| 5945 |
pos3(hair,-90); pos4(fend,180); |
| 5946 |
lft x1l=2.5u; bot y1=0; top y2=h-like_curve; |
| 5947 |
top y3l=h+o; x3=if monospace: .6[w,x1r] else: w-1.25u fi; |
| 5948 |
.5[x2r,x4]=x3; y4''=y3r-like_hair; |
| 5949 |
z4'=z4+.2fend*down+o*left; z4''=z4+.5(fend-currentbreadth)*dir45; |
| 5950 |
lowercase_points(1,2,jut); |
| 5951 |
z3'r=z3r+.5hair*right; |
| 5952 |
pos5(hair,90); pos5'(hair,90); pos6(hair,90); pos6'(hair,90); |
| 5953 |
y5=y5'=y6=y6'=bot x_height; |
| 5954 |
lft x5=u; x6=if monospace: 2x1-x5 else: w-u fi; x5'=x1l; x6'=x1r; |
| 5955 |
filldraw z1a..z1..z1f---obl(6'l,1r,6l)---z6l..z6r---obl(6'r,6r,2r)--- |
| 5956 |
z2r...{right}z3r..z4r..z4'..z4l{up}..z4''..z3l..z2l--- |
| 5957 |
obl(5'r,2l,5r)---z5r..z5l---obl(5'l,5l,1l)---cycle; |
| 5958 |
penlabels(3,4,5,5',6,6'); labels(4',4''); |
| 5959 |
endchar; |
| 5960 |
|
| 5961 |
iff known chars.latin_ff: |
| 5962 |
bskchar "The ligature ff"; |
| 5963 |
beginchar(chars.latin_ff,11u#, asc_height#, 0); uni "0xFB00"; |
| 5964 |
italcorr asc_height#*slant+1.75u#; |
| 5965 |
adjust_fit(serif_fit#,serif_fit#); |
| 5966 |
pickup tiny.nib; |
| 5967 |
numeric fend, ijut, tim[]; fend:=stem; |
| 5968 |
path p[]; |
| 5969 |
pos3(hair,-90); pos4(fend,180); pos7(hair,-90); pos8(fend,180); |
| 5970 |
lft x1l=2.5u; x5l=.5[x3,x4]; bot y1=bot y5=0; top y2=top y6=h-like_curve; |
| 5971 |
top y3l=top y7l=h+o; .5[x2r,x4]=x3; y4''=y3r-like_hair; lft x4r=w-2.2u-stem; |
| 5972 |
y8''=y7r-like_hair; z8'=z8+.2fend*down+o*left; z8''=z8+.5(fend-currentbreadth)*dir45; |
| 5973 |
x7=if monospace: .6[w,x5r] else: w-1.25u fi; .5[x6r,x8]=x7; |
| 5974 |
z4'=z4+.2fend*down+o*left; z4''=z4+.5(fend-currentbreadth)*dir45; |
| 5975 |
lowercase_points(1,2,jut); lowercase_points(5,6,jut); |
| 5976 |
if not bold_face: y2r:=y6r:=y2r+hair; fi; |
| 5977 |
ijut=.5hair; x1e:=x1e-ijut; x1d:=x1d-ijut; x5c:=x5c+ijut; x5b:=x5b+ijut; |
| 5978 |
z3'r=z3r+.5hair*right; z7'r=z7r+.5hair*right; |
| 5979 |
pos9(hair,90); pos9'(hair,90); pos10(hair,90); pos10'(hair,90); |
| 5980 |
pos11(hair,90); pos11'(hair,90); |
| 5981 |
y9=y9'=y10=y10'=y11=y11'=bot x_height; |
| 5982 |
lft x9=u; x11=if monospace: x5r+x9'-x9 else: w-u fi; x9'=x1l; x10=x6l; x10'=x1r; x11'=x6r; |
| 5983 |
p0=z8l{up}..z8''..z7l..{down}z6l; |
| 5984 |
p1=z4l{up}..z4''..z3l..{down}z2l; |
| 5985 |
p2=z2r...{right}z3r..z4r..z4'..{up}z4l; |
| 5986 |
(tim0,tim1)=p0 intersectiontimes p1; |
| 5987 |
(tim2,tim3)=p2 intersectiontimes p0; |
| 5988 |
filldraw z1a..z1b{left}..z1c{right}..z1+ser_boule*up..{right}z1d.. |
| 5989 |
{left}z1e..z1f---obl(10'l,1r,10l)---obl(10l,10'l,5l)--- |
| 5990 |
z5a..z5b{left}..z5c{right}..z5+ser_boule*up..{right}z5d.. |
| 5991 |
{left}z5e..z5f---obl(11'l,5r,11l)---z11l..z11r---obl(11'r,11r,6r)--- |
| 5992 |
z6r...{right}z7r..z8r..z8'..subpath(0,rundy(p0,tim0).zpet) of p0.. |
| 5993 |
subpath(rundy(p1,tim1),infinity) of p1 |
| 5994 |
--obl(9'r,2l,9r)---z9r..z9l---obl(9'l,9l,1l)---cycle; |
| 5995 |
infill z2r---obl(10'r,2r,10r)---obl(10r,10'r,6l)---z6l-- |
| 5996 |
(reverse subpath(rundy(p0,tim3),infinity) of p0).. |
| 5997 |
(reverse subpath(0,rundy(p2,tim2).zpet) of p2)&cycle; |
| 5998 |
penlabels(3,4,7,8,9,9',10,10',11,11'); labels(4',4'',8',8''); |
| 5999 |
endchar; |
| 6000 |
|
| 6001 |
iff known chars.latin_ff_alt: |
| 6002 |
bskchar "The ligature ff---alternative"; |
| 6003 |
beginchar(chars.latin_ff_alt,11u#, asc_height#, 0); uni "non"; %"0xFB00"; |
| 6004 |
italcorr asc_height#*slant+1.75u#; |
| 6005 |
adjust_fit(serif_fit#,serif_fit#); |
| 6006 |
pickup tiny.nib; |
| 6007 |
numeric fend, ijut, tim[]; fend:=stem; |
| 6008 |
path p[]; |
| 6009 |
pos3(hair,-90); pos4(fend,180); pos7(hair,-90); pos8(fend,180); |
| 6010 |
lft x1l=2.5u; x5l=.5[x3,x4]; bot y1=bot y5=0; top y2+like_hair=top y6=h-like_curve; |
| 6011 |
top y3l+like_hair=top y7l=h+o; .5[x2r,x4]=x3; y4''+like_hair=y3r-like_hair; lft x4r=w-2.2u-stem; |
| 6012 |
y8''=y7r-like_hair; z8'=z8+.2fend*down+o*left; z8''=z8+.5(fend-currentbreadth)*dir45; |
| 6013 |
x7=if monospace: .6[w,x5r] else: w-1.25u fi; .5[x6r,x8]=x7; |
| 6014 |
z4'=z4+.2fend*down+o*left; z4''=z4+.5(fend-currentbreadth)*dir45; |
| 6015 |
lowercase_points(1,2,jut); lowercase_points(5,6,jut); |
| 6016 |
if not bold_face: y2r:=y6r:=y2r+hair; fi; |
| 6017 |
ijut=.5hair; x1e:=x1e-ijut; x1d:=x1d-ijut; x5c:=x5c+ijut; x5b:=x5b+ijut; |
| 6018 |
z3'r=z3r+.5hair*right; z7'r=z7r+.5hair*right; |
| 6019 |
pos9(hair,90); pos9'(hair,90); pos10(hair,90); pos10'(hair,90); |
| 6020 |
pos11(hair,90); pos11'(hair,90); |
| 6021 |
y9=y9'=y10=y10'=y11=y11'=bot x_height; |
| 6022 |
lft x9=u; x11=if monospace: x5r+x9'-x9 else: w-u fi; x9'=x1l; x10=x6l; x10'=x1r; x11'=x6r; |
| 6023 |
p0=z8l{up}..z8''..z7l..{down}z6l; |
| 6024 |
p1=z4l{up}..z4''..z3l..{down}z2l; |
| 6025 |
p2=z2r...{right}z3r..z4r..z4'..{up}z4l; |
| 6026 |
(tim0,tim1)=p0 intersectiontimes p1; |
| 6027 |
(tim2,tim3)=p2 intersectiontimes p0; |
| 6028 |
filldraw z1a..z1b{left}..z1c{right}..z1+ser_boule*up..{right}z1d.. |
| 6029 |
{left}z1e..z1f---obl(10'l,1r,10l)---obl(10l,10'l,5l)--- |
| 6030 |
z5a..z5b{left}..z5c{right}..z5+ser_boule*up..{right}z5d.. |
| 6031 |
{left}z5e..z5f---obl(11'l,5r,11l)---z11l..z11r---obl(11'r,11r,6r)--- |
| 6032 |
z6r...{right}z7r..z8r..z8'..subpath(0,rundy(p0,tim0).zpet) of p0.. |
| 6033 |
subpath(rundy(p1,tim1),infinity) of p1 |
| 6034 |
--obl(9'r,2l,9r)---z9r..z9l---obl(9'l,9l,1l)---cycle; |
| 6035 |
infill z2r---obl(10'r,2r,10r)---obl(10r,10'r,6l)---z6l-- |
| 6036 |
(reverse subpath(rundy(p0,tim3),infinity) of p0).. |
| 6037 |
(reverse subpath(0,rundy(p2,tim2).zpet) of p2)&cycle; |
| 6038 |
penlabels(3,4,7,8,9,9',10,10',11,11'); labels(4',4'',8',8''); |
| 6039 |
endchar; |
| 6040 |
|
| 6041 |
charscription(11u,asc_height,0)( |
| 6042 |
numeric fend, tim; fend:=stem; |
| 6043 |
path p; |
| 6044 |
pos3(hair,-90); pos4(fend,180); |
| 6045 |
lft x1l=2.5u; bot y1=0; top y2=h-like_curve; |
| 6046 |
top y3l=h+o; .5[x2r,x4]=x3; top y4''=y3r-top like_hair; |
| 6047 |
z4'=z4+.2fend*down+o*left; z4''=z4+.5(fend-currentbreadth)*dir45; |
| 6048 |
lowercase_points(1,2,jut); |
| 6049 |
if not bold_face: y2r:=y2r+hair; fi; |
| 6050 |
z3'r=z3r+.5hair*right; |
| 6051 |
pos5(hair,90); pos5'(hair,90); pos6(hair,90); pos6'(hair,90); |
| 6052 |
bot y7=0; top y8=h; rt x7r=w-2u; |
| 6053 |
lowercase_points(7,8,jut); |
| 6054 |
y5=y5'=y6=y6'=bot x_height; |
| 6055 |
lft x5=u; x6-x1r=x1l-x5; x5'=x1l; x6'=x1r; |
| 6056 |
x4r=x7l; |
| 6057 |
p:=z4l{up}..z4''..z3l..{down}z2l; |
| 6058 |
tim=xpart(p intersectiontimes ((.75[x8a,x8l],y4r)--(.75[x8a,x8l],h))); |
| 6059 |
filldraw z1a..z1b{left}..z1c{right}..z1+ser_boule*up..{right}z1d.. |
| 6060 |
{left}z1e..{up}z1f---obl(6'l,1r,6l)---z6l..z6r---obl(6'r,6r,2r)--- |
| 6061 |
z2r...{right}z3r..z4r---z7a..z7b{left}..{right}z7c..z7+ser_boule*up |
| 6062 |
..z7d{right}..{left}z7e..z7f---z8r{z8a-z8}..subpath(tim,infinity) of p |
| 6063 |
---obl(5'r,2l,5r)---z5r..z5l---obl(5'l,5l,1l)---cycle; |
| 6064 |
penlabels(3,4,5,5',6,6'); labels(4',4''); |
| 6065 |
); |
| 6066 |
|
| 6067 |
iff known chars.latin_fl: |
| 6068 |
bskchar "The ligature fl"; |
| 6069 |
beginchar(chars.latin_fl,11u#, asc_height#, 0); uni "0xFB02"; |
| 6070 |
italcorr asc_height#*slant-u#; |
| 6071 |
adjust_fit(serif_fit#,serif_fit#); |
| 6072 |
pickup tiny.nib; |
| 6073 |
usechar; |
| 6074 |
endchar; |
| 6075 |
|
| 6076 |
iff known chars.latin_flacute: |
| 6077 |
bskchar "The ligature fl with acute"; |
| 6078 |
beginchar(chars.latin_flacute,11u#, asc_height#+.3x_height#, 0); uni "non"; |
| 6079 |
italcorr asc_height#*slant; |
| 6080 |
adjust_fit(serif_fit#,serif_fit#); |
| 6081 |
pickup tiny.nib; |
| 6082 |
usechar; |
| 6083 |
x101=.5[x8a,x8l]; x100r=w-u; y101=asc_height+.75u; |
| 6084 |
acute(100,101).capital; |
| 6085 |
endchar; |
| 6086 |
|
| 6087 |
iff known chars.latin_flcaron: |
| 6088 |
bskchar "The ligature fl with caron"; |
| 6089 |
beginchar(chars.latin_flcaron,11u# if bold_face: +.5u#fi, asc_height#, 0); uni "non"; |
| 6090 |
italcorr asc_height#*slant+u#; |
| 6091 |
adjust_fit(serif_fit#,serif_fit#); |
| 6092 |
pickup tiny.nib; |
| 6093 |
usechar; |
| 6094 |
y100''r=h; x100'''=w; |
| 6095 |
comma(100,.75dot_size,.5hair,.75comma_depth); |
| 6096 |
endchar; |
| 6097 |
|
| 6098 |
iff known chars.latin_ffl: |
| 6099 |
bskchar "The ligature ffl"; |
| 6100 |
beginchar(chars.latin_ffl,15u#, asc_height#, 0); uni "0xFB04"; |
| 6101 |
italcorr asc_height#*slant-u#; |
| 6102 |
adjust_fit(serif_fit#,serif_fit#); |
| 6103 |
pickup tiny.nib; |
| 6104 |
numeric fend, ijut, tim[]; fend:=stem; |
| 6105 |
path p[]; |
| 6106 |
pos3(hair,-90); pos4(fend,180); pos7(hair,-90); pos8(fend,180); |
| 6107 |
lft x1l=2.5u; x5l=.5[x3,x4]; bot y1=bot y5=0; top y2=top y6=h-like_curve; |
| 6108 |
top y3l=top y7l=h+o; .5[x2r,x4]=x3; y4''=y3r-like_hair; lft x4r=w-6.2u-stem; |
| 6109 |
y8''=y7r-top like_hair; z8'=z8+.2fend*down+o*left; z8''=z8+.5(fend-currentbreadth)*dir45; |
| 6110 |
.5[x6r,x8]=x7; |
| 6111 |
z4'=z4+.2fend*down+o*left; z4''=z4+.5(fend-currentbreadth)*dir45; |
| 6112 |
lowercase_points(1,2,jut); lowercase_points(5,6,jut); |
| 6113 |
if not bold_face: y2r:=y6r:=y2r+hair; fi; |
| 6114 |
ijut=.5hair; |
| 6115 |
x1e:=x1e-ijut; x1d:=x1d-ijut; x5c:=x5c+ijut; x5b:=x5b+ijut; |
| 6116 |
z3'r=z3r+.5hair*right; z7'r=z7r+.5hair*right; |
| 6117 |
bot y12=0; top y13=h; rt x12r=w-2u; x8r=x12l; |
| 6118 |
lowercase_points(12,13,jut); |
| 6119 |
pos9(hair,90); pos9'(hair,90); pos10(hair,90); pos10'(hair,90); |
| 6120 |
pos11(hair,90); pos11'(hair,90); |
| 6121 |
y9=y9'=y10=y10'=y11=y11'=bot x_height; |
| 6122 |
lft x9=u; x11=x5r+x9'-x9; x9'=x1l; x10=x6l; x10'=x1r; x11'=x6r; |
| 6123 |
p0=z8l{up}..z8''..z7l..{down}z6l; |
| 6124 |
p1=z4l{up}..z4''..z3l..{down}z2l; |
| 6125 |
p2=z2r...{right}z3r..z4r..z4'..{up}z4l; |
| 6126 |
(tim0,tim1)=p0 intersectiontimes p1; |
| 6127 |
(tim2,tim3)=p2 intersectiontimes p0; |
| 6128 |
tim4=xpart(p0 intersectiontimes ((.75[x12a,x12l],y8r)--(.75[x12a,x12l],h))); |
| 6129 |
if x12c-x5d<u: x5d:=x5d-ijut; x5e:=x5e-ijut; fi; |
| 6130 |
filldraw z1a..z1b{left}..z1c{right}..z1+ser_boule*up..{right}z1d.. |
| 6131 |
{left}z1e..z1f---obl(10'l,1r,10l)---obl(10l,10'l,5l)--- |
| 6132 |
z5a..z5b{left}..z5c{right}..z5+ser_boule*up..{right}z5d.. |
| 6133 |
{left}z5e..z5f---obl(11'l,5r,11l)---z11l..z11r---obl(11'r,11r,6r)--- |
| 6134 |
z6r...{right}z7r..z8r---z12a..{left}z12b..{right}z12c..z12+ser_boule*up |
| 6135 |
..z12d{right}..{left}z12e..z12f---z13r{z13a-z13}.. |
| 6136 |
subpath(tim4,rundy(p0,(tim0,2hair)).zpet) of p0.. |
| 6137 |
subpath(rundy(p1,(tim1,2hair)),infinity) of p1 |
| 6138 |
--obl(9'r,2l,9r)---z9r..z9l---obl(9'l,9l,1l)---cycle; |
| 6139 |
infill z2r---obl(10'r,2r,10r)---obl(10r,10'r,6l)---z6l.. |
| 6140 |
(reverse subpath(rundy(p0,tim3),infinity) of p0).. |
| 6141 |
(reverse subpath(0,rundy(p2,tim2).zpet) of p2)..cycle; |
| 6142 |
penlabels(3,4,7,8,9,9',10,10',11,11'); labels(4',4'',8',8''); |
| 6143 |
endchar; |
| 6144 |
|
| 6145 |
iff known chars.latin_ffl_alt: |
| 6146 |
bskchar "The ligature ffl---alternative"; |
| 6147 |
beginchar(chars.latin_ffl_alt,15u#, asc_height#, 0); uni "non"; %"0xFB04"; |
| 6148 |
italcorr asc_height#*slant-u#; |
| 6149 |
adjust_fit(serif_fit#,serif_fit#); |
| 6150 |
pickup tiny.nib; |
| 6151 |
numeric fend, ijut, tim[]; fend:=stem; |
| 6152 |
path p[]; |
| 6153 |
pos3(hair,-90); pos4(fend,180); pos7(hair,-90); pos8(fend,180); |
| 6154 |
lft x1l=2.5u; x5l=.5[x3,x4]; bot y1=bot y5=0; top y2+like_hair=top y6=h-like_curve; |
| 6155 |
top y3l+like_hair=top y7l=h+o; .5[x2r,x4]=x3; y4''+like_hair=y3r-like_hair; lft x4r=w-6.2u-stem; |
| 6156 |
y8''=y7r-top like_hair; z8'=z8+.2fend*down+o*left; z8''=z8+.5(fend-currentbreadth)*dir45; |
| 6157 |
.5[x6r,x8]=x7; |
| 6158 |
z4'=z4+.2fend*down+o*left; z4''=z4+.5(fend-currentbreadth)*dir45; |
| 6159 |
lowercase_points(1,2,jut); lowercase_points(5,6,jut); |
| 6160 |
if not bold_face: y2r:=y6r:=y2r+hair; fi; |
| 6161 |
ijut=.5hair; |
| 6162 |
x1e:=x1e-ijut; x1d:=x1d-ijut; x5c:=x5c+ijut; x5b:=x5b+ijut; |
| 6163 |
z3'r=z3r+.5hair*right; z7'r=z7r+.5hair*right; |
| 6164 |
bot y12=0; top y13=h; rt x12r=w-2u; x8r=x12l; |
| 6165 |
lowercase_points(12,13,jut); |
| 6166 |
pos9(hair,90); pos9'(hair,90); pos10(hair,90); pos10'(hair,90); |
| 6167 |
pos11(hair,90); pos11'(hair,90); |
| 6168 |
y9=y9'=y10=y10'=y11=y11'=bot x_height; |
| 6169 |
lft x9=u; x11=x5r+x9'-x9; x9'=x1l; x10=x6l; x10'=x1r; x11'=x6r; |
| 6170 |
p0=z8l{up}..z8''..z7l..{down}z6l; |
| 6171 |
p1=z4l{up}..z4''..z3l..{down}z2l; |
| 6172 |
p2=z2r...{right}z3r..z4r..z4'..{up}z4l; |
| 6173 |
(tim0,tim1)=p0 intersectiontimes p1; |
| 6174 |
(tim2,tim3)=p2 intersectiontimes p0; |
| 6175 |
tim4=xpart(p0 intersectiontimes ((.75[x12a,x12l],y8r)--(.75[x12a,x12l],h))); |
| 6176 |
if x12c-x5d<u: x5d:=x5d-ijut; x5e:=x5e-ijut; fi; |
| 6177 |
filldraw z1a..z1b{left}..z1c{right}..z1+ser_boule*up..{right}z1d.. |
| 6178 |
{left}z1e..z1f---obl(10'l,1r,10l)---obl(10l,10'l,5l)--- |
| 6179 |
z5a..z5b{left}..z5c{right}..z5+ser_boule*up..{right}z5d.. |
| 6180 |
{left}z5e..z5f---obl(11'l,5r,11l)---z11l..z11r---obl(11'r,11r,6r)--- |
| 6181 |
z6r...{right}z7r..z8r---z12a..{left}z12b..{right}z12c..z12+ser_boule*up |
| 6182 |
..z12d{right}..{left}z12e..z12f---z13r{z13a-z13}.. |
| 6183 |
subpath(tim4,rundy(p0,(tim0,2hair)).zpet) of p0.. |
| 6184 |
subpath(rundy(p1,(tim1,2hair)),infinity) of p1 |
| 6185 |
--obl(9'r,2l,9r)---z9r..z9l---obl(9'l,9l,1l)---cycle; |
| 6186 |
infill z2r---obl(10'r,2r,10r)---obl(10r,10'r,6l)---z6l.. |
| 6187 |
(reverse subpath(rundy(p0,tim3),infinity) of p0).. |
| 6188 |
(reverse subpath(0,rundy(p2,tim2).zpet) of p2)..cycle; |
| 6189 |
penlabels(3,4,7,8,9,9',10,10',11,11'); labels(4',4'',8',8''); |
| 6190 |
endchar; |
| 6191 |
|
| 6192 |
iff known chars.latin_fi: |
| 6193 |
bskchar "The ligature fi"; |
| 6194 |
beginchar(chars.latin_fi,11u#, asc_height#, 0); uni "0xFB01"; |
| 6195 |
italcorr .5[asc_height#,x_height#]*slant-.5u#; |
| 6196 |
adjust_fit(serif_fit#,serif_fit#); |
| 6197 |
pickup tiny.nib; |
| 6198 |
path p; |
| 6199 |
numeric fend, help; fend:=stem; |
| 6200 |
pos3(hair,-90); pos4(fend,180); |
| 6201 |
lft x1l=2.5u; bot y1=0; top y2=h-like_curve; |
| 6202 |
top y3l=h+o; .5[x2r,x4]=x3; top y4''=y3r-like_hair; |
| 6203 |
help:=y4''-.2fend-dot_size-x_height; |
| 6204 |
if help<.85stem: y4'':=.5[y3r,x_height]+.5dot_size+tiny; fi |
| 6205 |
z4'=z4+.2fend*down+o*left; z4''=z4+.5(fend-currentbreadth)*dir45; |
| 6206 |
lowercase_points(1,2,jut); |
| 6207 |
if not bold_face: y2r:=y2r+hair; fi; |
| 6208 |
z3'r=z3r+.5hair*right; |
| 6209 |
pos5(hair,90); pos5'(hair,90); pos6(hair,90); pos6'(hair,90); |
| 6210 |
bot y7=0; top y8=x_height; rt x7r=w-2u; |
| 6211 |
lowercase_points(7,8,1.2jut); |
| 6212 |
y5=y5'=y6=y6'=bot x_height-.5serif_drop; |
| 6213 |
lft x5=u; x6-x1r=x1l-x5; x5'=x1l; x6'=x1r; |
| 6214 |
x4r=x7l; |
| 6215 |
pos9(dot_size+tiny,10); |
| 6216 |
lft x9r=x4l; y9=y4l-.5dot_size; |
| 6217 |
p:=z8r---obl(6'r,6r,2r)---z2r...{right}z3r..{z4'-z4r}z4r; |
| 6218 |
filldraw z1a..z1b{left}..z1c{right}..z1+ser_boule*up..{right}z1d.. |
| 6219 |
{left}z1e..{up}z1f---obl(6'l,1r,6l)---z8a---obl(8b,8a,7a) |
| 6220 |
---z7a..z7b{left}..{right}z7c..z7+ser_boule*up..z7d{right} |
| 6221 |
..{left}z7e..{up}z7f---z8r&subpath(0,rundy(p,infinity).zpet) of p |
| 6222 |
..{down}z9l..z9r{up}..z4''..z3l..z2l---obl(5'r,2l,5r) |
| 6223 |
---z5r..z5l---obl(5'l,5l,1l)---cycle; |
| 6224 |
penlabels(3,4,5,5',6,6',9); labels(4',4''); |
| 6225 |
endchar; |
| 6226 |
|
| 6227 |
iff known chars.latin_fj: %Non-standard, not included in ligtables |
| 6228 |
bskchar "The ligature fj"; |
| 6229 |
beginchar(chars.latin_fj,11u#, asc_height#, desc_depth#); uni "non"; |
| 6230 |
italcorr .5[asc_height#,x_height#]*slant-.5u#; |
| 6231 |
adjust_fit(serif_fit#,serif_fit#); |
| 6232 |
pickup tiny.nib; |
| 6233 |
path p; |
| 6234 |
numeric fend, help; fend:=stem; |
| 6235 |
pos3(hair,-90); pos4(fend,180); |
| 6236 |
lft x1l=2.5u; bot y1=0; top y2=h-like_curve; |
| 6237 |
top y3l=h+o; .5[x2r,x4]=x3; top y4''=y3r-like_hair; |
| 6238 |
help:=y4''-.2fend-dot_size-x_height; |
| 6239 |
if help<.85stem: y4'':=.5[y3r,x_height]+.5dot_size+tiny; fi |
| 6240 |
z4'=z4+.2fend*down+o*left; z4''=z4+.5(fend-currentbreadth)*dir45; |
| 6241 |
lowercase_points(1,2,jut); |
| 6242 |
if not bold_face: y2r:=y2r+hair; fi; |
| 6243 |
z3'r=z3r+.5hair*right; |
| 6244 |
pos5(hair,90); pos5'(hair,90); pos6(hair,90); pos6'(hair,90); |
| 6245 |
bot y7=-d+like_curve; top y8=x_height; rt x7r=w-2u; |
| 6246 |
lowercase_points(7,8,1.2jut); |
| 6247 |
y5=y5'=y6=y6'=bot x_height-.5serif_drop; |
| 6248 |
lft x5=u; x6-x1r=x1l-x5; x5'=x1l; x6'=x1r; x4r=x7l; |
| 6249 |
pos10(hair,-90); bot y10r=-d; x10=x7r-3u; top y11=y7; x11l=x7r-5u; |
| 6250 |
pos9(dot_size+tiny,10); |
| 6251 |
lft x9r=x4l; y9=y4l-.5dot_size; |
| 6252 |
p:=z8r---obl(6'r,6r,2r)---z2r...{right}z3r..{z4'-z4r}z4r; |
| 6253 |
filldraw z1a..z1b{left}..z1c{right}..z1+ser_boule*up..{right}z1d..{left}z1e |
| 6254 |
..{up}z1f---obl(6'l,1r,6l)---z8a---obl(8b,8a,7a)---z7l ...{left}z10l |
| 6255 |
..reverse smitko(11,stem)..{right}z10r..{up}z7r---z8r |
| 6256 |
&subpath(0,rundy(p,infinity).zpet) of p..{down}z9l..z9r{up}..z4''..z3l |
| 6257 |
..z2l---obl(5'r,2l,5r)---z5r..z5l---obl(5'l,5l,1l)---cycle; |
| 6258 |
penlabels(3,4,5,5',6,6',9,10,11); labels(4',4''); |
| 6259 |
endchar; |
| 6260 |
|
| 6261 |
iff known chars.latin_ffi: |
| 6262 |
bskchar "The ligature ffi"; |
| 6263 |
beginchar(chars.latin_ffi,15u#, asc_height#, 0); uni "0xFB03"; |
| 6264 |
italcorr .5[asc_height#,x_height#]*slant-.5u#; |
| 6265 |
adjust_fit(serif_fit#,serif_fit#); |
| 6266 |
pickup tiny.nib; |
| 6267 |
numeric fend, ijut, help, tim[]; fend:=stem; |
| 6268 |
path p[]; |
| 6269 |
pos3(hair,-90); pos4(fend,180); pos7(hair,-90); pos8(fend,180); |
| 6270 |
lft x1l=2.5u; x5l=.5[x3,x4]; bot y1=bot y5=0; top y2=top y6=h-like_curve; |
| 6271 |
top y3l=top y7l=h+o; .5[x2r,x4]=x3; y4''=y3r-like_hair; lft x4r=w-6.2u-stem; |
| 6272 |
y8''=y7r-top like_hair; |
| 6273 |
help:=y8''-.2fend-dot_size-x_height; |
| 6274 |
if help<.85stem: y8'':=.5[y3r,x_height]+.5dot_size+tiny; fi |
| 6275 |
z8'=z8+.2fend*down+o*left; z8''=z8+.5(fend-currentbreadth)*dir45; |
| 6276 |
.5[x6r,x8]=x7; |
| 6277 |
z4'=z4+.2fend*down+o*left; z4''=z4+.5(fend-currentbreadth)*dir45; |
| 6278 |
lowercase_points(1,2,1.2jut); lowercase_points(5,6,jut); |
| 6279 |
if not bold_face: y2r:=y6r:=y2r+hair; fi; |
| 6280 |
ijut=.5hair; |
| 6281 |
x1e:=x1e-ijut; x1d:=x1d-ijut; x5c:=x5c+ijut; x5b:=x5b+ijut; |
| 6282 |
z3'r=z3r+.5hair*right; z7'r=z7r+.5hair*right; |
| 6283 |
bot y12=0; top y13=x_height; rt x12r=w-2u; x8r=x12l; |
| 6284 |
lowercase_points(12,13,1.2jut); |
| 6285 |
pos9(hair,90); pos9'(hair,90); pos10(hair,90); pos10'(hair,90); |
| 6286 |
pos11(hair,90); pos11'(hair,90); pos14(dot_size+tiny,10); |
| 6287 |
y9=y9'=y10=y10'=y11=y11'=bot x_height-.5serif_drop; |
| 6288 |
lft x9=u; x11=x5r+x9'-x9; x9'=x1l; x10=x6l; x10'=x1r; x11'=x6r; |
| 6289 |
lft x14r=x8l; y14=y8l-.5dot_size; |
| 6290 |
p0=z8l{up}..z8''..z7l..{down}z6l; |
| 6291 |
p1=z4l{up}..z4''..z3l..{down}z2l; |
| 6292 |
p2=z2r...{right}z3r..z4r..z4'..{up}z4l; |
| 6293 |
p3=z7r{right}..{z8'-z8r}z8r; |
| 6294 |
(tim0,tim1)=p0 intersectiontimes p1; |
| 6295 |
(tim2,tim3)=p2 intersectiontimes p0; |
| 6296 |
tim4=xpart(p0 intersectiontimes ((.75[x12a,x12l],y8r)--(.75[x12a,x12l],h))); |
| 6297 |
if x12c-x5d<u: x5d:=x5d-ijut; x5e:=x5e-ijut; fi; |
| 6298 |
filldraw z1a..z1b{left}..z1c{right}..z1+ser_boule*up..{right}z1d.. |
| 6299 |
{left}z1e..z1f---obl(10'l,1r,10l)---obl(10l,10'l,5l)--- |
| 6300 |
z5a..z5b{left}..z5c{right}..z5+ser_boule*up..{right}z5d.. |
| 6301 |
{left}z5e..z5f---obl(11'l,5r,11l)---z13a---obl(13b,13a,12a) |
| 6302 |
---z12a..{left}z12b..{right}z12c..z12+ser_boule*up..z12d{right}.. |
| 6303 |
{left}z12e..z12f---z13r---obl(11'r,11r,6r)--- |
| 6304 |
z6r...subpath(0,rundy(p3,infinity).zpet) of p3..{down}z14l..z14r{up}..z8'' |
| 6305 |
..subpath(1,rundy(p0,(tim0,2hair)).zpet) of p0.. |
| 6306 |
subpath(rundy(p1,(tim1,2hair)),infinity) of p1 |
| 6307 |
--obl(9'r,2l,9r)---z9r..z9l---obl(9'l,9l,1l)---cycle; |
| 6308 |
infill z2r---obl(10'r,2r,10r)---obl(10r,10'r,6l)---z6l-- |
| 6309 |
(reverse subpath(rundy(p0,tim3),infinity) of p0).. |
| 6310 |
(reverse subpath(0,rundy(p2,tim2).zpet) of p2)&cycle; |
| 6311 |
penlabels(3,4,7,8,9,9',10,10',11,11',14); labels(4',4'',8',8''); |
| 6312 |
endchar; |
| 6313 |
|
| 6314 |
iff known chars.latin_ffi_alt: |
| 6315 |
bskchar "The ligature ffi---alternative"; |
| 6316 |
beginchar(chars.latin_ffi_alt,15u#, asc_height#, 0); uni "non"; %"0xFB03"; |
| 6317 |
italcorr .5[asc_height#,x_height#]*slant-.5u#; |
| 6318 |
adjust_fit(serif_fit#,serif_fit#); |
| 6319 |
pickup tiny.nib; |
| 6320 |
numeric fend, ijut, help, tim[]; fend:=stem; |
| 6321 |
path p[]; |
| 6322 |
pos3(hair,-90); pos4(fend,180); pos7(hair,-90); pos8(fend,180); |
| 6323 |
lft x1l=2.5u; x5l=.5[x3,x4]; bot y1=bot y5=0; top y2+like_hair=top y6=h-like_curve; |
| 6324 |
top y3l+like_hair=top y7l=h+o; .5[x2r,x4]=x3; y4''+like_hair=y3r-like_hair; lft x4r=w-6.2u-stem; |
| 6325 |
y8''=y7r-top like_hair; |
| 6326 |
help:=y8''-.2fend-dot_size-x_height; |
| 6327 |
if help<.85stem: y8'':=.5[y3r,x_height]+.5dot_size+tiny; fi |
| 6328 |
z8'=z8+.2fend*down+o*left; z8''=z8+.5(fend-currentbreadth)*dir45; |
| 6329 |
.5[x6r,x8]=x7; |
| 6330 |
z4'=z4+.2fend*down+o*left; z4''=z4+.5(fend-currentbreadth)*dir45; |
| 6331 |
lowercase_points(1,2,1.2jut); lowercase_points(5,6,jut); |
| 6332 |
if not bold_face: y2r:=y6r:=y2r+hair; fi; |
| 6333 |
ijut=.5hair; |
| 6334 |
x1e:=x1e-ijut; x1d:=x1d-ijut; x5c:=x5c+ijut; x5b:=x5b+ijut; |
| 6335 |
z3'r=z3r+.5hair*right; z7'r=z7r+.5hair*right; |
| 6336 |
bot y12=0; top y13=x_height; rt x12r=w-2u; x8r=x12l; |
| 6337 |
lowercase_points(12,13,1.2jut); |
| 6338 |
pos9(hair,90); pos9'(hair,90); pos10(hair,90); pos10'(hair,90); |
| 6339 |
pos11(hair,90); pos11'(hair,90); pos14(dot_size+tiny,10); |
| 6340 |
y9=y9'=y10=y10'=y11=y11'=bot x_height-.5serif_drop; |
| 6341 |
lft x9=u; x11=x5r+x9'-x9; x9'=x1l; x10=x6l; x10'=x1r; x11'=x6r; |
| 6342 |
lft x14r=x8l; y14=y8l-.5dot_size; |
| 6343 |
p0=z8l{up}..z8''..z7l..{down}z6l; |
| 6344 |
p1=z4l{up}..z4''..z3l..{down}z2l; |
| 6345 |
p2=z2r...{right}z3r..z4r..z4'..{up}z4l; |
| 6346 |
p3=z7r{right}..{z8'-z8r}z8r; |
| 6347 |
(tim0,tim1)=p0 intersectiontimes p1; |
| 6348 |
(tim2,tim3)=p2 intersectiontimes p0; |
| 6349 |
tim4=xpart(p0 intersectiontimes ((.75[x12a,x12l],y8r)--(.75[x12a,x12l],h))); |
| 6350 |
if x12c-x5d<u: x5d:=x5d-ijut; x5e:=x5e-ijut; fi; |
| 6351 |
filldraw z1a..z1b{left}..z1c{right}..z1+ser_boule*up..{right}z1d.. |
| 6352 |
{left}z1e..z1f---obl(10'l,1r,10l)---obl(10l,10'l,5l)--- |
| 6353 |
z5a..z5b{left}..z5c{right}..z5+ser_boule*up..{right}z5d.. |
| 6354 |
{left}z5e..z5f---obl(11'l,5r,11l)---z13a---obl(13b,13a,12a) |
| 6355 |
---z12a..{left}z12b..{right}z12c..z12+ser_boule*up..z12d{right}.. |
| 6356 |
{left}z12e..z12f---z13r---obl(11'r,11r,6r)--- |
| 6357 |
z6r...subpath(0,rundy(p3,infinity).zpet) of p3..{down}z14l..z14r{up}..z8'' |
| 6358 |
..subpath(1,rundy(p0,(tim0,2hair)).zpet) of p0.. |
| 6359 |
subpath(rundy(p1,(tim1,2hair)),infinity) of p1 |
| 6360 |
--obl(9'r,2l,9r)---z9r..z9l---obl(9'l,9l,1l)---cycle; |
| 6361 |
infill z2r---obl(10'r,2r,10r)---obl(10r,10'r,6l)---z6l-- |
| 6362 |
(reverse subpath(rundy(p0,tim3),infinity) of p0).. |
| 6363 |
(reverse subpath(0,rundy(p2,tim2).zpet) of p2)&cycle; |
| 6364 |
penlabels(3,4,7,8,9,9',10,10',11,11',14); labels(4',4'',8',8''); |
| 6365 |
endchar; |
| 6366 |
|
| 6367 |
charscription(11u,x_height,desc_depth)( |
| 6368 |
path p[]; numeric tim[]; oblu:=2oblu; |
| 6369 |
pos1(curve,0); pos2(hair,90); pos3(curve,180); pos4(hair,270); |
| 6370 |
lft x1l=1.5u; rt x3l=w-2.5u; y1=y3=.5[y4l,y2l]; .5[x2,x4]=.5[x1,x3]; x2=x4; |
| 6371 |
bot y2l=1/3bar_height+.25stem; top y4l=h+o; x4r:=x4r+.25u; x2r:=x2r-.25u; |
| 6372 |
p0:=z1l{down}..z2l..{up}z3l..z4l..{down}z1l; |
| 6373 |
tim1=xpart(p0 intersectiontimes ((0,y2l+tiny)--(w,y2l+tiny))); |
| 6374 |
z5r=point tim1 of p0; |
| 6375 |
tim2=xpart(p0 intersectiontimes ((x5r-hair+tiny,0)--(x5r-hair+tiny,h))); |
| 6376 |
z5l=point tim2 of p0; z5=.5[z5l,z5r]; |
| 6377 |
lft z5'=(1.75u,0); |
| 6378 |
pos6(stem,90); pos8(hair,270); |
| 6379 |
y6l=top y7l+.5stem; y6=0; x6=x5+u; x6r:=x6r+.5hair; rt x7l=w-2.5u; |
| 6380 |
x8=x2; bot y8r=-d; |
| 6381 |
pos9(dot_size,180); lft x9r=u; top y9=-.45d; |
| 6382 |
p1=subpath(0,.5tim2) of p0 .. z5l+hair*dir-130{dir-130}..z5'..{right}z6l..z7l..{left}z8l; |
| 6383 |
z7r-z7l=.8stem*dir(angle(direction 3 of p1)+90); z7=.5[z7r,z7l]; |
| 6384 |
y9'=y7l if not bold_face:-.25dot_size fi; z9'=whatever[z9l,z5]; |
| 6385 |
pos10(hair,135); pos11(hair,135); z11-z10=tiny*dir45; |
| 6386 |
z10=(.5[z2,z4]--(w-u,h)) intersectionpoint p0; |
| 6387 |
pos12(stem,45); pos12'(stem,45); x12r=w-u; y12l=y11l; z12'=z12+.5tiny*dir135; |
| 6388 |
p2=.5[z2,z4]---z11l..{dir-60}z12'l--z12l; |
| 6389 |
p3=z12r---z12'r..z11r---z10r--z10; |
| 6390 |
p4=z8r{right}..z7r..{left}z6r..{dir30}z5r; |
| 6391 |
(tim3,tim4)=p0 intersectiontimes p2; |
| 6392 |
(tim5,tim6)=p3 intersectiontimes p0; |
| 6393 |
filldraw p1..{(w,h)-z9l}z9l..z9'{left}..{down}z9r.. |
| 6394 |
subpath(0,rundy(p4,(infinity,if bold_face: 1.5f_obl else: oblu fi)).zpet) of p4 |
| 6395 |
..subpath(rundy(p0,tim1),rundy(p0,tim3).zpet) of p0.. |
| 6396 |
subpath(rundy(p2,1),infinity) of p2{dir0}.. |
| 6397 |
subpath(0,rundy(p3,(2,hair)).zpet) of p3.. |
| 6398 |
subpath(rundy(p0,tim6),infinity) of p0-- cycle; |
| 6399 |
infill z1r{up}..z4r..{down}z3r..z2r..{up}cycle; |
| 6400 |
penlabels(1,2,3,4,5,6,7,8,9,10,11,12,12'); labels(5',9'); |
| 6401 |
); |
| 6402 |
|
| 6403 |
iff known chars.latin_g: |
| 6404 |
bskchar "The letter g"; |
| 6405 |
beginchar(chars.latin_g,11u#,x_height#,desc_depth#); uni "0x0067"; |
| 6406 |
italcorr x_height#*slant; |
| 6407 |
adjust_fit(0,0); |
| 6408 |
pickup tiny.nib; |
| 6409 |
usechar; |
| 6410 |
endchar; |
| 6411 |
|
| 6412 |
iff known chars.latin_gacute: |
| 6413 |
bskchar "The letter g with acute"; |
| 6414 |
beginchar(chars.latin_gacute,11u#,asc_height#,desc_depth#); uni "0x01F5"; |
| 6415 |
italcorr x_height#*slant; |
| 6416 |
adjust_fit(0,0); |
| 6417 |
pickup tiny.nib; |
| 6418 |
usechar; |
| 6419 |
x101=x4-o; |
| 6420 |
acute(100,101); |
| 6421 |
endchar; |
| 6422 |
|
| 6423 |
iff known chars.latin_gcaron: |
| 6424 |
bskchar "The letter g with caron"; |
| 6425 |
beginchar(chars.latin_gcaron,11u#,asc_height#,desc_depth#); uni "0x01E7"; |
| 6426 |
italcorr x_height#*slant; |
| 6427 |
adjust_fit(0,0); |
| 6428 |
pickup tiny.nib; |
| 6429 |
usechar; |
| 6430 |
x101=x4r; |
| 6431 |
hacek(100,101,102); |
| 6432 |
endchar; |
| 6433 |
|
| 6434 |
iff known chars.latin_gcircumflex: |
| 6435 |
bskchar "The letter g with circumflex"; |
| 6436 |
beginchar(chars.latin_gcircumflex,11u#,asc_height#-.1x_height#,desc_depth#); uni "0x011D"; |
| 6437 |
italcorr x_height#*slant; |
| 6438 |
adjust_fit(0,0); |
| 6439 |
pickup tiny.nib; |
| 6440 |
usechar; |
| 6441 |
x101=x4r; |
| 6442 |
circumflex(100,101,102); |
| 6443 |
endchar; |
| 6444 |
|
| 6445 |
iff known chars.latin_gcedilla: |
| 6446 |
bskchar "The letter g with cedilla (treated as comma)"; |
| 6447 |
beginchar(chars.latin_gcedilla,11u#,x_height#+.75comma_depth#+o#,desc_depth#); uni "0x0123"; |
| 6448 |
italcorr x_height#*slant; |
| 6449 |
adjust_fit(0,0); |
| 6450 |
pickup tiny.nib; |
| 6451 |
usechar; |
| 6452 |
lft x100=x4; bot y100''r=x_height+2o; |
| 6453 |
ammoc(100,.75dot_size,.5hair,.75comma_depth); |
| 6454 |
endchar; |
| 6455 |
|
| 6456 |
iff known chars.latin_gdotabove: |
| 6457 |
bskchar "The letter g with dot above"; |
| 6458 |
beginchar(chars.latin_gdotabove,11u#,asc_height#-.5dot_size#,desc_depth#); uni "0x0121"; |
| 6459 |
italcorr x_height#*slant; |
| 6460 |
adjust_fit(0,0); |
| 6461 |
pickup tiny.nib; |
| 6462 |
usechar; |
| 6463 |
x100=x4; |
| 6464 |
dotabove(100); |
| 6465 |
endchar; |
| 6466 |
|
| 6467 |
iff known chars.latin_gbreve: |
| 6468 |
bskchar "The letter g with breve"; |
| 6469 |
beginchar(chars.latin_gbreve,11u#,asc_height#,desc_depth#); uni "0x011F"; |
| 6470 |
italcorr x_height#*slant; |
| 6471 |
adjust_fit(0,0); |
| 6472 |
pickup tiny.nib; |
| 6473 |
usechar; |
| 6474 |
x101=x4r; x102-x100=5u; |
| 6475 |
breve(100,101,102); |
| 6476 |
endchar; |
| 6477 |
|
| 6478 |
iff known chars.latin_g_BB: |
| 6479 |
bskchar "The blackboard-bold letter g"; |
| 6480 |
beginchar(chars.latin_g_BB,11u#,x_height#,desc_depth#); uni "0x1D558"; |
| 6481 |
italcorr x_height#*slant; |
| 6482 |
adjust_fit(0,0); |
| 6483 |
pickup tiny.nib; |
| 6484 |
path p[]; numeric tim[]; oblu:=2oblu; |
| 6485 |
pos1(cap_stem,0); pos2(hair,90); pos3(cap_stem,180); pos4(hair,270); |
| 6486 |
lft x1l=1.5u; rt x3l=w-2.5u; y1=y3=.5[y4l,y2l]; .5[x2,x4]=.5[x1,x3]; x2=x4; |
| 6487 |
bot y2l=1/3bar_height+.25stem; top y4l=h+o; x4r:=x4r+.25u; x2r:=x2r-.25u; |
| 6488 |
p0:=z1l{down}..z2l..{up}z3l..z4l..{down}z1l; |
| 6489 |
tim1=xpart(p0 intersectiontimes ((0,y2l+tiny)--(w,y2l+tiny))); |
| 6490 |
z5r=point tim1 of p0; |
| 6491 |
tim2=xpart(p0 intersectiontimes ((x5r-hair+tiny,0)--(x5r-hair+tiny,h))); |
| 6492 |
z5l=point tim2 of p0; z5=.5[z5l,z5r]; |
| 6493 |
lft z5'=(1.75u,0); |
| 6494 |
pos6(.8cap_stem,90); pos8(hair,270); |
| 6495 |
y6l=top y7l+.5stem; y6=0; x6=x5+u; x6r:=x6r+.5hair; rt x7l=w-2.75u; |
| 6496 |
x8=x2; bot y8r=-d; |
| 6497 |
pos9(dot_size,180); lft x9r=u; top y9=-.45d; |
| 6498 |
p1=subpath(0,.5tim2) of p0 .. z5l+hair*dir-130{dir-130}..z5'..{right}z6l..z7l..{left}z8l; |
| 6499 |
z7r-z7l=.8cap_stem*dir(angle(direction 3 of p1)+90); z7=.5[z7r,z7l]; |
| 6500 |
y9'=y7l if not bold_face:-.25dot_size fi; z9'=whatever[z9l,z5]; |
| 6501 |
pos10(hair,135); pos11(hair,135); z11-z10=tiny*dir45; |
| 6502 |
z10=(.5[z2,z4]--(w-u,h)) intersectionpoint p0; |
| 6503 |
pos12(stem,45); pos12'(stem,45); x12r=w-u; y12l=y11l; z12'=z12+.5tiny*dir135; |
| 6504 |
p2=.5[z2,z4]---z11l..{dir-60}z12'l--z12l; |
| 6505 |
p3=z12r---z12'r..z11r---z10r--z10; |
| 6506 |
p4=z8r{right}..z7r..{left}z6r..{dir30}z5r; |
| 6507 |
(tim3,tim4)=p0 intersectiontimes p2; |
| 6508 |
(tim5,tim6)=p3 intersectiontimes p0; |
| 6509 |
filldraw p1..{(w,h)-z9l}z9l..z9'{left}..{down}z9r.. |
| 6510 |
subpath(0,rundy(p4,(infinity,if bold_face: 1.5f_obl else: oblu fi)).zpet) of p4 |
| 6511 |
..subpath(rundy(p0,tim1),rundy(p0,tim3).zpet) of p0.. |
| 6512 |
subpath(rundy(p2,1),infinity) of p2{dir0}.. |
| 6513 |
subpath(0,rundy(p3,(2,hair)).zpet) of p3.. |
| 6514 |
subpath(rundy(p0,tim6),infinity) of p0-- cycle; |
| 6515 |
infill z1r{up}..z4r..{down}z3r..z2r..{up}cycle; |
| 6516 |
p100:=p4; |
| 6517 |
p101:=z5l+hair*dir-130{dir-130}..z5'..{right}z6l..z7l..{left}z8l; |
| 6518 |
p102:=z4r..z1r{down}..z2r..z3r..cycle; |
| 6519 |
p103:=reverse z4l..z1l{down}..z2l..z3l..cycle; |
| 6520 |
z100=bsktouch(p100,left,subpath(0,2) of p101,right); |
| 6521 |
z101=bsktouch(p100,up,p101,down); |
| 6522 |
z102=bsktouch(subpath(0,1) of p102,up,p103,down); |
| 6523 |
z103=bsktouch(subpath(1,2) of p102,down,p103,up); |
| 6524 |
z104=bsktouch(subpath(3,4) of p102,up,p103,down); |
| 6525 |
z105=bsktouch(subpath(2,3) of p102,down,p103,up); |
| 6526 |
tim100=xpart(p100 intersectiontimes (z100--(w,y100))); |
| 6527 |
tim101=xpart(p101 intersectiontimes (z100--(0,y100))); |
| 6528 |
tim102=xpart(p100 intersectiontimes (z101--(x101,-d-5))); |
| 6529 |
tim103=xpart(p101 intersectiontimes (z101--(x101,y9))); |
| 6530 |
tim104=xpart(p102 intersectiontimes (z102--(x102,y1))); |
| 6531 |
tim105=xpart(p103 intersectiontimes (z102--(x102,y4l+5))); |
| 6532 |
tim106=xpart(p102 intersectiontimes (z103--(x103,y1))); |
| 6533 |
tim107=xpart(p103 intersectiontimes (z103--(x103,y2l-5))); |
| 6534 |
tim108=xpart(p102 intersectiontimes (z104--(x104,y1))); |
| 6535 |
tim109=xpart(p103 intersectiontimes (z104--(x104,y4l+5))); |
| 6536 |
tim110=xpart(p102 intersectiontimes (z105--(x105,y1))); |
| 6537 |
tim111=xpart(p103 intersectiontimes (z105--(x105,y2l-5))); |
| 6538 |
oblu:=bbw; |
| 6539 |
infill subpath(rundy(p101,tim101),rundy(p101,tim103).zpet) of p101 |
| 6540 |
..subpath(rundy(p100,tim102),rundy(p100,tim100).zpet) of p100..cycle; |
| 6541 |
infill subpath(rundy(p102,tim104),rundy(p102,tim106).zpet) of p102 |
| 6542 |
..subpath(rundy(p103,tim107).zpet,rundy(p103,tim105)) of p103..cycle; |
| 6543 |
infill subpath(rundy(p102,tim108).zpet,rundy(p102,tim110)) of p102 |
| 6544 |
..subpath(rundy(p103,tim111),rundy(p103,tim109).zpet) of p103..cycle; |
| 6545 |
penlabels(1,2,3,4,5,6,7,8,9,10,11,12,12'); labels(5',9',100,101,102,103,104,105); |
| 6546 |
endchar; |
| 6547 |
|
| 6548 |
iff known chars.latin_g_SS: |
| 6549 |
bskchar "The sans-serif letter g"; |
| 6550 |
beginchar(chars.latin_g_SS,11u#,x_height#,desc_depth#); uni "0x1D5C0"; |
| 6551 |
italcorr x_height#*slant; |
| 6552 |
adjust_fit(0,0); |
| 6553 |
pickup tiny.nib; |
| 6554 |
path p[]; numeric tim[]; oblu:=2oblu; |
| 6555 |
pos1(curve,0); pos2(hair,90); pos3(curve,180); pos4(hair,270); |
| 6556 |
lft x1l=1.5u; rt x3l=w-2.5u; y1=y3=.5[y4l,y2l]; .5[x2,x4]=.5[x1,x3]; x2=x4; |
| 6557 |
bot y2l=1/3bar_height+.25stem; top y4l=h+o; x4r:=x4r+.25u; x2r:=x2r-.25u; |
| 6558 |
p0:=z1l{down}..z2l..{up}z3l..z4l..{down}z1l; |
| 6559 |
tim1=xpart(p0 intersectiontimes ((0,y2l+tiny)--(w,y2l+tiny))); |
| 6560 |
z5r=point tim1 of p0; |
| 6561 |
tim2=xpart(p0 intersectiontimes ((x5r-hair+tiny,0)--(x5r-hair+tiny,h))); |
| 6562 |
z5l=point tim2 of p0; z5=.5[z5l,z5r]; |
| 6563 |
lft z5'=(1.75u,0); |
| 6564 |
pos6(stem,90); pos8(hair,270); |
| 6565 |
y6l=top y7l+.5stem; y6=0; x6=x5+u; x6r:=x6r-.5hair; rt x7l=w-2.5u; |
| 6566 |
x8=x2; bot y8r=-d; |
| 6567 |
pos9(stem,180); lft x9r=u; top y9=-.45d; |
| 6568 |
p1=subpath(0,.5tim2) of p0 .. z5l+hair*dir-130{dir-130}..z5'..{right}z6l..z7l..{left}z8l; |
| 6569 |
z7r-z7l=.8stem*dir(angle(direction 3 of p1)+90); z7=.5[z7r,z7l]; |
| 6570 |
z9'-z9=(o,hair); |
| 6571 |
pos10(hair,135); pos11(hair,135); z11-z10=tiny*dir45; |
| 6572 |
z10=(.5[z2,z4]--(w-u,h)) intersectionpoint p0; |
| 6573 |
pos12(stem,45); pos12'(stem,45); x12r=w-u; y12l=y11l; z12'=z12+.5tiny*dir135; |
| 6574 |
p2=.5[z2,z4]---z11l..{dir-60}z12'l--z12l; |
| 6575 |
p3=z12r---z12'r..z11r---z10r--z10; |
| 6576 |
p4=z8r{right}..z7r..{left}z6r..{dir30}z5r; |
| 6577 |
(tim3,tim4)=p0 intersectiontimes p2; |
| 6578 |
(tim5,tim6)=p3 intersectiontimes p0; |
| 6579 |
filldraw p1..z9l{up}..z9'{left}..{down}z9r.. |
| 6580 |
subpath(0,rundy(p4,(infinity,if bold_face: 1.5f_obl else: oblu fi)).zpet) of p4 |
| 6581 |
..subpath(rundy(p0,tim1),rundy(p0,tim3).zpet) of p0.. |
| 6582 |
subpath(rundy(p2,1),infinity) of p2{dir0}.. |
| 6583 |
subpath(0,rundy(p3,(2,hair)).zpet) of p3.. |
| 6584 |
subpath(rundy(p0,tim6),infinity) of p0-- cycle; |
| 6585 |
infill z1r{up}..z4r..{down}z3r..z2r..{up}cycle; |
| 6586 |
penlabels(1,2,3,4,5,6,7,8,9,10,11,12,12'); labels(5',9'); |
| 6587 |
endchar; |
| 6588 |
|
| 6589 |
charscription(11u,asc_height,0)( |
| 6590 |
path p[]; numeric tim[]; oblu:=2oblu; |
| 6591 |
pos3(stem,0); pos4(stem,0); pos5(n_str_hair,90); pos6(hair,180); |
| 6592 |
lft x1l=2u; bot y1=0; top y2=h; |
| 6593 |
rt x3r=w-2u; bot y3=0; serif_bot(3); |
| 6594 |
x4=x3; y4=.65x_height; y5r=x_height; x5=.5[x3l,x1r]; |
| 6595 |
x6l=x1r; y6=.5x_height; |
| 6596 |
lowercase_points(1,2,jut); |
| 6597 |
p1:=z6l{up}..z5l..z4l---z3a..z3b{left}..{right}z3c; |
| 6598 |
p2:=z3d{right}..{left}z3e..z3f---z4r..z5r..{down}z6r; |
| 6599 |
p3:=z1f--z2r; |
| 6600 |
(tim1,tim2)=p2 intersectiontimes p3; |
| 6601 |
z1'=point tim2 of p3+(like_stem+hair+tiny)*up; |
| 6602 |
if y1'>y5: y1':=y5; fi; |
| 6603 |
tim3=xpart(p2 intersectiontimes((0,y1'-.5hair)--(.5w,y1'-.5hair))); |
| 6604 |
filldraw p1..z3+ser_boule*up..subpath (0,tim3) of p2..z1'--- |
| 6605 |
lowercase_stem_draw(1,2)---cycle; |
| 6606 |
penlabels(3,4,5,6); labels(1'); |
| 6607 |
); |
| 6608 |
|
| 6609 |
iff known chars.latin_h: |
| 6610 |
bskchar "The letter h"; |
| 6611 |
beginchar(chars.latin_h,11u#, asc_height#, 0); uni "0x0068"; |
| 6612 |
adjust_fit(serif_fit#,serif_fit#); |
| 6613 |
pickup tiny.nib; |
| 6614 |
usechar; |
| 6615 |
endchar; |
| 6616 |
|
| 6617 |
iff known chars.latin_hcaron: |
| 6618 |
bskchar "The letter h with caron"; |
| 6619 |
beginchar(chars.latin_hcaron,11u#,asc_height#,0); uni "0x021F"; |
| 6620 |
italcorr asc_height#*slant-1.5u#; |
| 6621 |
adjust_fit(serif_fit#,serif_fit#); |
| 6622 |
pickup tiny.nib; |
| 6623 |
usechar; |
| 6624 |
lft x101=x5+hair; x102-x100=4.5u; y100=h+hair; y101l=1/4[x_height,y100]+hair; |
| 6625 |
hacek(100,101,102); |
| 6626 |
endchar; |
| 6627 |
|
| 6628 |
iff known chars.latin_hcircumflex: |
| 6629 |
bskchar "The letter h with circumflex"; |
| 6630 |
beginchar(chars.latin_hcircumflex,11u#,asc_height#,0); uni "0x0125"; |
| 6631 |
adjust_fit(serif_fit#,serif_fit#); |
| 6632 |
pickup tiny.nib; |
| 6633 |
usechar; |
| 6634 |
lft x101=x5+hair; x102-x100=4.5u; |
| 6635 |
circumflex(100,101,102); |
| 6636 |
endchar; |
| 6637 |
|
| 6638 |
iff known chars.latin_h_BB: |
| 6639 |
bskchar "The blackboard-bold letter h"; |
| 6640 |
beginchar(chars.latin_h_BB,11u#, asc_height#, 0); uni "0x1D559"; |
| 6641 |
adjust_fit(serif_fit#,serif_fit#); |
| 6642 |
pickup tiny.nib; |
| 6643 |
path p[]; numeric tim[]; oblu:=2oblu; |
| 6644 |
pos3(.8cap_stem,0); pos4(.8cap_stem,0); pos5(n_str_hair,90); pos6(hair,180); |
| 6645 |
lft x1l=2u; bot y1=0; top y2=h; |
| 6646 |
rt x3r=w-2u; bot y3=0; serif_bot(3); |
| 6647 |
x4=x3; y4=.65x_height; y5r=x_height; x5=.5[x3l,x1r]; |
| 6648 |
x6l=x1r; y6=.5x_height; |
| 6649 |
save stem; stem:=.8cap_stem; |
| 6650 |
lowercase_points(1,2,jut); |
| 6651 |
p1:=z6l{up}..z5l..z4l---z3a..z3b{left}..{right}z3c; |
| 6652 |
p2:=z3d{right}..{left}z3e..z3f---z4r..z5r..{down}z6r; |
| 6653 |
p3:=z1f--z2r; |
| 6654 |
(tim1,tim2)=p2 intersectiontimes p3; |
| 6655 |
z1'=point tim2 of p3+(like_stem+hair+tiny)*up; |
| 6656 |
if y1'>y5: y1':=y5; fi; |
| 6657 |
tim3=xpart(p2 intersectiontimes((0,y1'-.5hair)--(.5w,y1'-.5hair))); |
| 6658 |
filldraw p1..z3+ser_boule*up..subpath (0,tim3) of p2..z1'--- |
| 6659 |
lowercase_stem_draw(1,2)---cycle; |
| 6660 |
oblu:=f_obl; oblu.more:=1.25oblu; |
| 6661 |
bot z100=(x1l,y1b); bot z103=(x3r,y3e); |
| 6662 |
p100=subpath(3,4) of p2; |
| 6663 |
p101=subpath(1,2) of p1; |
| 6664 |
z101=bsktouch(p100,down,p101,up); |
| 6665 |
tim100=xpart(p100 intersectiontimes (z101--(x101,h))); |
| 6666 |
tim101=xpart(p101 intersectiontimes (z101--(x101,0))); |
| 6667 |
infill ifobl(2r,2b,1r,1l,more,)---obl(100,2b,1b)...z1l---obl(1r,1l,2r)---cycle; |
| 6668 |
infill subpath(0,rundy(p100,(tim100,bbw)).zpet) of p100 |
| 6669 |
..subpath(rundy(p101,(tim101,bbw)),infinity) of p101 |
| 6670 |
---obl(3l,4l,3r)---z3r...obl(103,3e,4r)---cycle; |
| 6671 |
penlabels(3,4,5,6); labels(1',100,101,102); |
| 6672 |
endchar; |
| 6673 |
|
| 6674 |
iff known chars.latin_h_SS: |
| 6675 |
bskchar "The sans-serif letter h"; |
| 6676 |
beginchar(chars.latin_h_SS,11u#, asc_height#, 0); uni "0x1D5C1"; |
| 6677 |
adjust_fit(serif_fit#,serif_fit#); |
| 6678 |
pickup tiny.nib; |
| 6679 |
path p[]; numeric tim[]; oblu:=2oblu; |
| 6680 |
pos3(stem,0); pos4(stem,0); pos5(n_str_hair,90); pos6(hair,180); |
| 6681 |
lft x1l=2u; bot y1=0; top y2=h; |
| 6682 |
rt x3r=w-2u; bot y3=0; serif_bot(3); |
| 6683 |
x4=x3; y4=.65x_height; y5r=x_height; x5=.5[x3l,x1r]; |
| 6684 |
x6l=x1r; y6=.5x_height; |
| 6685 |
lowercase_points(1,2,jut); |
| 6686 |
p1:=z6l{up}..z5l..z4l---z3a..{right}z3; |
| 6687 |
p2:=z3{right}..z3f---z4r..z5r..{down}z6r; |
| 6688 |
p3:=z1f--z2r; |
| 6689 |
(tim1,tim2)=p2 intersectiontimes p3; |
| 6690 |
z1'=point tim2 of p3+(like_stem+hair+tiny)*up; |
| 6691 |
if y1'>y5: y1':=y5; fi; |
| 6692 |
tim3=xpart(p2 intersectiontimes((0,y1'-.5hair)--(.5w,y1'-.5hair))); |
| 6693 |
filldraw p1..z3+ser_boule*up..subpath (0,tim3) of p2..z1'---z2r..z2b---z1a..z1..z1f---cycle; |
| 6694 |
penlabels(3,4,5,6); labels(1'); |
| 6695 |
endchar; |
| 6696 |
|
| 6697 |
iff known chars.latin_hstroke: |
| 6698 |
bskchar "The letter h with stroke"; |
| 6699 |
beginchar(chars.latin_hstroke,11u#, asc_height#, 0); uni "0x0127"; |
| 6700 |
adjust_fit(serif_fit#,serif_fit#); |
| 6701 |
pickup tiny.nib; |
| 6702 |
path p[]; numeric tim[]; oblu:=2f_obl; oblu.light:=f_obl; |
| 6703 |
pos3(stem,0); pos4(stem,0); pos5(n_str_hair,90); pos6(hair,180); |
| 6704 |
pos7(bar,90); pos7'(bar,90); pos8(bar,90); pos8'(bar,90); |
| 6705 |
x8-x7=4u; y8=y8'=y7=y7'=.4[x_height,h]; lft x7=.5u; |
| 6706 |
x7'=x1l; x8'=x1r; bskpoints(7,8,hair,hair); |
| 6707 |
lft x1l=2u; bot y1=0; top y2=h; |
| 6708 |
rt x3r=w-2u; bot y3=0; serif_bot(3); |
| 6709 |
x4=x3; y4=.65x_height; y5r=x_height; x5=.5[x3l,x1r]; |
| 6710 |
x6l=x1r; y6=.5x_height; |
| 6711 |
lowercase_points(1,2,jut); |
| 6712 |
p1:=z6l{up}..z5l..z4l---z3a..z3b{left}..{right}z3c; |
| 6713 |
p2:=z3d{right}..{left}z3e..z3f---z4r..z5r..{down}z6r; |
| 6714 |
p3:=z1f--z2r; |
| 6715 |
(tim1,tim2)=p2 intersectiontimes p3; |
| 6716 |
z1'=point tim2 of p3+(like_stem+hair+tiny)*up; |
| 6717 |
if y1'>y5: y1':=y5; fi; |
| 6718 |
tim3=xpart(p2 intersectiontimes((0,y1'-.5hair)--(.5w,y1'-.5hair))); |
| 6719 |
filldraw p1..z3+ser_boule*up..subpath (0,tim3) of p2..z1'---obl(8'l,1',8l).light |
| 6720 |
---z8ll..z8r---obl(8'r,8r,2).light---subpath(0,3) of lowercase_stem_draw(1,2) |
| 6721 |
---obl(7'r,2l,7r).light---z7rr..z7l---obl(7'l,7l,1l).light |
| 6722 |
---subpath(4,infinity) of lowercase_stem_draw(1,2)---cycle; |
| 6723 |
penlabels(3,4,5,6,7,7',8,8'); labels(1',7rr,8ll); |
| 6724 |
endchar; |
| 6725 |
|
| 6726 |
iff known chars.latin_hbar: |
| 6727 |
bskchar "The letter h with bar (Dirac constant)"; |
| 6728 |
beginchar(chars.latin_hbar,11u#, asc_height#, 0); uni "0x210F"; |
| 6729 |
adjust_fit(serif_fit#,serif_fit#); |
| 6730 |
pickup tiny.nib; |
| 6731 |
path p[]; numeric tim[], theta; oblu:=2f_obl; oblu.light:=f_obl; |
| 6732 |
pos3(stem,0); pos4(stem,0); pos5(n_str_hair,90); pos6(hair,180); |
| 6733 |
x8-x7=4u; .5[y8,y7]=.35[x_height,h]; y8-y7=stem; lft x7=.5u; |
| 6734 |
theta:=angle(z8-z7)+90; |
| 6735 |
pos7(bar,theta); pos8(bar,theta); |
| 6736 |
x7'l=x7'r=x1l; x8'l=x8'r=x1r; bskpoints(7,8,hair,hair); |
| 6737 |
z7'l=whatever[z7l,z8l]; z8'l=whatever[z7l,z8l]; |
| 6738 |
z7'r=whatever[z7r,z8r]; z8'r=whatever[z7r,z8r]; |
| 6739 |
lft x1l=2u; bot y1=0; top y2=h; |
| 6740 |
rt x3r=w-2u; bot y3=0; serif_bot(3); |
| 6741 |
x4=x3; y4=.65x_height; y5r=x_height; x5=.5[x3l,x1r]; |
| 6742 |
x6l=x1r; y6=.5x_height; |
| 6743 |
lowercase_points(1,2,jut); |
| 6744 |
p1:=z6l{up}..z5l..z4l---z3a..z3b{left}..{right}z3c; |
| 6745 |
p2:=z3d{right}..{left}z3e..z3f---z4r..z5r..{down}z6r; |
| 6746 |
p3:=z1f--z2r; |
| 6747 |
(tim1,tim2)=p2 intersectiontimes p3; |
| 6748 |
z1'=point tim2 of p3+(like_stem+hair+tiny)*up; |
| 6749 |
if y1'>y5: y1':=y5; fi; |
| 6750 |
tim3=xpart(p2 intersectiontimes((0,y1'-.5hair)--(.5w,y1'-.5hair))); |
| 6751 |
filldraw p1..z3+ser_boule*up..subpath (0,tim3) of p2..z1'---obl(8'l,1',8l).light |
| 6752 |
---z8ll..z8r---obl(8'r,8r,2).light---subpath(0,3) of lowercase_stem_draw(1,2) |
| 6753 |
---obl(7'r,2l,7r).light---z7rr..z7l---obl(7'l,7l,1l).light |
| 6754 |
---subpath(4,infinity) of lowercase_stem_draw(1,2)---cycle; |
| 6755 |
penlabels(3,4,5,6,7,7',8,8'); labels(1',7rr,8ll); |
| 6756 |
endchar; |
| 6757 |
|
| 6758 |
charscription(6u,x_height,0)( |
| 6759 |
oblu:=2oblu; |
| 6760 |
x1=.5w; bot y1=0; top y2=x_height; |
| 6761 |
lowercase_stem(1,2,1.2jut).alt; |
| 6762 |
); |
| 6763 |
|
| 6764 |
iff known chars.latin_dotless_i: |
| 6765 |
bskchar "The dotless i"; |
| 6766 |
beginchar(chars.latin_dotless_i,6u#, x_height#, 0); uni "0x0131"; |
| 6767 |
adjust_fit(serif_fit#,serif_fit#); |
| 6768 |
pickup tiny.nib; |
| 6769 |
usechar; |
| 6770 |
endchar; |
| 6771 |
|
| 6772 |
iff known chars.latin_i: |
| 6773 |
bskchar "The letter i"; |
| 6774 |
beginchar(chars.latin_i,6u#, asc_height#-.5dot_size#, 0); uni "0x0069"; |
| 6775 |
italcorr (asc_height#-.5dot_size#)*slant-1.5u#; |
| 6776 |
adjust_fit(serif_fit#,serif_fit#); |
| 6777 |
pickup tiny.nib; |
| 6778 |
x3=x1-ddot; top y3=h-.5dot_size; |
| 6779 |
usechar; |
| 6780 |
dot(3); |
| 6781 |
endchar; |
| 6782 |
|
| 6783 |
iff known chars.latin_iacute: |
| 6784 |
bskchar "The letter i with acute"; |
| 6785 |
beginchar(chars.latin_iacute,6u#, asc_height#, 0); uni "0x00ED"; |
| 6786 |
italcorr asc_height#*slant-u#; |
| 6787 |
adjust_fit(serif_fit#,serif_fit#); |
| 6788 |
pickup tiny.nib; |
| 6789 |
x101=x2l; |
| 6790 |
usechar; |
| 6791 |
acute(100,101); |
| 6792 |
endchar; |
| 6793 |
|
| 6794 |
iff known chars.latin_igrave: |
| 6795 |
bskchar "The letter i with grave"; |
| 6796 |
beginchar(chars.latin_igrave,6u#,asc_height#,0); uni "0x00EC"; |
| 6797 |
adjust_fit(serif_fit#,serif_fit#); |
| 6798 |
pickup tiny.nib; |
| 6799 |
usechar; |
| 6800 |
x101=x2; |
| 6801 |
grave(100,101); |
| 6802 |
endchar; |
| 6803 |
|
| 6804 |
iff known chars.latin_idoublegrave: |
| 6805 |
bskchar "The letter i with double grave"; |
| 6806 |
beginchar(chars.latin_idoublegrave,6u#,asc_height#,0); uni "0x0209"; |
| 6807 |
adjust_fit(serif_fit#,serif_fit#); |
| 6808 |
pickup tiny.nib; |
| 6809 |
usechar; |
| 6810 |
x102-x100=2.5u; x103r=x2r; |
| 6811 |
d_grave(100,101,102,103,whatever); |
| 6812 |
endchar; |
| 6813 |
|
| 6814 |
iff known chars.latin_imacron: |
| 6815 |
bskchar "The letter i with macron"; |
| 6816 |
beginchar(chars.latin_imacron,6u#,.5[asc_height#,x_height#],0); uni "0x012B"; |
| 6817 |
italcorr .5[asc_height#,x_height#]*slant; |
| 6818 |
adjust_fit(serif_fit#,serif_fit#); |
| 6819 |
pickup tiny.nib; |
| 6820 |
usechar; |
| 6821 |
x101=w-u; x100=.5u; |
| 6822 |
macron(100,101); |
| 6823 |
endchar; |
| 6824 |
|
| 6825 |
iff known chars.latin_icircumflex: |
| 6826 |
bskchar "The letter i with circumflex"; |
| 6827 |
beginchar(chars.latin_icircumflex,6u#,asc_height#-.1x_height#,0); uni "0x00EE"; |
| 6828 |
italcorr .5[asc_height#,x_height#]*slant; |
| 6829 |
adjust_fit(serif_fit#,serif_fit#); |
| 6830 |
pickup tiny.nib; |
| 6831 |
usechar; |
| 6832 |
x101=x2l; |
| 6833 |
circumflex(100,101,102); |
| 6834 |
endchar; |
| 6835 |
|
| 6836 |
iff known chars.latin_iumlaut: |
| 6837 |
bskchar "The letter i with umlaut"; |
| 6838 |
beginchar(chars.latin_iumlaut,6u#,asc_height#-dot_size#,0); uni "0x00EF"; |
| 6839 |
italcorr (asc_height#-dot_size#)*slant-.5u#; |
| 6840 |
adjust_fit(serif_fit#,serif_fit#); |
| 6841 |
pickup tiny.nib; |
| 6842 |
usechar; |
| 6843 |
.5[x100,x101]=x2l; x100-x101=1.8dot_size; |
| 6844 |
umlaut(100,101); |
| 6845 |
endchar; |
| 6846 |
|
| 6847 |
iff known chars.latin_ibreve: |
| 6848 |
bskchar "The letter i with breve"; |
| 6849 |
beginchar(chars.latin_ibreve,6u#,asc_height#,0); uni "0x012D"; |
| 6850 |
italcorr asc_height#*slant-u#; |
| 6851 |
adjust_fit(serif_fit#,serif_fit#); |
| 6852 |
pickup tiny.nib; |
| 6853 |
usechar; |
| 6854 |
x101=x2l-o; |
| 6855 |
breve(100,101,102); |
| 6856 |
endchar; |
| 6857 |
|
| 6858 |
iff known chars.latin_iinvbreve: |
| 6859 |
bskchar "The letter i with inverted breve"; |
| 6860 |
beginchar(chars.latin_iinvbreve,6u#,asc_height#,0); uni "0x020B"; |
| 6861 |
italcorr x_height#*slant-.25u#; |
| 6862 |
adjust_fit(serif_fit#,serif_fit#); |
| 6863 |
pickup tiny.nib; |
| 6864 |
usechar; |
| 6865 |
x101=x2l; |
| 6866 |
tieacc(100,101,102); |
| 6867 |
endchar; |
| 6868 |
|
| 6869 |
iff known chars.latin_itilde: |
| 6870 |
bskchar "The letter i with tilde"; |
| 6871 |
beginchar(chars.latin_itilde,6u#,asc_height#,0); uni "0x0129"; |
| 6872 |
italcorr asc_height#*slant; |
| 6873 |
adjust_fit(serif_fit#,serif_fit#); |
| 6874 |
pickup tiny.nib; |
| 6875 |
usechar; |
| 6876 |
x101-x100=5.5u; rt x.tilde=x2l; |
| 6877 |
tilde(100,101); |
| 6878 |
endchar; |
| 6879 |
|
| 6880 |
iff known chars.latin_icaron: |
| 6881 |
bskchar "The letter i with caron"; |
| 6882 |
beginchar(chars.latin_icaron,6u#,asc_height#,0); uni "0x01D0"; |
| 6883 |
italcorr asc_height#*slant-.25u#; |
| 6884 |
adjust_fit(serif_fit#,serif_fit#); |
| 6885 |
pickup tiny.nib; |
| 6886 |
usechar; |
| 6887 |
x101=x2l; x102-x100=4.5u; |
| 6888 |
hacek(100,101,102); |
| 6889 |
endchar; |
| 6890 |
|
| 6891 |
charscription(6u,x_height,0)( |
| 6892 |
oblu:=2oblu; |
| 6893 |
x1=.5w; bot y1=0; top y2=x_height; |
| 6894 |
save stem; stem:=.8cap_stem; |
| 6895 |
lowercase_stem(1,2,1.2jut).alt; |
| 6896 |
bot z100=(x1l,y1b); |
| 6897 |
oblu:=f_obl; oblu.more:=1.25oblu; |
| 6898 |
infill ifobl(2r,2b,1r,1l,more,)---obl(100,2b,1b)...z1l---obl(1r,1l,2r)---cycle; |
| 6899 |
); |
| 6900 |
|
| 6901 |
iff known chars.latin_dotless_i_BB: |
| 6902 |
bskchar "The blackboard-bold dotless i"; |
| 6903 |
beginchar(chars.latin_dotless_i_BB,6u#, x_height#, 0); uni "non"; |
| 6904 |
adjust_fit(serif_fit#,serif_fit#); |
| 6905 |
pickup tiny.nib; |
| 6906 |
usechar; |
| 6907 |
endchar; |
| 6908 |
|
| 6909 |
iff known chars.latin_i_BB: |
| 6910 |
bskchar "The blackboard-bold letter i"; |
| 6911 |
beginchar(chars.latin_i_BB,6u#, asc_height#-.5dot_size#, 0); uni "0x1D55A"; |
| 6912 |
italcorr (asc_height#-.5dot_size#)*slant-1.5u#; |
| 6913 |
adjust_fit(serif_fit#,serif_fit#); |
| 6914 |
pickup tiny.nib; |
| 6915 |
usechar; |
| 6916 |
x3=x1-ddot; top y3=h-.5dot_size; |
| 6917 |
dot(3); |
| 6918 |
endchar; |
| 6919 |
|
| 6920 |
charscription(6u,x_height,0)( |
| 6921 |
oblu:=2oblu; |
| 6922 |
x1=.5w; bot y1=0; top y2=x_height; |
| 6923 |
lowercase_points(1,2,1.2jut).alt; |
| 6924 |
filldraw z1f---z2r..z2b---z1a..z1..cycle; |
| 6925 |
); |
| 6926 |
|
| 6927 |
iff known chars.latin_dotless_i_SS: |
| 6928 |
bskchar "The sans-serif dotless i"; |
| 6929 |
beginchar(chars.latin_dotless_i_SS,6u#, x_height#, 0); uni "non"; |
| 6930 |
adjust_fit(serif_fit#-.5u#,serif_fit#-.5u#); |
| 6931 |
pickup tiny.nib; |
| 6932 |
usechar; |
| 6933 |
endchar; |
| 6934 |
|
| 6935 |
iff known chars.latin_i_SS: |
| 6936 |
bskchar "The sans-serif letter i"; |
| 6937 |
beginchar(chars.latin_i_SS,6u#, asc_height#-.5dot_size#, 0); uni "0x1D5C2"; |
| 6938 |
italcorr (asc_height#-.5dot_size#)*slant-1.5u#; |
| 6939 |
adjust_fit(serif_fit#-.5u#,serif_fit#-.5u#); |
| 6940 |
pickup tiny.nib; |
| 6941 |
x3=x1-ddot; top y3=h-.5dot_size; |
| 6942 |
usechar; |
| 6943 |
dot(3); |
| 6944 |
endchar; |
| 6945 |
|
| 6946 |
iff known chars.latin_iogonek: |
| 6947 |
bskchar "The letter i with ogonek"; |
| 6948 |
beginchar(chars.latin_iogonek,6u#,asc_height#-.5dot_size#,.85desc_depth#); uni "0x012F"; |
| 6949 |
italcorr (asc_height#-.5dot_size#)*slant-1.5u#; |
| 6950 |
adjust_fit(serif_fit#,serif_fit#); |
| 6951 |
pickup tiny.nib; |
| 6952 |
oblu:=2oblu; |
| 6953 |
path p[]; numeric tim[]; |
| 6954 |
x1=.5w; bot y1=0; top y2=x_height; |
| 6955 |
lowercase_points(1,2,1.2jut).alt; |
| 6956 |
p0:=lowercase_stem_draw(1,2)--z2r; |
| 6957 |
pos3(stem,0); pos4(curve,0); pos5(hair,45); pos6(hair,160); |
| 6958 |
x3-x4l=1.5u; x3=x1; x5-x4l=3u; rt x6l-x5=1.5u; |
| 6959 |
y3=0; y4=-.5d; bot y5l=-d; y6=-2/3d; |
| 6960 |
p1:=z3l{z4l-z3r}..z4l...z5l..{z3-z4}z6l..z6r{z4-z3}..z5r..z4r..z3r; |
| 6961 |
tim0=xpart(p0 intersectiontimes ((x3l,0)--(x3l,y1b))); |
| 6962 |
tim1=xpart(p0 intersectiontimes ((x3r,0)--(x3r,y1b))); |
| 6963 |
filldraw subpath(0,rundy(p0,tim0).zpet) of p0 |
| 6964 |
..subpath(rundy(p1,0),rundy(p1,infinity).zpet) of p1 |
| 6965 |
..subpath(rundy(p0,tim1),infinity) of p0..cycle; |
| 6966 |
x0=x1-ddot; top y0=h-.5dot_size; |
| 6967 |
dot(0); |
| 6968 |
penlabels(3,4,5,6); |
| 6969 |
endchar; |
| 6970 |
|
| 6971 |
iff known chars.logo_i: |
| 6972 |
bskchar "The letter i for logo"; |
| 6973 |
beginchar(chars.logo_i,6u#, asc_height#-.5dot_size#, comma_depth#); uni "non"; |
| 6974 |
adjust_fit(serif_fit#,serif_fit#); |
| 6975 |
pickup tiny.nib; |
| 6976 |
x3=x1-ddot; top y3=h-.5dot_size; |
| 6977 |
oblu:=2oblu; |
| 6978 |
x1=.5w; bot y1=0; top y2=x_height; |
| 6979 |
lowercase_points(1,2,1.2jut).alt; |
| 6980 |
z5=z1b-z1c; |
| 6981 |
y1c:=-d; y1a:=0; |
| 6982 |
x4=x1; z4=whatever[z1c,z1d]+o*up; |
| 6983 |
z6=z1c+ z5 rotated angle(z1d-z1c); |
| 6984 |
filldraw z2r..{(x1a-x1r,-.25serif_drop)}z2a&z2a---obl(2b,2a,1a)---z1a..z6{z1c-z1d}..{z1d-z1c}z1c |
| 6985 |
..z4..{z1d-z1c}z1d{right}..{left}z1e..{up}z1f---z2r&cycle; |
| 6986 |
dot(3); |
| 6987 |
labels(1a,1b,1c,4,6); |
| 6988 |
endchar; |
| 6989 |
|
| 6990 |
charscription(5u,x_height,desc_depth)( |
| 6991 |
oblu:=2oblu; |
| 6992 |
pos3(hair,-90); |
| 6993 |
bot y1=-d+like_curve; top y2=x_height; rt x1r=w-u; |
| 6994 |
bot y3r=-d; x3=if monospace: .4w else: u fi; top y4=y1; if monospace: x4=u; else: x4l=-u; fi; |
| 6995 |
lowercase_points(1,2,1.2jut).alt; |
| 6996 |
filldraw z3r{right}...{up}z1r--z2r..{(x2a-x1r,-.25serif_drop)}z2a& |
| 6997 |
z2a---obl(2b,2a,1a)---z1l...{left}z3l..reverse smitko(4,stem)..cycle; |
| 6998 |
penlabels(1,2,3,4); labels(4',4'',4'''); |
| 6999 |
); |
| 7000 |
|
| 7001 |
iff known chars.latin_dotless_j: |
| 7002 |
bskchar "The dotless j"; |
| 7003 |
beginchar(chars.latin_dotless_j,5u#,x_height#,desc_depth#); uni "non"; |
| 7004 |
italcorr x_height#*slant; |
| 7005 |
adjust_fit(0,0); |
| 7006 |
pickup tiny.nib; |
| 7007 |
usechar; |
| 7008 |
endchar; |
| 7009 |
|
| 7010 |
iff known chars.latin_j: |
| 7011 |
bskchar "The letter j"; |
| 7012 |
beginchar(chars.latin_j,5u#,asc_height#-.5dot_size#,desc_depth#); uni "0x006A"; |
| 7013 |
italcorr (asc_height#-.5dot_size#)*slant-.25u#; |
| 7014 |
adjust_fit(0,0); |
| 7015 |
pickup tiny.nib; |
| 7016 |
top y5=h-.5dot_size; x5=x1-ddot; |
| 7017 |
usechar; |
| 7018 |
dot(5); |
| 7019 |
endchar; |
| 7020 |
|
| 7021 |
iff known chars.latin_jcircumflex: |
| 7022 |
bskchar "The letter j with circumflex"; |
| 7023 |
beginchar(chars.latin_jcircumflex,5u#,asc_height#-.1x_height#,1.5like_cap_curve#); uni "0x0135"; |
| 7024 |
italcorr .5[asc_height#,x_height#]*slant+1.5u#; |
| 7025 |
adjust_fit(0,0); |
| 7026 |
pickup tiny.nib; |
| 7027 |
usechar; |
| 7028 |
x101=x2l; |
| 7029 |
circumflex(100,101,102); |
| 7030 |
endchar; |
| 7031 |
|
| 7032 |
iff known chars.latin_ij: |
| 7033 |
bskchar "The letter ij"; |
| 7034 |
beginchar(chars.latin_ij,9.5u#,asc_height#-.5dot_size#,desc_depth#); uni "0x0133"; |
| 7035 |
italcorr (asc_height#-.5dot_size#)*slant-.25u#; |
| 7036 |
adjust_fit(0,0); |
| 7037 |
pickup tiny.nib; |
| 7038 |
numeric shift; shift:=w-5u; |
| 7039 |
usechar shifted (shift*right); |
| 7040 |
oblu:=2f_obl; |
| 7041 |
lft x5l=2u; bot y5=0; top y6=x_height; |
| 7042 |
top y7=top y8=h-.5dot_size; x7=x5-ddot; x8=x1-ddot+shift; |
| 7043 |
lowercase_stem(5,6,1.2jut).alt; |
| 7044 |
dot(7); dot(8); |
| 7045 |
endchar; |
| 7046 |
|
| 7047 |
charscription(5u,x_height,desc_depth)( |
| 7048 |
path p[]; numeric tim[]; |
| 7049 |
oblu:=2oblu; |
| 7050 |
pos3(hair,-90); |
| 7051 |
bot y1=-d+like_curve; top y2=x_height; rt x1r=w-u; |
| 7052 |
bot y3r=-d; x3=if monospace: .4w else: u fi; top y4=y1; if monospace: x4=u; else: x4l=-u; fi; |
| 7053 |
save stem; stem:=.8cap_stem; |
| 7054 |
lowercase_points(1,2,1.2jut).alt; |
| 7055 |
filldraw z3r{right}...{up}z1r--z2r..{(x2a-x1r,-.25serif_drop)}z2a& |
| 7056 |
z2a---obl(2b,2a,1a)---z1l...{left}z3l..reverse smitko(4,stem)..cycle; |
| 7057 |
p100:=z1l{down}...{left}z3l; |
| 7058 |
p101:=z3r{right}..{up}z1r; |
| 7059 |
z100=bsktouch(p100,down,p101,up); |
| 7060 |
tim100=xpart(p100 intersectiontimes (z100--z1c)); |
| 7061 |
tim101=xpart(p101 intersectiontimes (z100--(w,-d))); |
| 7062 |
oblu:=bbw; oblu.more:=1.25f_obl; oblu.m:=f_obl; |
| 7063 |
infill ifobl(2r,2b,1r,1l,more,m)---subpath(0,rundy(p100,tim100).zpet) of p100 |
| 7064 |
..subpath(rundy(p101,tim101),infinity) of p101---cycle; |
| 7065 |
penlabels(1,2,3,4); labels(4',4'',4''',100); |
| 7066 |
); |
| 7067 |
|
| 7068 |
iff known chars.latin_dotless_j_BB: |
| 7069 |
bskchar "The blackboard-bold dotless j"; |
| 7070 |
beginchar(chars.latin_dotless_j_BB,5u#,x_height#,desc_depth#); uni "non"; |
| 7071 |
italcorr x_height#*slant; |
| 7072 |
adjust_fit(0,0); |
| 7073 |
pickup tiny.nib; |
| 7074 |
usechar; |
| 7075 |
endchar; |
| 7076 |
|
| 7077 |
iff known chars.latin_j_BB: |
| 7078 |
bskchar "The blackboard-bold letter j"; |
| 7079 |
beginchar(chars.latin_j_BB,5u#,asc_height#-.5dot_size#,desc_depth#); uni "0x1D55B"; |
| 7080 |
italcorr (asc_height#-.5dot_size#)*slant-.25u#; |
| 7081 |
adjust_fit(0,0); |
| 7082 |
pickup tiny.nib; |
| 7083 |
top y5=h-.5dot_size; x5=x1-ddot; |
| 7084 |
usechar; |
| 7085 |
dot(5); |
| 7086 |
endchar; |
| 7087 |
|
| 7088 |
charscription(5u,x_height,desc_depth)( |
| 7089 |
oblu:=2oblu; |
| 7090 |
pos3(hair,-90); pos4(stem,150); |
| 7091 |
bot y1=-d+like_curve; top y2=x_height; rt x1r=w-u; |
| 7092 |
bot y3r=-d; x3=if monospace: .4w else: u fi; top y4=y1; if monospace: x4=u; else: x4l=-u; fi; |
| 7093 |
lowercase_points(1,2,1.2jut).alt; |
| 7094 |
z4'=z4+(o,.2stem); z4''=z4+.5(stem-currentbreadth)*dir-135; |
| 7095 |
filldraw z3r{right}...{up}z1r---z2r..z2b---z1l...{left}z3l.. z4l..z4'..z4''..cycle; |
| 7096 |
penlabels(1,2,3,4); labels(4',4'',4'''); |
| 7097 |
); |
| 7098 |
|
| 7099 |
iff known chars.latin_dotless_j_SS: |
| 7100 |
bskchar "The sans-serif dotless j"; |
| 7101 |
beginchar(chars.latin_dotless_j_SS,5u#,x_height#,desc_depth#); uni "non"; |
| 7102 |
italcorr x_height#*slant; |
| 7103 |
adjust_fit(0,0); |
| 7104 |
pickup tiny.nib; |
| 7105 |
usechar; |
| 7106 |
endchar; |
| 7107 |
|
| 7108 |
iff known chars.latin_j_SS: |
| 7109 |
bskchar "The sans-serif letter j"; |
| 7110 |
beginchar(chars.latin_j_SS,5u#,asc_height#-.5dot_size#,desc_depth#); uni "0x1D5C3"; |
| 7111 |
italcorr (asc_height#-.5dot_size#)*slant-.25u#; |
| 7112 |
adjust_fit(0,0); |
| 7113 |
pickup tiny.nib; |
| 7114 |
top y5=h-.5dot_size; x5=x1-ddot; |
| 7115 |
usechar; |
| 7116 |
dot(5); |
| 7117 |
endchar; |
| 7118 |
|
| 7119 |
charscription(10.5u,asc_height,0)( |
| 7120 |
pos3(whatever,0); pos5(whatever,0); |
| 7121 |
bot y1=0; top y2=h; lft x1l=2u; |
| 7122 |
rt x3r=w-3u; top y3=x_height; rt x5r=w-2u; bot y5r=0; |
| 7123 |
lowercase_points(1,2,jut); |
| 7124 |
y4r=.45x_height; x4r=x2r; z4l=z4r+(hair-tiny,0) rotated (angle(z3r-z4r)+90); |
| 7125 |
z3l=z4l+whatever*(z3r-z4r); |
| 7126 |
x6l=x4r+hair+.75u; z6l=whatever[z4r,z3r]; |
| 7127 |
z6'=z6l+(stem-tiny,0) rotated (angle(z5r-z6l)+90); |
| 7128 |
z5l=z6l+whatever*(z5r-z6'); z6r=whatever[z5r,z6']=whatever[z4r,z3r]; |
| 7129 |
x4'=x2r; z4'=whatever[z3l,z4l]; |
| 7130 |
serifs_tl(3l); serifs_tr(3r); serifs_br(5r); serifs_bl(5l); |
| 7131 |
z4r'=z4r+.5u*down; z4r''=z4r+(u,0) rotated (angle(z3r-z4r)); |
| 7132 |
z6l'=z6l+(-u,0) rotated (angle(z3r-z4r)); |
| 7133 |
z6l''=z6l+(u,0) rotated (angle(z5l-z6l)); |
| 7134 |
z6r'=z6r+(u,0) rotated (angle(z5r-z6r)); |
| 7135 |
z6r''=(z6r+(u,0) rotated (angle(z3r-z4r))) |
| 7136 |
shifted ((hair-currentbreadth)*unitvector(z3r-z4r) rotated -90); |
| 7137 |
z2'=z4'+(1.5u,0) rotated (angle(z3l-z4l)); z2''=z4'+(0,2u); |
| 7138 |
filldraw z1a{down}..{left}z1b..z1c{right}..z1+ser_boule*up..{right}z1d.. |
| 7139 |
z1e{left}..z1f---obl(4r,1f,4r'')..z4r''..z6l''--- |
| 7140 |
obl(5l,6l'',5r){right}..z5r+.5ser_boule*up..{right}z5r.a.. |
| 7141 |
{left}z5r.c..diag_serif(5r,6r)---z6r'..z6r'' |
| 7142 |
if not bold_face: ---diag_serif(3r,4r) fi ..{dir0}z3r.c..z3r.a---z3l.a..z3l.c{dir0}.. |
| 7143 |
diag_serif(3l,4l)---z2'..{up}z2''--z2r |
| 7144 |
..{(x1a-x1r,-.25serif_drop)}z2a&z2a---obl(2b,2a,1a) |
| 7145 |
---cycle; |
| 7146 |
penlabels(1,2,3,4,5,6); labels(2',2'',4',4r',4r'',6l',6l'',6r',6r''); |
| 7147 |
); |
| 7148 |
|
| 7149 |
iff known chars.latin_k: |
| 7150 |
bskchar "The letter k"; |
| 7151 |
beginchar(chars.latin_k,10.5u#,asc_height#,0); uni "0x006B"; |
| 7152 |
adjust_fit(serif_fit#,serif_fit#); |
| 7153 |
pickup tiny.nib; |
| 7154 |
usechar; |
| 7155 |
endchar; |
| 7156 |
|
| 7157 |
iff known chars.latin_kcaron: |
| 7158 |
bskchar "The letter k with caron"; |
| 7159 |
beginchar(chars.latin_kcaron,10.5u#,asc_height#,0); uni "0x01E9"; |
| 7160 |
italcorr asc_height#*slant-.5u#; |
| 7161 |
adjust_fit(serif_fit#,serif_fit#); |
| 7162 |
pickup tiny.nib; |
| 7163 |
usechar; |
| 7164 |
x100=x1r+u; x102-x100=4.5u; y100=h+hair; y101l=1/4[x_height,y100]+hair; |
| 7165 |
hacek(100,101,102); |
| 7166 |
endchar; |
| 7167 |
|
| 7168 |
iff known chars.latin_kcedilla: |
| 7169 |
bskchar "The letter k with cedilla (treated as comma)"; |
| 7170 |
beginchar(chars.latin_kcedilla,10.5u#,asc_height#,.75comma_depth#); uni "0x0137"; |
| 7171 |
adjust_fit(serif_fit#,serif_fit#); |
| 7172 |
pickup tiny.nib; |
| 7173 |
usechar; |
| 7174 |
lft x100=.5w; top y100''r=-o; |
| 7175 |
comma(100,.75dot_size,.5hair,.75comma_depth); |
| 7176 |
endchar; |
| 7177 |
|
| 7178 |
iff known chars.latin_k_BB: |
| 7179 |
bskchar "The blackboard-bold letter k"; |
| 7180 |
beginchar(chars.latin_k_BB,11u#,asc_height#,0); uni "0x1D55C"; |
| 7181 |
adjust_fit(serif_fit#,serif_fit#); |
| 7182 |
pickup tiny.nib; |
| 7183 |
pos3(whatever,0); pos5(whatever,0); |
| 7184 |
bot y1=0; top y2=h; lft x1l=2u; |
| 7185 |
rt x3r=w-3u; top y3=x_height; rt x5r=w-2u; bot y5r=0; |
| 7186 |
{{save stem; numeric stem; stem:=.8cap_stem; |
| 7187 |
lowercase_points(1,2,jut); |
| 7188 |
y4r=.45x_height; x4r=x2r; z4l=z4r+(hair-tiny,0) rotated (angle(z3r-z4r)+90); |
| 7189 |
z3l=z4l+whatever*(z3r-z4r); |
| 7190 |
x6l=x4r+hair+.75u; z6l=whatever[z4r,z3r]; |
| 7191 |
z6'=z6l+(stem-tiny,0) rotated (angle(z5r-z6l)+90); |
| 7192 |
}}; |
| 7193 |
z5l=z6l+whatever*(z5r-z6'); z6r=whatever[z5r,z6']=whatever[z4r,z3r]; |
| 7194 |
x4'=x2r; z4'=whatever[z3l,z4l]; |
| 7195 |
serifs_tl(3l); serifs_tr(3r); serifs_br(5r); serifs_bl(5l); |
| 7196 |
z4r'=z4r+.5u*down; z4r''=z4r+(u,0) rotated (angle(z3r-z4r)); |
| 7197 |
z6l'=z6l+(-u,0) rotated (angle(z3r-z4r)); |
| 7198 |
z6l''=z6l+(u,0) rotated (angle(z5l-z6l)); |
| 7199 |
z6r'=z6r+(u,0) rotated (angle(z5r-z6r)); |
| 7200 |
z6r''=(z6r+(u,0) rotated (angle(z3r-z4r))) |
| 7201 |
shifted ((hair-currentbreadth)*unitvector(z3r-z4r) rotated -90); |
| 7202 |
z2'=z4'+(1.5u,0) rotated (angle(z3l-z4l)); z2''=z4'+(0,2u); |
| 7203 |
filldraw z1a{down}..{left}z1b..z1c{right}..z1+ser_boule*up..{right}z1d.. |
| 7204 |
z1e{left}..z1f---obl(4r,1f,4r'')..z4r''..z6l''--- |
| 7205 |
obl(5l,6l'',5r){right}..z5r+.5ser_boule*up..{right}z5r.a.. |
| 7206 |
{left}z5r.c..diag_serif(5r,6r)---z6r'..z6r'' |
| 7207 |
if not bold_face: ---diag_serif(3r,4r) fi ..{dir0}z3r.c..z3r.a---z3l.a..z3l.c{dir0}.. |
| 7208 |
diag_serif(3l,4l)---z2'..{up}z2''--z2r |
| 7209 |
..{(x1a-x1r,-.25serif_drop)}z2a&z2a---obl(2b,2a,1a) |
| 7210 |
---cycle; |
| 7211 |
oblu.more:=1.25oblu; |
| 7212 |
bot z100=(x1l,y1b); bot y101=y5r.c; rt z101=whatever[z5r,z6r]; |
| 7213 |
infill ifobl(2r,2b,1r,1l,more,)---obl(100,2b,1b)...z1l---obl(1r,1l,2r)---cycle; |
| 7214 |
infill ifobl(6r,6l,5r,5l,,)---obl(5l,6l,5r)...{right}z5r...obl(101,5r.c,6r)---cycle; |
| 7215 |
penlabels(1,2,3,4,5,6); labels(2',2'',4',4r',4r'',6l',6l'',6r',6r''); |
| 7216 |
endchar; |
| 7217 |
|
| 7218 |
iff known chars.latin_k_SS: |
| 7219 |
bskchar "The sans-serif letter k"; |
| 7220 |
beginchar(chars.latin_k_SS,10.5u#,asc_height#,0); uni "0x1D5C4"; |
| 7221 |
adjust_fit(serif_fit#,serif_fit#); |
| 7222 |
pickup tiny.nib; |
| 7223 |
pos3(whatever,0); pos5(whatever,0); |
| 7224 |
bot y1=0; top y2=h; lft x1l=2u; |
| 7225 |
rt x3r=w-3u; top y3=x_height; rt x5r=w-2u; bot y5r=0; |
| 7226 |
lowercase_points(1,2,jut); |
| 7227 |
y4r=.45x_height; x4r=x2r; z4l=z4r+(hair-tiny,0) rotated (angle(z3r-z4r)+90); |
| 7228 |
z3l=z4l+whatever*(z3r-z4r); |
| 7229 |
x6l=x4r+hair+.75u; z6l=whatever[z4r,z3r]; |
| 7230 |
z6'=z6l+(stem-tiny,0) rotated (angle(z5r-z6l)+90); |
| 7231 |
z5l=z6l+whatever*(z5r-z6'); z6r=whatever[z5r,z6']=whatever[z4r,z3r]; |
| 7232 |
x4'=x2r; z4'=whatever[z3l,z4l]; |
| 7233 |
serifs_tl(3l); serifs_tr(3r); serifs_br(5r); serifs_bl(5l); |
| 7234 |
z4r'=z4r+.5u*down; z4r''=z4r+(u,0) rotated (angle(z3r-z4r)); |
| 7235 |
z6l'=z6l+(-u,0) rotated (angle(z3r-z4r)); |
| 7236 |
z6l''=z6l+(u,0) rotated (angle(z5l-z6l)); |
| 7237 |
z6r'=z6r+(u,0) rotated (angle(z5r-z6r)); |
| 7238 |
z6r''=(z6r+(u,0) rotated (angle(z3r-z4r))) |
| 7239 |
shifted ((hair-currentbreadth)*unitvector(z3r-z4r) rotated -90); |
| 7240 |
z2'=z4'+(1.5u,0) rotated (angle(z3l-z4l)); z2''=z4'+(0,2u); |
| 7241 |
y100=y6r''; z100=whatever[z3r,z4r]; |
| 7242 |
filldraw z1a..z1..z1f---obl(4r,1f,4r'')..z4r''..z6l''--- |
| 7243 |
obl(5l,6l'',5r){right}..diag_serif(5r,6r)---z6r'..z100 |
| 7244 |
---z3r..z3l---z2'..{up}z2''---z2r..z2b---cycle; |
| 7245 |
penlabels(1,2,3,4,5,6); labels(2',2'',4',4r',4r'',6l',6l'',6r',6r'',100); |
| 7246 |
endchar; |
| 7247 |
|
| 7248 |
iff known chars.latin_kra: |
| 7249 |
bskchar "The letter kra"; |
| 7250 |
beginchar(chars.latin_kra,11.5u#,x_height#,0); uni "0x0138"; |
| 7251 |
adjust_fit(serif_fit#,serif_fit#); |
| 7252 |
pickup tiny.nib; |
| 7253 |
oblu:=2oblu; |
| 7254 |
pos1(stem,0); pos2(stem,0); |
| 7255 |
pos3(whatever,0); pos5(whatever,0); |
| 7256 |
bot y1=0; top y2=h; lft x1l=lft x2l=2u; |
| 7257 |
rt x3r=w-3u; top y3=h; rt x5r=w-2u; bot y5r=0; |
| 7258 |
y4r=.45h; x4r=x2r; z4l=z4r+(hair-tiny,0) rotated (angle(z3r-z4r)+90); |
| 7259 |
z3l=z4l+whatever*(z3r-z4r); |
| 7260 |
x6l=x4r+hair+.5u; z6l=whatever[z4r,z3r]; z6'=z6l+(stem-tiny,0) rotated (angle(z5r-z6l)+90); |
| 7261 |
z5l=z6l+whatever*(z5r-z6'); z6r=whatever[z5r,z6']=whatever[z4r,z3r]; |
| 7262 |
x4'=x2r; z4'=whatever[z3l,z4l]; |
| 7263 |
serif_bot(1); drop_serif(2,jut).alt; |
| 7264 |
serif_bot(5); |
| 7265 |
serifs_tl(3l); serifs_tr(3r); |
| 7266 |
z4r'=z4r+.5u*down; z4r''=z4r+(u,0) rotated (angle(z3r-z4r)); |
| 7267 |
z6l'=z6l+(-u,0) rotated (angle(z3r-z4r)); |
| 7268 |
z6l''=z6l+(u,0) rotated (angle(z5l-z6l)); |
| 7269 |
z6r'=z6r+(u,0) rotated (angle(z5r-z6r)); z6r''=z6r+(u,0) rotated (angle(z3r-z4r)); |
| 7270 |
x2'=x1r; z2'=whatever[z3l,z4l]; z2''=z4'+(0,2u); |
| 7271 |
z5l.b=z5a; z5r.b=z5f; |
| 7272 |
filldraw z1a{down}..{left}z1b..z1c---z1d..z1e{left}..z1f---z4r..z4r'' if x6l'>x4r'': ..z6l' fi |
| 7273 |
..z6l''---diag_serif(5l,6l)..{left}z5b..z5c---z5d..{left}z5e..diag_serif(5r,6r)---z6r' |
| 7274 |
..z6r''--- diag_serif(3r,4r)..{dir0}z3r.c..z3r.a---z3l.a.. z3l.c{dir0}..diag_serif(3l,4l) |
| 7275 |
---obl(2',3l,2'')---z2''--z2r..{(x1a-x1r,-.25serif_drop)}z2a&z2a---obl(2b,2a,1a)---cycle; |
| 7276 |
penlabels(1,2,3,4,5,6); labels(2',2'',4',4r',4r'',6l',6l'',6r',6r''); |
| 7277 |
endchar; |
| 7278 |
|
| 7279 |
charscription(6u,asc_height,0)( |
| 7280 |
x1=.5w; bot y1=0; top y2=h; |
| 7281 |
lowercase_stem(1,2,jut); |
| 7282 |
); |
| 7283 |
|
| 7284 |
iff known chars.latin_l: |
| 7285 |
bskchar "The letter l"; |
| 7286 |
beginchar(chars.latin_l,6u#, asc_height#, 0); uni "0x006C"; |
| 7287 |
italcorr asc_height#*slant-1.75u#; |
| 7288 |
adjust_fit(serif_fit#,serif_fit#); |
| 7289 |
pickup tiny.nib; |
| 7290 |
usechar; |
| 7291 |
endchar; |
| 7292 |
|
| 7293 |
iff known chars.latin_lacute: |
| 7294 |
bskchar "The letter l with acute"; |
| 7295 |
beginchar(chars.latin_lacute,6u#, asc_height#+.3x_height#, 0); uni "0x013A"; |
| 7296 |
italcorr asc_height#*slant; |
| 7297 |
adjust_fit(serif_fit#,serif_fit#); |
| 7298 |
pickup tiny.nib; |
| 7299 |
usechar; |
| 7300 |
x101=.5[x2a,x2l]; x100r=w-u; y101=asc_height+.75u; |
| 7301 |
acute(100,101).capital; |
| 7302 |
endchar; |
| 7303 |
|
| 7304 |
iff known chars.latin_lcaron: |
| 7305 |
bskchar "The letter l with caron (treated like comma)"; |
| 7306 |
beginchar(chars.latin_lcaron,6u#, asc_height#, 0); uni "0x013E"; |
| 7307 |
italcorr asc_height#*slant+u#; |
| 7308 |
adjust_fit(serif_fit#,serif_fit#); |
| 7309 |
pickup tiny.nib; |
| 7310 |
usechar; |
| 7311 |
y100''r=h; x100'''=w; |
| 7312 |
comma(100,.75dot_size,.5hair,.75comma_depth); |
| 7313 |
endchar; |
| 7314 |
|
| 7315 |
iff known chars.latin_ldot: |
| 7316 |
bskchar "The letter l with middle dot"; |
| 7317 |
beginchar(chars.latin_l,6u#+dot_size#,asc_height#,0); uni "0x0140"; |
| 7318 |
italcorr x_height#*slant; |
| 7319 |
adjust_fit(serif_fit#,serif_fit#); |
| 7320 |
pickup tiny.nib; |
| 7321 |
usechar; |
| 7322 |
top y100=x_height; x100+.5dot_size=w-u; |
| 7323 |
dot(100); |
| 7324 |
endchar; |
| 7325 |
|
| 7326 |
iff known chars.latin_lcedilla: |
| 7327 |
bskchar "The letter l with cedilla (treated as comma)"; |
| 7328 |
beginchar(chars.latin_lcedilla,6u#,asc_height#,.75comma_depth#); uni "0x013C"; |
| 7329 |
italcorr asc_height#*slant-1.75u#; |
| 7330 |
adjust_fit(serif_fit#,serif_fit#); |
| 7331 |
pickup tiny.nib; |
| 7332 |
usechar; |
| 7333 |
x100=.5w; top y100''r=-o; |
| 7334 |
comma(100,.75dot_size,.5hair,.75comma_depth); |
| 7335 |
endchar; |
| 7336 |
|
| 7337 |
iff known chars.latin_ldotabove: |
| 7338 |
bskchar "The letter l with dot above"; |
| 7339 |
beginchar(chars.latin_ldotabove,6u#,Acc_height#+o#,0); uni "non"; |
| 7340 |
italcorr asc_height#*slant-1.25u#; |
| 7341 |
adjust_fit(serif_fit#,serif_fit#); |
| 7342 |
pickup tiny.nib; |
| 7343 |
usechar; |
| 7344 |
x100=x1; |
| 7345 |
dotabove(100); |
| 7346 |
endchar; |
| 7347 |
|
| 7348 |
iff known chars.latin_l_BB: |
| 7349 |
bskchar "The blackboard-bold letter l"; |
| 7350 |
beginchar(chars.latin_l_BB,6u#, asc_height#, 0); uni "0x1D55D"; |
| 7351 |
italcorr asc_height#*slant-1.75u#; |
| 7352 |
adjust_fit(serif_fit#,serif_fit#); |
| 7353 |
pickup tiny.nib; |
| 7354 |
save stem; stem:=.8cap_stem; |
| 7355 |
x1=.5w; bot y1=0; top y2=h; |
| 7356 |
lowercase_stem(1,2,jut); |
| 7357 |
oblu.more:=1.25oblu; |
| 7358 |
bot z100=(x1l,y1b); |
| 7359 |
infill ifobl(2r,2b,1r,1l,more,)---obl(100,2b,1b)...z1l---obl(1r,1l,2r)---cycle; |
| 7360 |
endchar; |
| 7361 |
|
| 7362 |
iff known chars.latin_l_SS: |
| 7363 |
bskchar "The sans-serif letter l"; |
| 7364 |
beginchar(chars.latin_l_SS,6u#, asc_height#, 0); uni "0x1D5C5"; |
| 7365 |
italcorr asc_height#*slant-1.75u#; |
| 7366 |
adjust_fit(serif_fit#,serif_fit#); |
| 7367 |
pickup tiny.nib; |
| 7368 |
pos3(hair,60); |
| 7369 |
x1=.5w; bot y1=0; top y2=h; |
| 7370 |
lowercase_points(1,2,jut); |
| 7371 |
x3=.5[x1,x1e]; bot y3l=-o; |
| 7372 |
filldraw z1f---z2r..z2b---z1a...{right}z3l..{left}z3r...cycle; |
| 7373 |
penlabels(3); |
| 7374 |
endchar; |
| 7375 |
|
| 7376 |
iff known chars.latin_lslash: |
| 7377 |
bskchar "The letter l with slash"; |
| 7378 |
beginchar(chars.latin_lslash,6u#,asc_height#,0); uni "0x0142"; |
| 7379 |
italcorr x_height#*slant; |
| 7380 |
adjust_fit(serif_fit#,serif_fit#); |
| 7381 |
pickup tiny.nib; |
| 7382 |
numeric theta; |
| 7383 |
x1=.5w; bot y1=0; top y2=h; |
| 7384 |
lowercase_points(1,2,jut); |
| 7385 |
x4-x3=4u; .5[x3,x4]=x1; y4-y3=stem; .5[y3,y4]=.8[bar_height,x_height]; |
| 7386 |
theta=angle(z4-z3)+90; |
| 7387 |
pos3(bar,theta); pos4(bar,theta); |
| 7388 |
x3'l=x3'r=x1l; x4'l=x4'r=x1r; |
| 7389 |
z3'l=whatever[z3l,z4l]; z4'l=whatever[z3l,z4l]; |
| 7390 |
z3'r=whatever[z3r,z4r]; z4'r=whatever[z3r,z4r]; |
| 7391 |
bskpoints(3,4,bar,bar); |
| 7392 |
filldraw z2r..{(x1a-x1r,-.25serif_drop)}z2a&z2a---obl(2b,2a,1a)---obl(3'r,2l,3r) |
| 7393 |
---z3rr..z3l---obl(3'l,3l,1l)---z1a..z1b{left}..{right}z1c..z1+ser_boule*up |
| 7394 |
..z1d{right}..{left}z1e..{up}z1f---obl(4'l,1r,4l)---z4ll..z4r |
| 7395 |
---obl(4'r,4r,2r)---z2r..cycle; |
| 7396 |
penlabels(1,2,3,3',4,4'); labels(3rr,4ll); |
| 7397 |
endchar; |
| 7398 |
|
| 7399 |
iff known chars.latin_m: |
| 7400 |
bskchar "The letter m"; |
| 7401 |
beginchar(chars.latin_m,16u#, x_height#, 0); uni "0x006D"; |
| 7402 |
adjust_fit(serif_fit#,serif_fit#); |
| 7403 |
pickup tiny.nib; |
| 7404 |
path p[]; numeric tim[]; boolean correct; correct:=true; |
| 7405 |
oblu:=6oblu; |
| 7406 |
pos3(stem,0); pos4(stem,0); pos5(n_str_hair,90); pos6(hair,180); |
| 7407 |
pos7(stem,0); pos8(stem,0); pos9(n_str_hair,90); pos10(hair,180); |
| 7408 |
lft x1l=2u; bot y1=0; top y2=h+apex_o; |
| 7409 |
x3=.5w; bot y3=bot y7=0; x4=x3; y4=y8=.75x_height; y5r=y9r=x_height; x5=.5[x3l,x1r]; |
| 7410 |
x6l=x1r; y6=y10=if monospace: .75 else: .6 fi\\ x_height; x10l=x3r; |
| 7411 |
rt x7r=w-2u; x8=x7; x9=.5[x7l,x3r]; |
| 7412 |
{{ if monospace and (x3l-x1l-stem-tiny<2jut): correct:=false; save jut; numeric jut; jut:=.4(x3l-x1l-stem-.5tiny); fi |
| 7413 |
serif_bot(3); serif_bot(7); lowercase_points(1,2,jut);}}; |
| 7414 |
p1:=z6l{up}..z5l..z4l---z3a if correct:.. else: -- fi z3b{left}..{right}z3c; |
| 7415 |
p2:=z3d{right}..{left}z3e if correct:..{up} else: -- fi z3f---z10l..z9l.. |
| 7416 |
z8l---z7a if correct:.. else: -- fi z7b{left}..z7c{right}.. |
| 7417 |
z7+ser_boule*up..{right}z7d..{left}z7e |
| 7418 |
if correct:.. else: -- fi z7f---z8r..z9r..{down}z10r; |
| 7419 |
p21:=subpath(6,infinity) of p2; |
| 7420 |
p3:=z4r{up}..z5r..{down}z6r; |
| 7421 |
p4:=z1f--z2r; |
| 7422 |
tim3=xpart(p3 intersectiontimes p4); |
| 7423 |
z1'=(p3 intersectionpoint p4)+(like_stem+tiny)*up; if y1'>y5l: y1':=y5l; fi |
| 7424 |
z0=(x4r,y1'); |
| 7425 |
tim1=xpart(p21 intersectiontimes ((0,y0-.5hair)--(x9,y0-.5hair))); |
| 7426 |
tim2=xpart(p3 intersectiontimes (z0--(x5,y0))); |
| 7427 |
filldraw p1..z3+ser_boule*up..subpath (0,6) of p2 .. subpath(0,rundy(p21,(tim1,1.5u)).zpet) of p21 |
| 7428 |
..subpath(tim2,rundy(p3,(tim3,if bold_face: 4f_obl else: if (substring(0,5) of font_identifier_) = "BSKRW": f_obl else: oblu fi fi)).zpet) of p3 |
| 7429 |
..broken_stem_draw(1',1,2)---cycle; |
| 7430 |
penlabels(3,4,5,6,7,8,9,10); labels(0,1'); |
| 7431 |
endchar; |
| 7432 |
|
| 7433 |
iff known chars.latin_m_BB: |
| 7434 |
bskchar "The blackboard-bold letter m"; |
| 7435 |
beginchar(chars.latin_m_BB,16u#, x_height#, 0); uni "0x1D55E"; |
| 7436 |
adjust_fit(serif_fit#,serif_fit#); |
| 7437 |
pickup tiny.nib; |
| 7438 |
path p[]; numeric tim[]; boolean correct; correct:=true; |
| 7439 |
save stem; stem:=.8cap_stem; |
| 7440 |
oblu:=6oblu; |
| 7441 |
pos3(stem,0); pos4(stem,0); pos5(n_str_hair,90); pos6(hair,180); |
| 7442 |
pos7(stem,0); pos8(stem,0); pos9(n_str_hair,90); pos10(hair,180); |
| 7443 |
lft x1l=2u; bot y1=0; top y2=h+apex_o; |
| 7444 |
x3=.5w; bot y3=bot y7=0; x4=x3; y4=y8=.75x_height; y5r=y9r=x_height; x5=.5[x3l,x1r]; |
| 7445 |
x6l=x1r; y6=y10=if monospace: .75 else: .6 fi\\ x_height; x10l=x3r; |
| 7446 |
rt x7r=w-2u; x8=x7; x9=.5[x7l,x3r]; |
| 7447 |
{{ if monospace and (x3l-x1l-stem-tiny<2jut): correct:=false; save jut; numeric jut; jut:=.4(x3l-x1l-stem-.5tiny); fi |
| 7448 |
serif_bot(3); serif_bot(7); lowercase_points(1,2,jut);}}; |
| 7449 |
p1:=z6l{up}..z5l..z4l---z3a if correct:.. else: -- fi z3b{left}..{right}z3c; |
| 7450 |
p2:=z3d{right}..{left}z3e if correct:..{up} else: -- fi z3f---z10l..z9l.. |
| 7451 |
z8l---z7a if correct:.. else: -- fi z7b{left}..z7c{right}.. |
| 7452 |
z7+ser_boule*up..{right}z7d..{left}z7e |
| 7453 |
if correct:.. else: -- fi z7f---z8r..z9r..{down}z10r; |
| 7454 |
p21:=subpath(6,infinity) of p2; |
| 7455 |
p3:=z4r{up}..z5r..{down}z6r; |
| 7456 |
p4:=z1f--z2r; |
| 7457 |
tim3=xpart(p3 intersectiontimes p4); |
| 7458 |
z1'=(p3 intersectionpoint p4)+(like_stem+tiny)*up; if y1'>y5l: y1':=y5l; fi |
| 7459 |
z0=(x4r,y1'); |
| 7460 |
tim1=xpart(p21 intersectiontimes ((0,y0-.5hair)--(x9,y0-.5hair))); |
| 7461 |
tim2=xpart(p3 intersectiontimes (z0--(x5,y0))); |
| 7462 |
filldraw p1..z3+ser_boule*up..subpath (0,6) of p2 .. subpath(0,rundy(p21,(tim1,1.5u)).zpet) of p21 |
| 7463 |
..subpath(tim2,rundy(p3,(tim3,if bold_face: 4f_obl else: if (substring(0,5) of font_identifier_) = "BSKRW": f_obl else: oblu fi fi)).zpet) of p3 |
| 7464 |
..broken_stem_draw(1',1,2)---cycle; |
| 7465 |
oblu:=f_obl; oblu.more:=1.25oblu; |
| 7466 |
bot z100=(x1l,y1b); bot z103=(x3r,y3e); bot z104=(x7r,y7e); |
| 7467 |
p100=subpath(0,1) of p3; |
| 7468 |
p101=subpath(1,2) of p1; |
| 7469 |
p102=z8r{up}..z9r..{down}z10r; |
| 7470 |
p103=z10l{up}..z9l..{down}z8l; |
| 7471 |
z101=bsktouch(p100,down,p101,up); |
| 7472 |
z102=bsktouch(p102,down,p103,up); |
| 7473 |
tim100=xpart(p100 intersectiontimes (z101--(x101,h+o+5))); |
| 7474 |
tim101=xpart(p101 intersectiontimes (z101--(x101,0))); |
| 7475 |
tim102=xpart(p102 intersectiontimes (z102--(x102,h+o+5))); |
| 7476 |
tim103=xpart(p103 intersectiontimes (z102--(x102,0))); |
| 7477 |
infill ifobl(2r,2b,1r,1l,more,)---obl(100,2b,1b)...z1l---obl(1r,1l,2r)---cycle; |
| 7478 |
infill subpath(0,rundy(p100,(tim100,bbw)).zpet) of p100 |
| 7479 |
..subpath(rundy(p101,(tim101,bbw)),infinity) of p101 |
| 7480 |
---obl(3l,4l,3r)---z3r...obl(103,3e,4r)---cycle; |
| 7481 |
infill subpath(0,rundy(p102,(tim102,bbw)).zpet) of p102 |
| 7482 |
..subpath(rundy(p103,(tim103,bbw)),infinity) of p103 |
| 7483 |
---obl(7l,8l,7r)---z7r...obl(104,7e,8r)---cycle; |
| 7484 |
penlabels(3,4,5,6,7,8,9,10); labels(0,1',100,101,102,103,104); |
| 7485 |
endchar; |
| 7486 |
|
| 7487 |
iff known chars.latin_m_SS: |
| 7488 |
bskchar "The sans-serif letter m"; |
| 7489 |
beginchar(chars.latin_m_SS,16u#, x_height#, 0); uni "0x1D5C6"; |
| 7490 |
adjust_fit(serif_fit#,serif_fit#); |
| 7491 |
pickup tiny.nib; |
| 7492 |
path p[]; numeric tim[]; boolean correct; correct:=true; |
| 7493 |
oblu:=6oblu; |
| 7494 |
pos3(stem,0); pos4(stem,0); pos5(n_str_hair,90); pos6(hair,180); |
| 7495 |
pos7(stem,0); pos8(stem,0); pos9(n_str_hair,90); pos10(hair,180); |
| 7496 |
lft x1l=2u; bot y1=0; top y2=h+apex_o; |
| 7497 |
x3=.5w; bot y3=bot y7=0; x4=x3; y4=y8=.75x_height; y5r=y9r=x_height; x5=.5[x3l,x1r]; |
| 7498 |
x6l=x1r; y6=y10=if monospace: .75 else: .6 fi\\ x_height; x10l=x3r; |
| 7499 |
rt x7r=w-2u; x8=x7; x9=.5[x7l,x3r]; |
| 7500 |
{{ if monospace and (x3l-x1l-stem-tiny<2jut): correct:=false; save jut; numeric jut; jut:=.4(x3l-x1l-stem-.5tiny); fi |
| 7501 |
serif_bot(3); serif_bot(7); lowercase_points(1,2,jut);}}; |
| 7502 |
p1:=z6l{up}..z5l..z4l---z3a..{right}z3; |
| 7503 |
p2:=z3{right}..z3f---z10l..z9l..z8l---z7a..z7..z7f---z8r..z9r..{down}z10r; |
| 7504 |
p21:=subpath(6,infinity) of p2; |
| 7505 |
p3:=z4r{up}..z5r..{down}z6r; |
| 7506 |
p4:=z1f--z2r; |
| 7507 |
tim3=xpart(p3 intersectiontimes p4); |
| 7508 |
z1'=(p3 intersectionpoint p4)+(like_stem+tiny)*up; if y1'>y5l: y1':=y5l; fi |
| 7509 |
z0=(x4r,y1'); |
| 7510 |
tim1=xpart(p21 intersectiontimes ((0,y0-.5hair)--(x9,y0-.5hair))); |
| 7511 |
tim2=xpart(p3 intersectiontimes (z0--(x5,y0))); |
| 7512 |
filldraw p1..z3+ser_boule*up..subpath (0,6) of p2 |
| 7513 |
..subpath(0,rundy(p21,(tim1,1.5u)).zpet) of p21 |
| 7514 |
..subpath(tim2,rundy(p3,tim3).zpet) of p3 |
| 7515 |
..z1'..z2..z2b---z1a..z1..z1f---cycle; |
| 7516 |
penlabels(3,4,5,6,7,8,9,10); labels(0,1'); |
| 7517 |
endchar; |
| 7518 |
|
| 7519 |
charscription(11.5u,x_height,0)( |
| 7520 |
path p[]; numeric tim[]; oblu:=8oblu; |
| 7521 |
pos3(stem,0); pos4(stem,0); pos5(n_str_hair,90); pos6(hair,180); |
| 7522 |
lft x1l=2u; bot y1=0; top y2=h+apex_o; |
| 7523 |
rt x3r=w-2u; bot y3=0; serif_bot(3); |
| 7524 |
x4=x3; y4=.75x_height; y5r=x_height; x5=.5[x3l,x1r]; |
| 7525 |
x6l=x1r; y6=.6x_height; y6l:=y6l-hair; |
| 7526 |
lowercase_points(1,2,jut); |
| 7527 |
p1:=z6l{up}..z5l..z4l---z3a..z3b{left}..{right}z3c; |
| 7528 |
p2:=z3d{right}..{left}z3e..z3f---z4r..z5r..{down}z6r; |
| 7529 |
p3:=z1f--z2r; |
| 7530 |
(tim1,tim2)=p2 intersectiontimes p3; |
| 7531 |
z1'=point tim2 of p3+(like_stem+tiny)*up; if y1'>y5l: y1':=y5l; fi |
| 7532 |
filldraw p1..z3+ser_boule*up..subpath (0,rundy(p2,(tim1,2u)).zpet) of p2..broken_stem_draw(1',1,2)---cycle; |
| 7533 |
penlabels(3,4,5,6); labels(1'); |
| 7534 |
); |
| 7535 |
|
| 7536 |
iff known chars.latin_n: |
| 7537 |
bskchar "The letter n"; |
| 7538 |
beginchar(chars.latin_n,11.5u#, x_height#, 0); uni "0x006E"; |
| 7539 |
adjust_fit(serif_fit#,serif_fit#); |
| 7540 |
pickup tiny.nib; |
| 7541 |
usechar; |
| 7542 |
endchar; |
| 7543 |
|
| 7544 |
iff known chars.latin_ncaron: |
| 7545 |
bskchar "The letter n with caron"; |
| 7546 |
beginchar(chars.latin_ncaron,11.5u#, asc_height#, 0); uni "0x0148"; |
| 7547 |
adjust_fit(serif_fit#,serif_fit#); |
| 7548 |
pickup tiny.nib; |
| 7549 |
usechar; |
| 7550 |
x101=x5; |
| 7551 |
hacek(100,101,102); |
| 7552 |
endchar; |
| 7553 |
|
| 7554 |
iff known chars.latin_nacute: |
| 7555 |
bskchar "The letter n with acute"; |
| 7556 |
beginchar(chars.latin_nacute,11.5u#,asc_height#,0); uni "0x0144"; |
| 7557 |
adjust_fit(serif_fit#,serif_fit#); |
| 7558 |
pickup tiny.nib; |
| 7559 |
usechar; |
| 7560 |
x101=.5[x5,x2r]; |
| 7561 |
acute(100,101); |
| 7562 |
endchar; |
| 7563 |
|
| 7564 |
iff known chars.latin_napostrophe: |
| 7565 |
bskchar "The letter n with apostrophe"; |
| 7566 |
beginchar(chars.latin_napostrophe,11.5u#,asc_height#+o#,0); uni "0x0149"; |
| 7567 |
adjust_fit(serif_fit#,serif_fit#); |
| 7568 |
pickup tiny.nib; |
| 7569 |
usechar; |
| 7570 |
lft x100=.5u; top y100=h-.5dot_size; |
| 7571 |
comma(100,dot_size,.9hair,.8comma_depth); |
| 7572 |
endchar; |
| 7573 |
|
| 7574 |
iff known chars.latin_ngrave: |
| 7575 |
bskchar "The letter n with grave"; |
| 7576 |
beginchar(chars.latin_ngrave,11.5u#,asc_height#,0); uni "0x01F9"; |
| 7577 |
adjust_fit(serif_fit#,serif_fit#); |
| 7578 |
pickup tiny.nib; |
| 7579 |
usechar; |
| 7580 |
x101=x5; |
| 7581 |
grave(100,101); |
| 7582 |
endchar; |
| 7583 |
|
| 7584 |
iff known chars.latin_ntilde: |
| 7585 |
bskchar "The letter n with tilde"; |
| 7586 |
beginchar(chars.latin_ntilde,11.5u#,asc_height#,0); uni "0x00F1"; |
| 7587 |
italcorr asc_height#*slant-1.5u#; |
| 7588 |
adjust_fit(serif_fit#,serif_fit#); |
| 7589 |
pickup tiny.nib; |
| 7590 |
usechar; |
| 7591 |
x101-x100=6u; x.tilde=.5[x1r,x4l]; |
| 7592 |
tilde(100,101); |
| 7593 |
endchar; |
| 7594 |
|
| 7595 |
iff known chars.latin_ncedilla: |
| 7596 |
bskchar "The letter n with cedilla (treated as comma)"; |
| 7597 |
beginchar(chars.latin_ncedilla,11.5u#,x_height#,.75comma_depth#); uni "0x0146"; |
| 7598 |
adjust_fit(serif_fit#,serif_fit#); |
| 7599 |
pickup tiny.nib; |
| 7600 |
usechar; |
| 7601 |
x100=.5w; top y100''r=-o; |
| 7602 |
comma(100,.75dot_size,.5hair,.75comma_depth); |
| 7603 |
endchar; |
| 7604 |
|
| 7605 |
iff known chars.latin_n_BB: |
| 7606 |
bskchar "The blackboard-bold letter n"; |
| 7607 |
beginchar(chars.latin_n_BB,11.5u#, x_height#, 0); uni "0x1D55F"; |
| 7608 |
adjust_fit(serif_fit#,serif_fit#); |
| 7609 |
pickup tiny.nib; |
| 7610 |
path p[]; numeric tim[]; oblu:=8oblu; |
| 7611 |
save stem; stem:=.8cap_stem; |
| 7612 |
pos3(stem,0); pos4(stem,0); pos5(n_str_hair,90); pos6(hair,180); |
| 7613 |
lft x1l=2u; bot y1=0; top y2=h+apex_o; |
| 7614 |
rt x3r=w-2u; bot y3=0; serif_bot(3); |
| 7615 |
x4=x3; y4=.75x_height; y5r=x_height; x5=.5[x3l,x1r]; |
| 7616 |
x6l=x1r; y6=.6x_height; y6l:=y6l-hair; |
| 7617 |
lowercase_points(1,2,jut); |
| 7618 |
p1:=z6l{up}..z5l..z4l---z3a..z3b{left}..{right}z3c; |
| 7619 |
p2:=z3d{right}..{left}z3e..z3f---z4r..z5r..{down}z6r; |
| 7620 |
p3:=z1f--z2r; |
| 7621 |
(tim1,tim2)=p2 intersectiontimes p3; |
| 7622 |
z1'=point tim2 of p3+(like_stem+tiny)*up; if y1'>y5l: y1':=y5l; fi |
| 7623 |
filldraw p1..z3+ser_boule*up..subpath (0,rundy(p2,(tim1,2u)).zpet) of p2..broken_stem_draw(1',1,2)---cycle; |
| 7624 |
oblu:=f_obl; oblu.more:=1.25oblu; |
| 7625 |
bot z100=(x1l,y1b); bot z103=(x3r,y3e); |
| 7626 |
p100=subpath(3,4) of p2; |
| 7627 |
p101=subpath(1,2) of p1; |
| 7628 |
z101=bsktouch(p100,down,p101,up); |
| 7629 |
tim100=xpart(p100 intersectiontimes (z101--(x101,h+o+5))); |
| 7630 |
tim101=xpart(p101 intersectiontimes (z101--(x101,0))); |
| 7631 |
infill ifobl(2r,2b,1r,1l,more,)---obl(100,2b,1b)...z1l---obl(1r,1l,2r)---cycle; |
| 7632 |
infill subpath(0,rundy(p100,(tim100,bbw)).zpet) of p100 |
| 7633 |
..subpath(rundy(p101,(tim101,bbw)),infinity) of p101 |
| 7634 |
---obl(3l,4l,3r)---z3r...obl(103,3e,4r)---cycle; |
| 7635 |
penlabels(3,4,5,6); labels(1',100,101,102); |
| 7636 |
endchar; |
| 7637 |
|
| 7638 |
iff known chars.latin_n_SS: |
| 7639 |
bskchar "The sans-serif letter n"; |
| 7640 |
beginchar(chars.latin_n_SS,11.5u#, x_height#, 0); uni "0x1D5C7"; |
| 7641 |
adjust_fit(serif_fit#,serif_fit#); |
| 7642 |
pickup tiny.nib; |
| 7643 |
path p[]; numeric tim[]; oblu:=8oblu; |
| 7644 |
pos3(stem,0); pos4(stem,0); pos5(n_str_hair,90); pos6(hair,180); |
| 7645 |
lft x1l=2u; bot y1=0; top y2=h+apex_o; |
| 7646 |
rt x3r=w-2u; bot y3=0; serif_bot(3); |
| 7647 |
x4=x3; y4=.75x_height; y5r=x_height; x5=.5[x3l,x1r]; |
| 7648 |
x6l=x1r; y6=.6x_height; y6l:=y6l-hair; |
| 7649 |
lowercase_points(1,2,jut); |
| 7650 |
p1:=z6l{up}..z5l..z4l---z3a..{right}z3; |
| 7651 |
p2:=z3{right}..z3f---z4r..z5r..{down}z6r; |
| 7652 |
p3:=z1f--z2r; |
| 7653 |
(tim1,tim2)=p2 intersectiontimes p3; |
| 7654 |
z1'=point tim2 of p3+(like_stem+tiny)*up; if y1'>y5l: y1':=y5l; fi |
| 7655 |
filldraw p1..z3+ser_boule*up..subpath (0,rundy(p2,(tim1,2u)).zpet) of p2..z1'..z2..z2b---z1a..z1..z1f---cycle; |
| 7656 |
penlabels(3,4,5,6); labels(1'); |
| 7657 |
endchar; |
| 7658 |
|
| 7659 |
iff known chars.latin_eng: |
| 7660 |
bskchar "The letter eng"; |
| 7661 |
beginchar(chars.latin_eng,10.5u#, x_height#, desc_depth#); uni "0x014B"; |
| 7662 |
italcorr .5[bar_height#,x_height#]*slant; |
| 7663 |
adjust_fit(serif_fit#,0); |
| 7664 |
pickup tiny.nib; |
| 7665 |
path p[]; numeric tim[]; oblu:=8oblu; |
| 7666 |
pos3(stem,0); pos4(stem,0); pos5(n_str_hair,90); pos6(hair,180); |
| 7667 |
pos7(hair,-90); |
| 7668 |
lft x1l=2u; bot y1=0; top y2=h+apex_o; |
| 7669 |
rt x3r=w-u; y3=-.5d; |
| 7670 |
x4=x3; y4=.75x_height; y5r=x_height; x5=.5[x3l,x1r]; |
| 7671 |
x6l=x1r; y6=.6x_height; y6l:=y6l-hair; |
| 7672 |
bot y7r=-d; x3-x7=3u; top y8=y7+like_curve; x7-x8l=2u; |
| 7673 |
lowercase_points(1,2,jut); |
| 7674 |
p1:=z6l{up}..z5l..z4l---z3l...{left}z7l..reverse smitko(8,stem)..{right}z7r..{up}z3r; |
| 7675 |
p2:=z3r---z4r..z5r..{down}z6r; |
| 7676 |
p3:=z1f--z2r; |
| 7677 |
(tim1,tim2)=p2 intersectiontimes p3; |
| 7678 |
z1'=point tim2 of p3+(like_stem+tiny)*up; if y1'>y5l: y1':=y5l; fi |
| 7679 |
filldraw p1..subpath (0,rundy(p2,(tim1,2u)).zpet) of p2..broken_stem_draw(1',1,2)---cycle; |
| 7680 |
penlabels(3,4,5,6,7,8); labels(1'); |
| 7681 |
endchar; |
| 7682 |
|
| 7683 |
charscription(10u,x_height,0)( |
| 7684 |
pos1(curve,0); pos2(hair,90); pos3(curve,180); pos4(hair,270); |
| 7685 |
lft x1l=u; rt x3l=w-u; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2=x4; bot y2l=-o; top y4l=h+o; x4r:=x4r+.25u; x2r:=x2r-.25u; |
| 7686 |
filldraw z1l{down}..z2l..{up}z3l..z4l..{down}cycle; |
| 7687 |
infill z1r{up}..z4r..{down}z3r..z2r..{up}cycle; |
| 7688 |
penlabels(1,2,3,4); |
| 7689 |
); |
| 7690 |
|
| 7691 |
iff known chars.latin_o: |
| 7692 |
bskchar "The letter o"; |
| 7693 |
beginchar(chars.latin_o,10u#,x_height#,0); uni "0x006F"; |
| 7694 |
italcorr .5x_height#*slant-.25u#; |
| 7695 |
adjust_fit(0,0); |
| 7696 |
pickup tiny.nib; |
| 7697 |
usechar; |
| 7698 |
endchar; |
| 7699 |
|
| 7700 |
iff known chars.latin_oacute: |
| 7701 |
bskchar "The letter o with acute"; |
| 7702 |
beginchar(chars.latin_oacute,10u#,asc_height#,0); uni "0x00F3"; |
| 7703 |
italcorr asc_height#*slant-1.25u#; |
| 7704 |
adjust_fit(0,0); |
| 7705 |
pickup tiny.nib; |
| 7706 |
usechar; |
| 7707 |
x101=x4l; |
| 7708 |
acute(100,101); |
| 7709 |
endchar; |
| 7710 |
|
| 7711 |
iff known chars.latin_oumlaut: |
| 7712 |
bskchar "The letter o with umlaut"; |
| 7713 |
beginchar(chars.latin_oumlaut,10u#,asc_height#-dot_size#,0); uni "0x00F6"; |
| 7714 |
italcorr .5x_height#*slant-.25u#; |
| 7715 |
adjust_fit(0,0); |
| 7716 |
pickup tiny.nib; |
| 7717 |
usechar; |
| 7718 |
.5[x100,x101]=x4l; x101-x100=2/3(x3-x1); |
| 7719 |
umlaut(100,101); |
| 7720 |
endchar; |
| 7721 |
|
| 7722 |
iff known chars.latin_ocircumflex: |
| 7723 |
bskchar "The letter o with circumflex"; |
| 7724 |
beginchar(chars.latin_ocircumflex,10u#,asc_height#-.1x_height#,0); uni "0x00F4"; |
| 7725 |
italcorr .5[x_height#,asc_height#]*slant-.75u#; |
| 7726 |
adjust_fit(0,0); |
| 7727 |
pickup tiny.nib; |
| 7728 |
usechar; |
| 7729 |
x101=x4r; |
| 7730 |
circumflex(100,101,102); |
| 7731 |
endchar; |
| 7732 |
|
| 7733 |
iff known chars.latin_ograve: |
| 7734 |
bskchar "The letter o with grave"; |
| 7735 |
beginchar(chars.latin_ograve,10u#,asc_height#,0); uni "0x00F2"; |
| 7736 |
italcorr .5x_height#*slant-.25u#; |
| 7737 |
adjust_fit(0,0); |
| 7738 |
pickup tiny.nib; |
| 7739 |
usechar; |
| 7740 |
x101=x4+u; |
| 7741 |
grave(100,101); |
| 7742 |
endchar; |
| 7743 |
|
| 7744 |
iff known chars.latin_odoublegrave: |
| 7745 |
bskchar "The letter o with double grave"; |
| 7746 |
beginchar(chars.latin_odoublegrave,10u#,asc_height#,0); uni "0x020D"; |
| 7747 |
italcorr .5x_height#*slant-.25u#; |
| 7748 |
adjust_fit(0,0); |
| 7749 |
pickup tiny.nib; |
| 7750 |
usechar; |
| 7751 |
x102-x100=3u; x102=x4; |
| 7752 |
d_grave(100,101,102,103,whatever); |
| 7753 |
endchar; |
| 7754 |
|
| 7755 |
iff known chars.latin_ocaron: |
| 7756 |
bskchar "The letter o with caron"; |
| 7757 |
beginchar(chars.latin_ocaron,10u#,asc_height#,0); uni "0x01D2"; |
| 7758 |
italcorr asc_height#*slant-1.25u#; |
| 7759 |
adjust_fit(0,0); |
| 7760 |
pickup tiny.nib; |
| 7761 |
usechar; |
| 7762 |
x101=x4r; |
| 7763 |
hacek(100,101,102); |
| 7764 |
endchar; |
| 7765 |
|
| 7766 |
iff known chars.latin_otilde: |
| 7767 |
bskchar "The letter o with tilde"; |
| 7768 |
beginchar(chars.latin_otilde,10u#,asc_height#,0); uni "0x00F5"; |
| 7769 |
italcorr asc_height#*slant-u#; |
| 7770 |
adjust_fit(0,0); |
| 7771 |
pickup tiny.nib; |
| 7772 |
usechar; |
| 7773 |
x101-x100=6u; |
| 7774 |
tilde(100,101); |
| 7775 |
endchar; |
| 7776 |
|
| 7777 |
iff known chars.latin_omacron: |
| 7778 |
bskchar "The letter o with macron"; |
| 7779 |
beginchar(chars.latin_omacron,10u#,.5[asc_height#,x_height#],0); uni "0x014D"; |
| 7780 |
italcorr .5x_height#*slant-.25u#; |
| 7781 |
adjust_fit(0,0); |
| 7782 |
pickup tiny.nib; |
| 7783 |
usechar; |
| 7784 |
macron(100,101); |
| 7785 |
endchar; |
| 7786 |
|
| 7787 |
iff known chars.latin_odotabove: |
| 7788 |
bskchar "The letter o with dot above"; |
| 7789 |
beginchar(chars.latin_odotabove,10u#,asc_height#-.5dot_size#,0); uni "0x022F"; |
| 7790 |
italcorr .5x_height#*slant-.25u#; |
| 7791 |
adjust_fit(0,0); |
| 7792 |
pickup tiny.nib; |
| 7793 |
usechar; |
| 7794 |
x100=x4; |
| 7795 |
dotabove(100); |
| 7796 |
endchar; |
| 7797 |
|
| 7798 |
iff known chars.latin_ohumlaut: |
| 7799 |
bskchar "The letter o with Hungarian umlaut"; |
| 7800 |
beginchar(chars.latin_ohumlaut,10u#,asc_height#,0); uni "0x0151"; |
| 7801 |
italcorr asc_height#*slant-.5u#; |
| 7802 |
adjust_fit(0,0); |
| 7803 |
pickup tiny.nib; |
| 7804 |
usechar; |
| 7805 |
x101-x100=3u; .5[x100,x101]=x4+1.75u; |
| 7806 |
h_umlaut(100,101,102,103,2u); |
| 7807 |
endchar; |
| 7808 |
|
| 7809 |
iff known chars.latin_obreve: |
| 7810 |
bskchar "The letter o with breve"; |
| 7811 |
beginchar(chars.latin_obreve,10u#,asc_height#+o#,0); uni "0x014F"; |
| 7812 |
italcorr asc_height#*slant-1.25u#; |
| 7813 |
adjust_fit(0,0); |
| 7814 |
pickup tiny.nib; |
| 7815 |
usechar; |
| 7816 |
x101=x4r; x102-x100=5u; |
| 7817 |
breve(100,101,102); |
| 7818 |
endchar; |
| 7819 |
|
| 7820 |
iff known chars.latin_oinvbreve: |
| 7821 |
bskchar "The letter o with inverted breve"; |
| 7822 |
beginchar(chars.latin_oinvbreve,10u#,asc_height#+o#,0); uni "0x020F"; |
| 7823 |
italcorr .5x_height#*slant-.25u#; |
| 7824 |
adjust_fit(0,0); |
| 7825 |
pickup tiny.nib; |
| 7826 |
usechar; |
| 7827 |
x101=x4r; x102-x100=5u; |
| 7828 |
tieacc(100,101,102); |
| 7829 |
endchar; |
| 7830 |
|
| 7831 |
iff known chars.latin_o_masculine: |
| 7832 |
bskchar "Masculine ordinal indicator (superscript o)"; |
| 7833 |
beginchar(chars.latin_o_masculine,6u#,asc_height#-.5x_height#,0); uni "0x00BA"; |
| 7834 |
italcorr (asc_height#-.75x_height#)*slant-.5u#; |
| 7835 |
adjust_fit(0,0); |
| 7836 |
pickup tiny.nib; |
| 7837 |
multiply(.85)(curve,hair,vair); |
| 7838 |
usechar shifted (-x1l,-y4l) scaled .5 shifted (u+(HH-.5x_height)*slant,HH); |
| 7839 |
endchar; |
| 7840 |
|
| 7841 |
iff known chars.latin_o_BB: |
| 7842 |
bskchar "The blackboard-bold letter o"; |
| 7843 |
beginchar(chars.latin_o_BB,10u#,x_height#,0); uni "0x1D560"; |
| 7844 |
italcorr .5x_height#*slant-.25u#; |
| 7845 |
adjust_fit(0,0); |
| 7846 |
pickup tiny.nib; |
| 7847 |
pos1(cap_stem,0); pos2(hair,90); pos3(cap_stem,180); pos4(hair,270); |
| 7848 |
lft x1l=u; rt x3l=w-u; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2=x4; bot y2l=-o; top y4l=h+o; x4r:=x4r+.25u; x2r:=x2r-.25u; |
| 7849 |
filldraw z1l{down}..z2l..{up}z3l..z4l..{down}cycle; |
| 7850 |
infill z1r{up}..z4r..{down}z3r..z2r..{up}cycle; |
| 7851 |
penlabels(1,2,3,4); |
| 7852 |
path p[]; numeric tim[]; |
| 7853 |
p100:=z4r..z1r{down}..z2r..z3r..cycle; |
| 7854 |
p101:=reverse z4l..z1l{down}..z2l..z3l..cycle; |
| 7855 |
oblu:=1.25bbw; |
| 7856 |
z100=bsktouch(subpath(0,1) of p100,up,p101,down); |
| 7857 |
z101=bsktouch(subpath(1,2) of p100,down,p101,up); |
| 7858 |
z102=bsktouch(subpath(3,4) of p100,up,p101,down); |
| 7859 |
z103=bsktouch(subpath(2,3) of p100,down,p101,up); |
| 7860 |
tim100=xpart(p100 intersectiontimes (z100--(x100,y1))); |
| 7861 |
tim101=xpart(p101 intersectiontimes (z100--(x100,y4l+5))); |
| 7862 |
tim102=xpart(p100 intersectiontimes (z101--(x101,y1))); |
| 7863 |
tim103=xpart(p101 intersectiontimes (z101--(x101,y2l-5))); |
| 7864 |
tim104=xpart(p100 intersectiontimes (z102--(x102,y1))); |
| 7865 |
tim105=xpart(p101 intersectiontimes (z102--(x102,y4l+5))); |
| 7866 |
tim106=xpart(p100 intersectiontimes (z103--(x103,y1))); |
| 7867 |
tim107=xpart(p101 intersectiontimes (z103--(x103,y2l-5))); |
| 7868 |
infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100 |
| 7869 |
..subpath(rundy(p101,tim103).zpet,rundy(p101,tim101)) of p101..cycle; |
| 7870 |
infill subpath(rundy(p100,tim104).zpet,rundy(p100,tim106)) of p100 |
| 7871 |
..subpath(rundy(p101,tim107),rundy(p101,tim105).zpet) of p101..cycle; |
| 7872 |
labels(100,101,102,103); |
| 7873 |
endchar; |
| 7874 |
|
| 7875 |
iff known chars.latin_o_SS: |
| 7876 |
bskchar "The sans-serif letter o"; |
| 7877 |
beginchar(chars.latin_o_SS,10u#,x_height#,0); uni "0x1D5C8"; |
| 7878 |
italcorr .5x_height#*slant-.25u#; |
| 7879 |
adjust_fit(0,0); |
| 7880 |
pickup tiny.nib; |
| 7881 |
usechar; |
| 7882 |
endchar; |
| 7883 |
|
| 7884 |
charscription(10u,x_height,.85desc_depth)( |
| 7885 |
path p[]; |
| 7886 |
pos1(curve,0); pos2(hair,90); pos3(curve,180); pos4(hair,270); |
| 7887 |
pos5(stem,0); pos6(curve,0); pos7(hair,45); pos8(hair,160); |
| 7888 |
lft x1l=u; rt x3l=w-u; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2=x4; bot y2l=-o; top y4l=h+o; x4r:=x4r+.25u; x2r:=x2r-.25u; |
| 7889 |
x5=x6l+1.5u; x5=x2; x7-x6l=3u; rt x8l=x7+1.5u; |
| 7890 |
bot y5=0; y6=-.5d; bot y7l=-d; y8=-2/3d; |
| 7891 |
p0=z1l{down}..z2l..{up}z3l..z4l..{down}z1l; |
| 7892 |
p1=z5l{z6l-z5r}..z6l...z7l..{z5-z6}z8l..z8r{z6-z5}..z7r..z6r..z5r; |
| 7893 |
filldraw subpath(0,rundy(p0,(1,stem)).zpet) of p0 |
| 7894 |
..subpath(rundy(p1,(0,stem)),rundy(p1,infinity).zpet) of p1 |
| 7895 |
..subpath(rundy(p1,(1,stem)),infinity) of p0..cycle; |
| 7896 |
infill z1r{up}..z4r..{down}z3r..z2r..{up}cycle; |
| 7897 |
penlabels(1,2,3,4,5,6,7,8); |
| 7898 |
); |
| 7899 |
|
| 7900 |
iff known chars.latin_oogonek: |
| 7901 |
bskchar "The letter o with ogonek"; |
| 7902 |
beginchar(chars.latin_oogonek,10u#,x_height#,.85desc_depth#); uni "0x01EB"; |
| 7903 |
italcorr .5x_height#*slant-.25u#; |
| 7904 |
adjust_fit(0,0); |
| 7905 |
pickup tiny.nib; |
| 7906 |
usechar; |
| 7907 |
endchar; |
| 7908 |
|
| 7909 |
iff known chars.latin_oogonekmacron: |
| 7910 |
bskchar "The letter o with ogonek and macron"; |
| 7911 |
beginchar(chars.latin_oogonekmacron,10u#,.5[asc_height#,x_height#],.85desc_depth#); uni "0x01ED"; |
| 7912 |
italcorr .5x_height#*slant-.25u#; |
| 7913 |
adjust_fit(0,0); |
| 7914 |
pickup tiny.nib; |
| 7915 |
usechar; |
| 7916 |
macron(100,101); |
| 7917 |
endchar; |
| 7918 |
|
| 7919 |
charscription(10u,x_height,0)( |
| 7920 |
numeric tim[]; path p[]; |
| 7921 |
oblu:=2oblu; |
| 7922 |
pos1(curve,0); pos2(hair,90); pos3(curve,180); pos4(hair,270); |
| 7923 |
lft x1l=u; rt x3l=w-u; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2=x4; bot y2l=-o; top y4l=h+o; x4r:=x4r+.25u; x2r:=x2r-.25u; |
| 7924 |
z5=(w-u,h); z6=(u,0); pos5(hair, angle(z6-z5)+90); pos6(hair,angle(z6-z5)+90); |
| 7925 |
z0r=.5[z5r,z6r]; z0l=.5[z5l,z6l]; |
| 7926 |
p0:=z1l{down}..z2l..z3l..z4l..{down}z1l; |
| 7927 |
p1:=z1r{up}..z4r..z3r..z2r..{up}z1r; |
| 7928 |
bskpoints(5,6,hair,hair); |
| 7929 |
(tim1,tim2)=p0 intersectiontimes (z5l--z6l); |
| 7930 |
(tim3,tim4)=p0 intersectiontimes (z6r--z5r); |
| 7931 |
(tim5,tim6)=p0 intersectiontimes (z0r--z5r); |
| 7932 |
(tim7,tim8)=p0 intersectiontimes (z5l--z0l); |
| 7933 |
(tim11,tim12)=p1 intersectiontimes (z0r--z6r); |
| 7934 |
(tim13,tim14)=p1 intersectiontimes (z0r--z5r); |
| 7935 |
(tim15,tim16)=p1 intersectiontimes (z0l--z6l); |
| 7936 |
(tim17,tim18)=p1 intersectiontimes (z5l--z0l); |
| 7937 |
filldraw subpath (0,rundy(p0,tim1).zpet) of p0..subpath(rundy((z6l--z5l),tim2),infinity) of (z5l---z6ll).. |
| 7938 |
subpath(0,rundy(z6r--z5r,tim4).zpet) of (z6r--z5r).. |
| 7939 |
subpath(rundy(p0,tim3),rundy(p0,tim5).zpet) of p0.. |
| 7940 |
subpath(rundy(z0r--z5r,tim6),infinity) of (z0r---z5rr).. |
| 7941 |
subpath(0,rundy(z5l--z0l,tim8).zpet) of (z5l--z0l) .. |
| 7942 |
subpath(rundy(p0,tim7),infinity) of p0--cycle; |
| 7943 |
infill subpath(0,rundy(z0r--z6r,tim12).zpet) of (z0r--z6r).. |
| 7944 |
subpath(rundy(p1,tim11).zpet,rundy(p1,tim13)) of p1.. |
| 7945 |
subpath(rundy(z5r--z0r,tim14),infinity) of (z5r--z0r)--cycle; |
| 7946 |
infill subpath (0, rundy(p1,tim17).zpet) of p1.. |
| 7947 |
subpath(rundy(z5l--z0l,tim18),infinity) of (z5l--z0l).. |
| 7948 |
subpath(0,rundy(z0l--z6l,tim16).zpet) of (z0l--z6l).. |
| 7949 |
subpath(rundy(p1,tim15),infinity) of p1--cycle; |
| 7950 |
penlabels(0,1,2,3,4,5,6); |
| 7951 |
); |
| 7952 |
|
| 7953 |
iff known chars.latin_oslash: |
| 7954 |
bskchar "The letter o slash"; |
| 7955 |
beginchar(chars.latin_oslash,10u#,x_height#,0); uni "0x00F8"; |
| 7956 |
italcorr x_height#*slant; |
| 7957 |
adjust_fit(0,0); |
| 7958 |
pickup tiny.nib; |
| 7959 |
usechar; |
| 7960 |
endchar; |
| 7961 |
|
| 7962 |
iff known chars.latin_oslashacute: |
| 7963 |
bskchar "The letter o slash with acute"; |
| 7964 |
beginchar(chars.latin_oslashacute,10u#,asc_height#,0); uni "0x01FF"; |
| 7965 |
italcorr x_height#*slant; |
| 7966 |
adjust_fit(0,0); |
| 7967 |
pickup tiny.nib; |
| 7968 |
usechar; |
| 7969 |
x101=x4l; |
| 7970 |
acute(100,101); |
| 7971 |
endchar; |
| 7972 |
|
| 7973 |
iff known chars.latin_p: |
| 7974 |
bskchar "The letter p"; |
| 7975 |
beginchar(chars.latin_p,11u#,x_height#,desc_depth#); uni "0x0070"; |
| 7976 |
italcorr .5x_height#*slant-.25u#; |
| 7977 |
adjust_fit(serif_fit#,0); |
| 7978 |
pickup tiny.nib; |
| 7979 |
path p[]; numeric tim[]; |
| 7980 |
pos1(hair,0); pos1'(hair,0); pos2(hair,90); pos3(curve,180); pos4(hair,270); |
| 7981 |
rt x1r=2u+stem; rt x3l=w-u; y1=.65x_height; y3=.5h; .5[x2,x4]=.5[x1,x3]; |
| 7982 |
x2-x4=-.5u; x1'r=x1r; y1'=.2x_height; |
| 7983 |
if (y1'/hair)<2.5: x1'l:=x1'l-.5hair; fi; |
| 7984 |
bot y2l=-o; top y4l=h+o; |
| 7985 |
lft x5l=2u; bot y5=-d; top y6r=h+o; |
| 7986 |
lowercase_points(5,6,jut); |
| 7987 |
p0=z1l---z1'l{z2r-z1r}..z2l..z3l..z4l..{down}z1l; |
| 7988 |
p1=z1r{up}..z4r..z3r..z2r..{up}z1'r--z1r; |
| 7989 |
p2=z5r---lowercase_stem_draw(5,6); |
| 7990 |
p3=z1r{up}..z4r..z3r..z2r..(z2r+hair*left)..{up}z1'r--z1r; |
| 7991 |
z0=bsktouch(subpath(1,infinity) of p0,left,subpath(0,1) of p2,right); |
| 7992 |
tim1=xpart(p0 intersectiontimes (z0--(x2,y0))); |
| 7993 |
tim2=xpart(p2 intersectiontimes (z0--(0,y0))); |
| 7994 |
z7=bsktouch(subpath(3,infinity) of p0,left,p2,right); |
| 7995 |
tim3-3=xpart(subpath(3,infinity) of p0 intersectiontimes (z7--(x4,y7))); |
| 7996 |
tim4=xpart(p2 intersectiontimes (z7--(0,y7))); |
| 7997 |
filldraw subpath (rundy(p0,tim1), rundy(p0,tim3).zpet) of p0 |
| 7998 |
..subpath(rundy(p2,tim4),infinity) of p2 |
| 7999 |
..subpath(0,rundy(p2,tim2).zpet) of p2..cycle; |
| 8000 |
infill p3..cycle; |
| 8001 |
penlabels(1,1',2,3,4); labels(7); |
| 8002 |
endchar; |
| 8003 |
|
| 8004 |
iff known chars.latin_p_BB: |
| 8005 |
bskchar "The blackboard-bold letter p"; |
| 8006 |
beginchar(chars.latin_p_BB,11u#,x_height#,desc_depth#); uni "0x1D561"; |
| 8007 |
italcorr .5x_height#*slant-.25u#; |
| 8008 |
adjust_fit(serif_fit#,0); |
| 8009 |
pickup tiny.nib; |
| 8010 |
path p[]; numeric tim[]; |
| 8011 |
save stem; stem:=.8cap_stem; |
| 8012 |
pos1(hair,0); pos1'(hair,0); pos2(hair,90); pos3(cap_stem,180); pos4(hair,270); |
| 8013 |
rt x1r=2u+stem; rt x3l=w-u; y1=.65x_height; y3=.5h; .5[x2,x4]=.5[x1,x3]; |
| 8014 |
x2-x4=-.5u; x1'r=x1r; y1'=.2x_height; |
| 8015 |
if (y1'/hair)<2.5: x1'l:=x1'l-.5hair; fi; |
| 8016 |
bot y2l=-o; top y4l=h+o; |
| 8017 |
lft x5l=2u; bot y5=-d; top y6r=h+o; |
| 8018 |
lowercase_points(5,6,jut); |
| 8019 |
p0=z1l---z1'l{z2r-z1r}..z2l..z3l..z4l..{down}z1l; |
| 8020 |
p1=z1r{up}..z4r..z3r..z2r..{up}z1'r--z1r; |
| 8021 |
p2=z5r---lowercase_stem_draw(5,6); |
| 8022 |
p3=z1r{up}..z4r..z3r..z2r..(z2r+hair*left)..{up}z1'r--z1r; |
| 8023 |
z0=bsktouch(subpath(1,infinity) of p0,left,subpath(0,1) of p2,right); |
| 8024 |
tim1=xpart(p0 intersectiontimes (z0--(x2,y0))); |
| 8025 |
tim2=xpart(p2 intersectiontimes (z0--(0,y0))); |
| 8026 |
z7=bsktouch(subpath(3,infinity) of p0,left,p2,right); |
| 8027 |
tim3-3=xpart(subpath(3,infinity) of p0 intersectiontimes (z7--(x4,y7))); |
| 8028 |
tim4=xpart(p2 intersectiontimes (z7--(0,y7))); |
| 8029 |
filldraw subpath (rundy(p0,tim1), rundy(p0,tim3).zpet) of p0 |
| 8030 |
..subpath(rundy(p2,tim4),infinity) of p2 |
| 8031 |
..subpath(0,rundy(p2,tim2).zpet) of p2..cycle; |
| 8032 |
infill p3..cycle; |
| 8033 |
oblu.more:=1.25oblu; |
| 8034 |
bot z102=(x5l,y5b); |
| 8035 |
infill ifobl(6r,6b,5r,5l,more,)---obl(102,6b,5b)...z5l---obl(5r,5l,6r)---cycle; |
| 8036 |
oblu:=bbw; |
| 8037 |
p100:=subpath(2,4) of p0; |
| 8038 |
p101:=subpath(1,3) of p3; |
| 8039 |
z100=bsktouch(p100,down,p101,up); |
| 8040 |
z101=bsktouch(p100,up,p101,down); |
| 8041 |
tim100=xpart(p100 intersectiontimes (z100--(x100,h+5))); |
| 8042 |
tim101=xpart(p101 intersectiontimes (z100--(x100,0))); |
| 8043 |
tim102=xpart(p100 intersectiontimes (z101--(x101,y2l-5))); |
| 8044 |
tim103=xpart(p101 intersectiontimes (z101--(x101,y3))); |
| 8045 |
infill subpath(rundy(p100,tim102),rundy(p100,tim100).zpet) of p100 |
| 8046 |
..reverse subpath(rundy(p101,tim103).zpet,rundy(p101,tim101)) of p101..cycle; |
| 8047 |
penlabels(1,1',2,3,4); labels(7,100,101,102); |
| 8048 |
endchar; |
| 8049 |
|
| 8050 |
iff known chars.latin_p_SS: |
| 8051 |
bskchar "The sans-serif letter p"; |
| 8052 |
beginchar(chars.latin_p_SS,11u#,x_height#,desc_depth#); uni "0x1D5C9"; |
| 8053 |
italcorr .5x_height#*slant-.25u#; |
| 8054 |
adjust_fit(serif_fit#,0); |
| 8055 |
pickup tiny.nib; |
| 8056 |
path p[]; numeric tim[]; |
| 8057 |
pos1(hair,0); pos1'(hair,0); pos2(hair,90); pos3(curve,180); pos4(hair,270); |
| 8058 |
rt x1r=2u+stem; rt x3l=w-u; y1=.65x_height; y3=.5h; .5[x2,x4]=.5[x1,x3]; |
| 8059 |
x2-x4=-.5u; x1'r=x1r; y1'=.2x_height; |
| 8060 |
if (y1'/hair)<2.5: x1'l:=x1'l-.5hair; fi; |
| 8061 |
bot y2l=-o; top y4l=h+o; |
| 8062 |
lft x5l=2u; bot y5=-d; top y6r=h+o; |
| 8063 |
lowercase_points(5,6,jut); |
| 8064 |
p0=z1l---z1'l{z2r-z1r}..z2l..z3l..z4l..{down}z1l; |
| 8065 |
p1=z1r{up}..z4r..z3r..z2r..{up}z1'r--z1r; |
| 8066 |
p2=z5f---z6r..z6b---z5a..z5..{up}z5f; |
| 8067 |
p3=z1r{up}..z4r..z3r..z2r..(z2r+hair*left)..{up}z1'r--z1r; |
| 8068 |
z0=bsktouch(subpath(1,infinity) of p0,left,subpath(0,1) of p2,right); |
| 8069 |
tim1=xpart(p0 intersectiontimes (z0--(x2,y0))); |
| 8070 |
tim2=xpart(p2 intersectiontimes (z0--(0,y0))); |
| 8071 |
z7=bsktouch(subpath(3,infinity) of p0,left,p2,right); |
| 8072 |
tim3-3=xpart(subpath(3,infinity) of p0 intersectiontimes (z7--(x4,y7))); |
| 8073 |
tim4=xpart(p2 intersectiontimes (z7--(0,y7))); |
| 8074 |
filldraw subpath (rundy(p0,tim1), rundy(p0,tim3).zpet) of p0 |
| 8075 |
..subpath(rundy(p2,tim4),infinity) of p2 |
| 8076 |
..{up}subpath(0,rundy(p2,tim2).zpet) of p2..cycle; |
| 8077 |
infill p3..cycle; |
| 8078 |
penlabels(1,1',2,3,4); labels(7); |
| 8079 |
endchar; |
| 8080 |
|
| 8081 |
iff known chars.latin_thorn: |
| 8082 |
bskchar "The letter thorn"; |
| 8083 |
beginchar(chars.latin_thorn,11u#,asc_height#,desc_depth#); uni "0x00FE"; |
| 8084 |
italcorr .5x_height#*slant-.25u#; |
| 8085 |
adjust_fit(serif_fit#,0); |
| 8086 |
pickup tiny.nib; |
| 8087 |
path p[]; numeric tim[]; |
| 8088 |
pos1(hair,0); pos1'(hair,0); pos2(hair,90); pos3(curve,180); pos4(hair,270); |
| 8089 |
rt x1r=2u+stem; rt x3l=w-u; y1=.65x_height; y3=.5x_height; .5[x2,x4]=.5[x1,x3]; |
| 8090 |
x2-x4=-.5u; x1'r=x1r; y1'=.2x_height; |
| 8091 |
if (y1'/hair)<2.5: x1'l:=x1'l-.5hair; fi; |
| 8092 |
bot y2l=-o; top y4l=x_height+o; |
| 8093 |
lft x5l=2u; bot y5=-d; top y6r=h; |
| 8094 |
lowercase_points(5,6,jut); |
| 8095 |
p0=z1l---z1'l{z2r-z1r}..z2l..z3l..z4l..{down}z1l; |
| 8096 |
p1=z1r{up}..z4r..z3r..z2r..{up}z1'r--z1r; |
| 8097 |
p2=z5r---lowercase_stem_draw(5,6); |
| 8098 |
p3=z1r{up}..z4r..z3r..z2r..(z2r+hair*left)..{up}z1'r--z1r; |
| 8099 |
z0=bsktouch(subpath(1,infinity) of p0,left,subpath(0,1) of p2,right); |
| 8100 |
tim1=xpart(p0 intersectiontimes (z0--(x2,y0))); |
| 8101 |
tim2=xpart(p2 intersectiontimes (z0--(0,y0))); |
| 8102 |
z7=bsktouch(subpath(3,infinity) of p0,left,p2,right); |
| 8103 |
tim3-3=xpart(subpath(3,infinity) of p0 intersectiontimes (z7--(x4,y7))); |
| 8104 |
tim4=xpart(p2 intersectiontimes (z7--(0,y7))); |
| 8105 |
filldraw subpath (rundy(p0,tim1), rundy(p0,(tim3,2oblu)).zpet) of p0 |
| 8106 |
..subpath(rundy(p2,tim4),infinity) of p2 |
| 8107 |
..subpath(0,rundy(p2,tim2).zpet) of p2..cycle; |
| 8108 |
infill p3..cycle; |
| 8109 |
penlabels(1,1',2,3,4); labels(0,7); |
| 8110 |
endchar; |
| 8111 |
|
| 8112 |
iff known chars.latin_q: |
| 8113 |
bskchar "The letter q"; |
| 8114 |
beginchar(chars.latin_q,11u#,x_height#,desc_depth#); uni "0x0071"; |
| 8115 |
italcorr x_height#*slant; |
| 8116 |
adjust_fit(0,serif_fit#); |
| 8117 |
pickup tiny.nib; |
| 8118 |
path p[]; numeric tim[]; oblu:=2.5oblu; |
| 8119 |
pos1(curve,0); pos3'(hair,180); pos2(hair,90); pos3(hair,180); pos4(hair,270); |
| 8120 |
lft x1l=u; lft x3r=w-2u-stem; y3=.65x_height; y1=.5h; .5[x2,x4]=.5[x1,x3]; |
| 8121 |
x2-x4=-.5u; x3'r=x3r; y3'=.3x_height; |
| 8122 |
if (y3'/hair)<3.5: x3'l:=x3'l+.5hair; fi; |
| 8123 |
bot y2l=-o; top y4l=h+o; |
| 8124 |
rt x5r=w-2u; bot y5=-d; top y6r=h; |
| 8125 |
lowercase_points(5,6,jut); |
| 8126 |
p0=z3l---z3'l{z2r-z3r}..z2l..z1l..z4l..{down}z3l; |
| 8127 |
p1=z3r{up}..z4r..z1r..z2r..{up}z3'r--z3r; |
| 8128 |
p2=z5a--z6l; |
| 8129 |
p3=reverse lowercase_stem_draw(5,6); |
| 8130 |
tim1-2=xpart(subpath (2, 5) of p0 intersectiontimes p2); |
| 8131 |
tim2 =xpart(subpath (0,3) of p0 intersectiontimes ((0,0)--(w,0))); |
| 8132 |
if tim2<0: tim2:=xpart(subpath (0,3) of p0 intersectiontimes ((0,o)--(w,o))); fi; |
| 8133 |
tim3 =xpart(p3 intersectiontimes ((0,-o)--(x3'r,-o))); |
| 8134 |
z7=point tim1 of p0 + like_stem*up; if y7>y6r-.8hair: y7:=y6r-.8hair; fi |
| 8135 |
p4=z3r{up}..z4r..z1r..z2r..z2r+2hair*right..{up}z3'r--z3r; |
| 8136 |
bot rt z9=(w-u,x_height+o); z9'=z6r+stem*down; |
| 8137 |
tim4=xpart(p0 intersectiontimes ((.5w,y7)--(w,y7))); |
| 8138 |
filldraw subpath (tim2, rundy(p0,tim4).zpet) of p0..bot z6---z9--z9+down{z7-z9}.. |
| 8139 |
{down}z9'---subpath (0,tim3) of p3..cycle; |
| 8140 |
infill p4..cycle; |
| 8141 |
penlabels(1,3',2,3,4); labels(7,9,9'); |
| 8142 |
endchar; |
| 8143 |
|
| 8144 |
iff known chars.latin_q_BB: |
| 8145 |
bskchar "The blackboard-bold letter q"; |
| 8146 |
beginchar(chars.latin_q_BB,11u#,x_height#,desc_depth#); uni "0x1D562"; |
| 8147 |
italcorr x_height#*slant; |
| 8148 |
adjust_fit(0,serif_fit#); |
| 8149 |
pickup tiny.nib; |
| 8150 |
path p[]; numeric tim[]; oblu:=2.5oblu; |
| 8151 |
save stem; stem:=.8cap_stem; |
| 8152 |
pos1(cap_stem,0); pos3'(hair,180); pos2(hair,90); pos3(hair,180); pos4(hair,270); |
| 8153 |
lft x1l=u; lft x3r=w-2u-stem; y3=.65x_height; y1=.5h; .5[x2,x4]=.5[x1,x3]; |
| 8154 |
x2-x4=-.5u; x3'r=x3r; y3'=.3x_height; |
| 8155 |
if (y3'/hair)<3.5: x3'l:=x3'l+.5hair; fi; |
| 8156 |
bot y2l=-o; top y4l=h+o; |
| 8157 |
rt x5r=w-2u; bot y5=-d; top y6r=h; |
| 8158 |
lowercase_points(5,6,jut); |
| 8159 |
p0=z3l---z3'l{z2r-z3r}..z2l..z1l..z4l..{down}z3l; |
| 8160 |
p1=z3r{up}..z4r..z1r..z2r..{up}z3'r--z3r; |
| 8161 |
p2=z5a--z6l; |
| 8162 |
p3=reverse lowercase_stem_draw(5,6); |
| 8163 |
tim1-2=xpart(subpath (2, 5) of p0 intersectiontimes p2); |
| 8164 |
tim2 =xpart(subpath (0,3) of p0 intersectiontimes ((0,0)--(w,0))); |
| 8165 |
if tim2<0: tim2:=xpart(subpath (0,3) of p0 intersectiontimes ((0,o)--(w,o))); fi; |
| 8166 |
tim3 =xpart(p3 intersectiontimes ((0,-o)--(x3'r,-o))); |
| 8167 |
z7=point tim1 of p0 + like_stem*up; if y7>y6r-.8hair: y7:=y6r-.8hair; fi |
| 8168 |
p4=z3r{up}..z4r..z1r..z2r..z2r+2hair*right..{up}z3'r--z3r; |
| 8169 |
bot rt z9=(w-u,x_height+o); z9'=z6r+stem*down; |
| 8170 |
tim4=xpart(p0 intersectiontimes ((.5w,y7)--(w,y7))); |
| 8171 |
filldraw subpath (tim2, rundy(p0,tim4).zpet) of p0..bot z6---z9--z9+down{z7-z9}.. |
| 8172 |
{down}z9'---subpath (0,tim3) of p3..cycle; |
| 8173 |
infill p4..cycle; |
| 8174 |
bot z100=(x5r,y5e); |
| 8175 |
p100:=subpath(2,4) of p0; |
| 8176 |
p101:=subpath(1,3) of p4; |
| 8177 |
z101=bsktouch(p100,down,p101,up); |
| 8178 |
z102=bsktouch(p100,up,p101,down); |
| 8179 |
tim100=xpart(p100 intersectiontimes (z101--(x101,h+5))); |
| 8180 |
tim101=xpart(p101 intersectiontimes (z101--(x101,0))); |
| 8181 |
tim102=xpart(p100 intersectiontimes (z102--(x102,y2l-5))); |
| 8182 |
tim103=xpart(p101 intersectiontimes (z102--(x102,y3))); |
| 8183 |
oblu:=f_obl; oblu.more:=1.25f_obl; |
| 8184 |
infill ifobl(6r,6b,5r,5l,more,)---obl(5l,6b,5r)---z5r...obl(100,5e,6r)---cycle; |
| 8185 |
oblu:=bbw; |
| 8186 |
infill subpath(rundy(p100,tim102),rundy(p100,tim100).zpet) of p100 |
| 8187 |
..reverse subpath(rundy(p101,tim103).zpet,rundy(p101,tim101)) of p101..cycle; |
| 8188 |
penlabels(1,3',2,3,4); labels(7,9,9',100,101,102); |
| 8189 |
endchar; |
| 8190 |
|
| 8191 |
iff known chars.latin_q_SS: |
| 8192 |
bskchar "The sans-serif letter q"; |
| 8193 |
beginchar(chars.latin_q_SS,11u#,x_height#,desc_depth#); uni "0x1D5CA"; |
| 8194 |
italcorr x_height#*slant; |
| 8195 |
adjust_fit(0,serif_fit#); |
| 8196 |
pickup tiny.nib; |
| 8197 |
path p[]; numeric tim[]; oblu:=2.5oblu; |
| 8198 |
pos1(curve,0); pos3'(hair,180); pos2(hair,90); pos3(hair,180); pos4(hair,270); |
| 8199 |
lft x1l=u; lft x3r=w-2u-stem; y3=.65x_height; y1=.5h; .5[x2,x4]=.5[x1,x3]; |
| 8200 |
x2-x4=-.5u; x3'r=x3r; y3'=.3x_height; |
| 8201 |
if (y3'/hair)<3.5: x3'l:=x3'l+.5hair; fi; |
| 8202 |
bot y2l=-o; top y4l=h+o; |
| 8203 |
rt x5r=w-2u; bot y5=-d; top y6r=h; |
| 8204 |
lowercase_points(5,6,jut); |
| 8205 |
p0=z3l---z3'l{z2r-z3r}..z2l..z1l..z4l..{down}z3l; |
| 8206 |
p1=z3r{up}..z4r..z1r..z2r..{up}z3'r--z3r; |
| 8207 |
p2=z5a--z6l; |
| 8208 |
p3=z5f{down}..z5..z5a---z6b..z6r---z5f; |
| 8209 |
tim1-2=xpart(subpath (2, 5) of p0 intersectiontimes p2); |
| 8210 |
tim2 =xpart(subpath (0,3) of p0 intersectiontimes ((0,0)--(w,0))); |
| 8211 |
if tim2<0: tim2:=xpart(subpath (0,3) of p0 intersectiontimes ((0,o)--(w,o))); fi; |
| 8212 |
tim3 =xpart(p3 intersectiontimes ((0,-o)--(x3'r,-o))); |
| 8213 |
z7=point tim1 of p0 + like_stem*up; if y7>y6r-.8hair: y7:=y6r-.8hair; fi |
| 8214 |
p4=z3r{up}..z4r..z1r..z2r..z2r+2hair*right..{up}z3'r--z3r; |
| 8215 |
bot rt z9=(w-u,x_height+o); z9'=z6r+stem*down; |
| 8216 |
tim4=xpart(p0 intersectiontimes ((.5w,y7)--(w,y7))); |
| 8217 |
filldraw subpath (tim2, rundy(p0,tim4).zpet) of p0..z6r--subpath (0,tim3) of p3..cycle; |
| 8218 |
infill p4..cycle; |
| 8219 |
penlabels(1,3',2,3,4); labels(7,9,9'); |
| 8220 |
endchar; |
| 8221 |
|
| 8222 |
charscription(8.5u,x_height,0)( |
| 8223 |
path p[]; numeric tim[]; |
| 8224 |
pos3(like_curve,0); pos5(hair,90); pos6(hair,180); |
| 8225 |
lft x1l=2u; bot y1=0; top y2=h+apex_o; |
| 8226 |
rt x3r=w-u; y3r=y5l-.75like_stem; |
| 8227 |
y5r=x_height; x5=.5w+.5like_stem; |
| 8228 |
x6l=x1r; y6=.6x_height; |
| 8229 |
z4=(x3l,x_height+o); |
| 8230 |
lowercase_points(1,2,jut); |
| 8231 |
p2:=z3r{up}..{dir180}z4..{down}z6r; |
| 8232 |
p1:=z6l{up}..{dir10}z5l..z5l+(hair,-o)...z3l..z3+o*down..z3r; |
| 8233 |
p3:=z1f--z2r; |
| 8234 |
(tim1,tim2)=p2 intersectiontimes p3; |
| 8235 |
z1'=point tim2 of p3+(like_stem+.5hair+.5tiny)*up; |
| 8236 |
if y1'>y5r: y1':=y5r-.5hair; fi; |
| 8237 |
tim3-1=xpart(subpath (1,2) of p2 intersectiontimes ((0,y1')--(w,y1'))); |
| 8238 |
filldraw p1..subpath (0,tim3) of p2..broken_stem_draw(1',1,2)---cycle; |
| 8239 |
penlabels(3,5,6); labels(1',4,7); |
| 8240 |
); |
| 8241 |
|
| 8242 |
iff known chars.latin_r: |
| 8243 |
bskchar "The letter r"; |
| 8244 |
beginchar(chars.latin_r,8.5u#, x_height#, 0); uni "0x0072"; |
| 8245 |
italcorr .5[bar_height#,x_height#]*slant; |
| 8246 |
adjust_fit(serif_fit#,0); |
| 8247 |
pickup tiny.nib; |
| 8248 |
usechar; |
| 8249 |
endchar; |
| 8250 |
|
| 8251 |
iff known chars.latin_racute: |
| 8252 |
bskchar "The letter r with acute"; |
| 8253 |
beginchar(chars.latin_racute,8.5u#, asc_height#, 0); uni "0x0155"; |
| 8254 |
italcorr asc_height#*slant-.75u#; |
| 8255 |
adjust_fit(serif_fit#,0); |
| 8256 |
pickup tiny.nib; |
| 8257 |
usechar; |
| 8258 |
x101=.5[x2r,x5]; |
| 8259 |
acute(100,101); |
| 8260 |
endchar; |
| 8261 |
|
| 8262 |
iff known chars.latin_rcaron: |
| 8263 |
bskchar "The letter r with caron"; |
| 8264 |
beginchar(chars.latin_rcaron,8.5u#, asc_height#, 0); uni "0x0159"; |
| 8265 |
italcorr asc_height#*slant-.75u#; |
| 8266 |
adjust_fit(serif_fit#,0); |
| 8267 |
pickup tiny.nib; |
| 8268 |
usechar; |
| 8269 |
x101=.5[x2r,x5]; |
| 8270 |
hacek(100,101,102); |
| 8271 |
endchar; |
| 8272 |
|
| 8273 |
iff known chars.latin_rdoublegrave: |
| 8274 |
bskchar "The letter r with double grave"; |
| 8275 |
beginchar(chars.latin_rdoublegrave,8.5u#,asc_height#,0); uni "0x0211"; |
| 8276 |
italcorr .5[bar_height#,x_height#]*slant; |
| 8277 |
adjust_fit(serif_fit#,0); |
| 8278 |
pickup tiny.nib; |
| 8279 |
usechar; |
| 8280 |
x102-x100=3u; |
| 8281 |
d_grave(100,101,102,103,.5[x5r,x2]); |
| 8282 |
endchar; |
| 8283 |
|
| 8284 |
iff known chars.latin_rcedilla: |
| 8285 |
bskchar "The letter r with cedilla (treated as comma)"; |
| 8286 |
beginchar(chars.latin_rcedilla,8.5u#,x_height#,.75comma_depth#); uni "0x0157"; |
| 8287 |
italcorr .5[bar_height#,x_height#]*slant; |
| 8288 |
adjust_fit(serif_fit#,0); |
| 8289 |
pickup tiny.nib; |
| 8290 |
usechar; |
| 8291 |
x100=x1; top y100''r=-o; |
| 8292 |
comma(100,.75dot_size,.5hair,.75comma_depth); |
| 8293 |
endchar; |
| 8294 |
|
| 8295 |
iff known chars.latin_rinvbreve: |
| 8296 |
bskchar "The letter r with inverted breve"; |
| 8297 |
beginchar(chars.latin_rinvbreve,8.5u#,asc_height#,0); uni "0x0213"; |
| 8298 |
italcorr .5[bar_height#,x_height#]*slant; |
| 8299 |
adjust_fit(serif_fit#,0); |
| 8300 |
pickup tiny.nib; |
| 8301 |
usechar; |
| 8302 |
x101=.45[x4,x2r]; x102-x100=4.5u; |
| 8303 |
tieacc(100,101,102); |
| 8304 |
endchar; |
| 8305 |
|
| 8306 |
iff known chars.latin_r_BB: |
| 8307 |
bskchar "The blackboard-bold letter r"; |
| 8308 |
beginchar(chars.latin_r_BB,8.5u#, x_height#, 0); uni "0x1D563"; |
| 8309 |
italcorr .5[bar_height#,x_height#]*slant; |
| 8310 |
adjust_fit(serif_fit#,0); |
| 8311 |
pickup tiny.nib; |
| 8312 |
path p[]; numeric tim[]; |
| 8313 |
save stem; stem:=.8cap_stem; |
| 8314 |
pos3(like_curve,0); pos5(hair,90); pos6(hair,180); |
| 8315 |
lft x1l=2u; bot y1=0; top y2=h+apex_o; |
| 8316 |
rt x3r=w-u; y3r=y5l-.75like_stem; |
| 8317 |
y5r=x_height; x5=.5w+.5like_stem; |
| 8318 |
x6l=x1r; y6=.6x_height; |
| 8319 |
z4=(x3l,x_height+o); |
| 8320 |
lowercase_points(1,2,jut); |
| 8321 |
p2:=z3r{up}..{dir180}z4..{down}z6r; |
| 8322 |
p1:=z6l{up}..{dir10}z5l..z5l+(hair,-o)...z3l..z3+o*down..z3r; |
| 8323 |
p3:=z1f--z2r; |
| 8324 |
(tim1,tim2)=p2 intersectiontimes p3; |
| 8325 |
z1'=point tim2 of p3+(like_stem+.5hair+.5tiny)*up; |
| 8326 |
if y1'>y5r: y1':=y5r-.5hair; fi; |
| 8327 |
tim3-1=xpart(subpath (1,2) of p2 intersectiontimes ((0,y1')--(w,y1'))); |
| 8328 |
filldraw p1..subpath (0,tim3) of p2..broken_stem_draw(1',1,2)---cycle; |
| 8329 |
oblu:=f_obl; oblu.more:=1.25oblu; |
| 8330 |
bot z100=(x1l,y1b); |
| 8331 |
infill ifobl(2r,2b,1r,1l,more,)---obl(100,2b,1b)...z1l---obl(1r,1l,2r)---cycle; |
| 8332 |
penlabels(3,5,6); labels(1',4,7,100); |
| 8333 |
math_fit(0,ic#-1.5u#); |
| 8334 |
endchar; |
| 8335 |
|
| 8336 |
iff known chars.latin_r_SS: |
| 8337 |
bskchar "The sans-serif letter r"; |
| 8338 |
beginchar(chars.latin_r_SS,8.5u#, x_height#, 0); uni "0x1D5CB"; |
| 8339 |
italcorr .5[bar_height#,x_height#]*slant; |
| 8340 |
adjust_fit(serif_fit#,0); |
| 8341 |
pickup tiny.nib; |
| 8342 |
path p[]; numeric tim[]; |
| 8343 |
pos3(stem,0); pos5(hair,90); pos6(hair,180); |
| 8344 |
lft x1l=2u; bot y1=0; top y2=h+apex_o; |
| 8345 |
rt x3r=w-u; y3r=y5l-.75like_stem; |
| 8346 |
y5r=x_height; x5=.5w+.5like_stem; |
| 8347 |
x6l=x1r; y6=.6x_height; |
| 8348 |
z4=(x3l,y5r); |
| 8349 |
lowercase_points(1,2,jut); |
| 8350 |
p2:=z3r{up}..z5r..{down}z6r; |
| 8351 |
p1:=z6l{up}..{dir10}z5l...{down}z3l; |
| 8352 |
p3:=z1f--z2r; |
| 8353 |
(tim1,tim2)=p2 intersectiontimes p3; |
| 8354 |
z1'=point tim2 of p3+(like_stem+.5hair+.5tiny)*up+o*right; |
| 8355 |
if y1'>y5r: y1':=y5r-.5hair; fi; |
| 8356 |
tim3-1=xpart(subpath (1,2) of p2 intersectiontimes ((0,y1')--(w,y1'))); |
| 8357 |
filldraw p1..subpath (0,tim3) of p2..z1'..z2..z2b---z1a..z1..z1f---cycle; |
| 8358 |
penlabels(3,5,6); labels(1',4,7); |
| 8359 |
math_fit(0,ic#-1.5u#); |
| 8360 |
endchar; |
| 8361 |
|
| 8362 |
charscription(7.7u,x_height,0)( |
| 8363 |
numeric exc; exc=(w-u)/h; oblu:=1.5oblu; |
| 8364 |
path p[]; numeric tim[]; |
| 8365 |
pos2(hair,90); pos3(curve,angle((w-u,h))+180); pos4(hair,90); |
| 8366 |
pos5(stem,180); pos6(stem,180); |
| 8367 |
y5=.5[y2l,y3]+.5hair; x3-x5l=.5(y2l-y3l)*exc; |
| 8368 |
y6=.5[y4r,y3]-.5hair; rt x6l=w-u; |
| 8369 |
x2=x3=x4=.5w; top y2r=h+o; bot y4l=-o; |
| 8370 |
y3=.5[y2l,y4r]+.5hair; |
| 8371 |
pos1(hair,0); pos1'(hair,0); x1r=x1'r+.5o=w-x5r; y1=y5-.5hair; y1'=h+o; |
| 8372 |
pos7(hair,0); pos7'(hair,0); x7l=x7'l-o=w-x6l; y7=y6+.5hair; y7'=-o; |
| 8373 |
p0=z1r{up}..z2r{left}..z5r..z3r..z6r..{left}z4r..{up}z7r; |
| 8374 |
p1=z7l{dir-80}..z4l{right}..z6l..z3l..z5l..{right}z2l..{down}z1l; |
| 8375 |
tim1=xpart(p0 intersectiontimes ((x1'l-.5o,h)--(x1'l-.5o,.5h))); |
| 8376 |
tim2=xpart(p1 intersectiontimes ((x7'r+o,0)--(x7'r+o,.5h))); |
| 8377 |
filldraw z1r---z1'r..z1'l..subpath(rundy(p0,tim1),infinity) of p0..z7l |
| 8378 |
---z7'l..z7'r..subpath(rundy(p1,(tim2,1.33oblu)), infinity) of p1..cycle; |
| 8379 |
penlabels(0,1,1',2,3,4,5,6,7,7'); |
| 8380 |
); |
| 8381 |
|
| 8382 |
iff known chars.latin_s: |
| 8383 |
bskchar "The letter s"; |
| 8384 |
beginchar(chars.latin_s,7.7u#, x_height#, 0); uni "0x0073"; |
| 8385 |
italcorr x_height#*slant-.75u#; |
| 8386 |
adjust_fit(0,0); |
| 8387 |
pickup tiny.nib; |
| 8388 |
usechar; |
| 8389 |
endchar; |
| 8390 |
|
| 8391 |
iff known chars.latin_scaron: |
| 8392 |
bskchar "The letter s with caron"; |
| 8393 |
beginchar(chars.latin_scaron,7.7u#, asc_height#, 0); uni "0x0161"; |
| 8394 |
italcorr asc_height#*slant-.5u#; |
| 8395 |
adjust_fit(0,0); |
| 8396 |
pickup tiny.nib; |
| 8397 |
usechar; |
| 8398 |
x101=x2; x100r=u; |
| 8399 |
hacek(100,101,102); |
| 8400 |
endchar; |
| 8401 |
|
| 8402 |
iff known chars.latin_scircumflex: |
| 8403 |
bskchar "The letter s with circumflex"; |
| 8404 |
beginchar(chars.latin_scircumflex,7.7u#, asc_height#-.1x_height#, 0); uni "0x015D"; |
| 8405 |
italcorr .5[asc_height#,x_height#]*slant-.75u#; |
| 8406 |
adjust_fit(0,0); |
| 8407 |
pickup tiny.nib; |
| 8408 |
usechar; |
| 8409 |
x101=x2+o; x102-x100=5u; |
| 8410 |
circumflex(100,101,102); |
| 8411 |
endchar; |
| 8412 |
|
| 8413 |
iff known chars.latin_sacute: |
| 8414 |
bskchar "The letter s with acute"; |
| 8415 |
beginchar(chars.latin_sacute,7.7u#, asc_height#, 0); uni "0x015B"; |
| 8416 |
italcorr x_height#*slant-.75u#; |
| 8417 |
adjust_fit(0,0); |
| 8418 |
pickup tiny.nib; |
| 8419 |
usechar; |
| 8420 |
x101=x2-u; |
| 8421 |
acute(100,101); |
| 8422 |
endchar; |
| 8423 |
|
| 8424 |
iff known chars.latin_scommabelow: |
| 8425 |
bskchar "The letter s with comma below"; |
| 8426 |
beginchar(chars.latin_scommabelow,7.7u#,x_height#,.75comma_depth#); uni "0x0219"; |
| 8427 |
italcorr x_height#*slant-.75u#; |
| 8428 |
adjust_fit(0,0); |
| 8429 |
pickup tiny.nib; |
| 8430 |
usechar; |
| 8431 |
x100=x4; top y100''r=-2o; |
| 8432 |
comma(100,.75dot_size,.5hair,.75comma_depth); |
| 8433 |
endchar; |
| 8434 |
|
| 8435 |
iff known chars.latin_s_BB: |
| 8436 |
bskchar "The blackboard-bold letter s"; |
| 8437 |
beginchar(chars.latin_s_BB,7.7u#, x_height#, 0); uni "0x1D564"; |
| 8438 |
italcorr x_height#*slant-.75u#; |
| 8439 |
adjust_fit(0,0); |
| 8440 |
pickup tiny.nib; |
| 8441 |
numeric exc; exc=(w-u)/h; oblu:=1.5oblu; |
| 8442 |
path p[]; numeric tim[]; |
| 8443 |
pos2(hair,90); pos3(cap_stem,angle((w-u,h))+180); pos4(hair,90); |
| 8444 |
pos5(.8cap_stem,180); pos6(.8cap_stem,180); |
| 8445 |
y5=.5[y2l,y3]+.5hair; x3-x5l=.5(y2l-y3l)*exc; |
| 8446 |
y6=.5[y4r,y3]-.5hair; rt x6l=w-u; |
| 8447 |
x2=x3=x4=.5w; top y2r=h+o; bot y4l=-o; |
| 8448 |
y3=.5[y2l,y4r]+.5hair; |
| 8449 |
pos1(hair,0); pos1'(hair,0); x1r=x1'r+.5o=w-.5[x5,x5r]; y1=y5-.5hair; y1'=h+o; |
| 8450 |
pos7(hair,0); pos7'(hair,0); x7l=x7'l-o=w-x6l; y7=y6+.5hair; y7'=-o; |
| 8451 |
p0=z1r{up}..z2r{left}..z5r..z3r..z6r..{left}z4r..{up}z7r; |
| 8452 |
p1=z7l{dir-80}..z4l{right}..z6l..z3l..z5l..{right}z2l..{down}z1l; |
| 8453 |
tim1=xpart(p0 intersectiontimes ((x1'l-.5o,h)--(x1'l-.5o,.5h))); |
| 8454 |
tim2=xpart(p1 intersectiontimes ((x7'r+o,0)--(x7'r+o,.5h))); |
| 8455 |
filldraw z1r---z1'r..z1'l..subpath(rundy(p0,tim1),infinity) of p0..z7l |
| 8456 |
---z7'l..z7'r..subpath(rundy(p1,(tim2,1.33oblu)), infinity) of p1..cycle; |
| 8457 |
oblu:=bbw; |
| 8458 |
p100:=subpath(1,5) of p0; |
| 8459 |
p101:=subpath(1,5) of p1; |
| 8460 |
z100=bsktouch(subpath(0,1) of p100,down,p101,up); |
| 8461 |
z101=bsktouch(p100,down,subpath(0,1) of p101,up); |
| 8462 |
tim100=xpart(p100 intersectiontimes (z100--(x100,y2r+5))); |
| 8463 |
tim101=xpart(p101 intersectiontimes (z100--(x100,y5))); |
| 8464 |
tim102=xpart(p100 intersectiontimes (z101--(x101,y6))); |
| 8465 |
tim103=xpart(p101 intersectiontimes (z101--(x101,y4l-5))); |
| 8466 |
infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100 |
| 8467 |
..subpath(rundy(p101,tim103),rundy(p101,tim101).zpet) of p101..cycle; |
| 8468 |
penlabels(0,1,1',2,3,4,5,6,7,7'); labels(100,101); |
| 8469 |
endchar; |
| 8470 |
|
| 8471 |
iff known chars.latin_s_SS: |
| 8472 |
bskchar "The sans-serif letter s"; |
| 8473 |
beginchar(chars.latin_s_SS,7u#, x_height#, 0); uni "0x1D5CC"; |
| 8474 |
italcorr x_height#*slant-.75u#; |
| 8475 |
adjust_fit(0,0); |
| 8476 |
pickup tiny.nib; |
| 8477 |
numeric exc; exc=(w-u)/h; oblu:=1.5oblu; |
| 8478 |
path p[]; numeric tim[]; |
| 8479 |
pos2(hair,90); pos3(curve,angle((w-u,h))+180); pos4(hair,90); |
| 8480 |
pos5(stem,180); pos6(stem,180); |
| 8481 |
y5=.5[y2l,y3]+.5hair; x3-x5l=.5(y2l-y3l)*exc; |
| 8482 |
y6=.5[y4r,y3]-.5hair; rt x6l=w-u; |
| 8483 |
x3=.5w; top y2r=h+o; bot y4l=-o; x2=.5[x1,x5l]; .5[x2,x4]=x3; |
| 8484 |
y3=.5[y2l,y4r]+.5hair; |
| 8485 |
pos1(hair,0); x1r=w-x5r; y1=y5+o; |
| 8486 |
pos7(hair,0); x7l=w-x6l; y7=y6; |
| 8487 |
p0=z1r{up}..z2r{left}..z5r..z3r..z6r..{left}z4r..{up}z7r; |
| 8488 |
p1=z7l{dir-90}..z4l{right}..z6l..z3l..z5l..{right}z2l..{down}z1l; |
| 8489 |
filldraw p0..p1..cycle; |
| 8490 |
penlabels(0,1,2,3,4,5,6,7); |
| 8491 |
endchar; |
| 8492 |
|
| 8493 |
iff known chars.latin_scedilla: |
| 8494 |
bskchar "The letter s with cedilla"; |
| 8495 |
beginchar(chars.latin_scedilla,7.7u#, x_height#,.65desc_depth#); uni "0x015F"; |
| 8496 |
italcorr x_height#*slant-.75u#; |
| 8497 |
adjust_fit(0,0); |
| 8498 |
pickup tiny.nib; |
| 8499 |
numeric exc; exc=(w-u)/h; oblu:=1.5hair; |
| 8500 |
path p[]; numeric tim[]; |
| 8501 |
pos2(hair,90); pos3(curve,angle((w-u,h))+180); pos4(hair,90); |
| 8502 |
pos5(stem,180); pos6(stem,180); |
| 8503 |
pos8(.5stem,0); pos9(.5stem,0); pos10(.8stem,0); pos11(.5stem,-110); |
| 8504 |
y5=.5[y2l,y3]+.5hair; x3-x5l=.5(y2l-y3l)*exc; |
| 8505 |
y6=.5[y4r,y3]-.5hair; rt x6l=w-u; |
| 8506 |
x2=x3=x4=.5w; top y2r=h+o; bot y4l=-o; |
| 8507 |
y3=.5[y2l,y4r]+.5hair; |
| 8508 |
pos1(hair,0); pos1'(hair,0); x1r=x1'r+.5o=w-x5r; y1=y5-.5hair; y1'=h+o; |
| 8509 |
pos7(hair,0); pos7'(hair,0); x7l=x7'l-o=w-x6l; y7=y6+.5hair; y7'=-o; |
| 8510 |
x8=x9; z8l=z4l; y9=-hair; y10=-.5d; |
| 8511 |
rt x10r-lft x11r=4u; x8r-lft x11r=2u; y11r=-d; |
| 8512 |
p0=z1r{up}..z2r{left}..z5r..z3r..z6r..{left}z4r..{up}z7r; |
| 8513 |
p1=z7l{dir-80}..z4l{right}..z6l..z3l..z5l..{right}z2l..{down}z1l; |
| 8514 |
p2:=z9r..{down}z10r..{left}z11r..{right}z11l..{up}z10l..z9l--z8l; |
| 8515 |
p3:=reverse(z8r{down}..subpath (rundy(p2,(0,curve)),infinity) of p2); |
| 8516 |
tim1=xpart(p0 intersectiontimes ((x1'l-.5o,h)--(x1'l-.5o,.5h))); |
| 8517 |
tim2=xpart(p1 intersectiontimes ((x7'r+o,0)--(x7'r+o,.5h))); |
| 8518 |
if tim2>1: tim2:=1; fi; |
| 8519 |
tim3=xpart(p1 intersectiontimes (z9l--(x8l,y6))); |
| 8520 |
filldraw z1r---z1'r..z1'l..subpath(rundy(p0,tim1),infinity) of p0..z7l |
| 8521 |
---z7'l..z7'r..subpath(rundy(p1,(tim2,1.33oblu)),rundy(p1,1).zpet) of p1 |
| 8522 |
..subpath(rundy(p3,(0,hair)),rundy(p3,infinity).zpet) of p3 |
| 8523 |
..subpath(rundy(p1,tim3),infinity) of p1 |
| 8524 |
..cycle; |
| 8525 |
penlabels(0,1,1',2,3,4,5,6,7,7',8,9,10,11); |
| 8526 |
endchar; |
| 8527 |
|
| 8528 |
iff known chars.latin_eszet: |
| 8529 |
bskchar "The german eszet"; |
| 8530 |
beginchar(chars.latin_eszet,11.5u#, asc_height#, 0); uni "0x00DF"; |
| 8531 |
italcorr .5[asc_height#,x_height#]*slant-1.25u#; |
| 8532 |
adjust_fit(serif_fit#,serif_fit#); |
| 8533 |
pickup tiny.nib; |
| 8534 |
numeric tim; |
| 8535 |
path p[]; |
| 8536 |
pos3(hair,-90); pos4(stem,180); pos4'(stem,180); |
| 8537 |
pos6(stem,180); pos7(.9stem,180); pos8(hair,90); |
| 8538 |
lft x1l=2.5u; bot y1=0; top y2=.4[x_height,h]; |
| 8539 |
top y3l=h+o; x3=.5w+.5u; .5[x2r,x4]=x3; y4=y2+hair; |
| 8540 |
lowercase_points(1,2,jut); if not bold_face: y2r:=y2r+hair; fi; x1d:=x1d-hair; |
| 8541 |
z3'r=z3r+.5hair*right; |
| 8542 |
pos5(hair,90); pos5'(hair,90); |
| 8543 |
y5=y5'=bot x_height; |
| 8544 |
lft x5=u; x5'=x1l; x6r=x2r+stem+u; rt x7l=w-u; y7=.25x_height; y6=.5[x_height,y9]; |
| 8545 |
bot y8l=-o; x8=x9=.5[x6,x7]; y9=.5[x_height,y8l]+.5hair; y7r:=y7-.225stem; |
| 8546 |
pos9(curve,angle((x7r-x6r,x_height))+180); |
| 8547 |
pos10(hair,0); pos10'(hair,0); rt x10r=x6r; x10'r=x10r+o; y10=.5[y8r,y9]+.5hair; y10'=-o; |
| 8548 |
p0:=z10l{dir-80}..{right}z8l; |
| 8549 |
tim=xpart(p0 intersectiontimes (z10'r--z9r)); |
| 8550 |
filldraw z1a..z1b{left}..z1c{right}..z1+ser_boule*up..{right}z1d..{left}z1e.. |
| 8551 |
{up}z1f---z2r...{right}z3r..z4r{down}..z6r..z9r..{down}z7r..{left}z8r.. |
| 8552 |
{up}z10r..z10l---z10'l..z10'r..subpath (rundy(p0,tim),1) of p0..z7l{up}.. |
| 8553 |
z9l..z6l..z4l{up}..z3l..z2l---obl(5'r,2l,5r)---z5r..z5l--- |
| 8554 |
obl(5'l,5l,1l)---cycle; |
| 8555 |
penlabels(3,4,5,5',6,7,8,9,10,10'); |
| 8556 |
endchar; |
| 8557 |
|
| 8558 |
iff known chars.latin_long_s: |
| 8559 |
bskchar "The letter long s"; |
| 8560 |
beginchar(chars.latin_long_s,6.5u#, asc_height#, 0); uni "0x017F"; |
| 8561 |
italcorr asc_height#*slant+1.5u#; |
| 8562 |
adjust_fit(serif_fit#,serif_fit#); |
| 8563 |
pickup tiny.nib; |
| 8564 |
numeric fend; fend:=stem; |
| 8565 |
pos3(hair,-90); pos4(fend,180); |
| 8566 |
lft x1l=2.5u; bot y1=0; top y2=h-like_curve; |
| 8567 |
top y3l=h+o; x3=if monospace: .6[w,x1r] else: w-1.25u fi; |
| 8568 |
.5[x2r,x4]=x3; y4''=y3r-like_hair; |
| 8569 |
z4'=z4+.2fend*down+o*left; z4''=z4+.5(fend-currentbreadth)*dir45; |
| 8570 |
lowercase_points(1,2,jut); |
| 8571 |
if not bold_face: y2r:=y2r+hair; fi; |
| 8572 |
z3'r=z3r+.5hair*right; |
| 8573 |
pos5(hair,90); pos5'(hair,90); |
| 8574 |
y5=y5'=bot x_height; |
| 8575 |
lft x5=u; x5'=x1l; |
| 8576 |
filldraw z1a..z1b{left}..z1c{right}..z1+ser_boule*up..{right}z1d.. |
| 8577 |
{left}z1e..{up}z1f---z2r...{right}z3r..z4r..z4'..z4l{up}..z4''..z3l..z2l--- |
| 8578 |
obl(5'r,2l,5r)---z5r..z5l---obl(5'l,5l,1l)---cycle; |
| 8579 |
penlabels(3,4,5,5'); labels(4',4''); |
| 8580 |
endchar; |
| 8581 |
|
| 8582 |
charscription(7.5u,.4[asc_height,x_height], 0)( |
| 8583 |
pos0(hair,0); pos1(stem,0); pos2(stem,0); pos3(hair,90); pos4(hair,180); |
| 8584 |
x1=x2; x2r=.5w; x3=.5[x2r,x4]; rt x4l=w-u; |
| 8585 |
y2=.15h; y4=2/3(x4-x3); y1=x_height; bot y3l=-o; y4l:=y4-.5(hair-currentbreadth); |
| 8586 |
top y0=h+apex_o; x0r=x1r; y0r:=y0-apex_o; |
| 8587 |
pos5(hair,90); pos6(hair,90); |
| 8588 |
y5=y6=y1; lft x5=u; rt x6=w-u; z1'l-z1l=z1'r-z1r=z1r-z1''r=.5(hair-currentbreadth)*down; |
| 8589 |
filldraw z2r..z3r..{dir(angle(z4r-z3r)+10)}z4r--z4l{dir(angle(z3l-z4l)+20)}..{left}z3l |
| 8590 |
..z2l---obl(1'l,2l,5l)---z5l..{right}z5r..controls (z1l+hair*dir100).. |
| 8591 |
z0l..z0r---obl(1''r,0r,6r)---z6r..z6l---obl(1'r,6l,2r)---cycle; |
| 8592 |
penlabels(0,1,1',2,3,4,5,6); labels(1''r); |
| 8593 |
); |
| 8594 |
|
| 8595 |
iff known chars.latin_t: |
| 8596 |
bskchar "The letter t"; |
| 8597 |
beginchar(chars.latin_t,7.5u#,.4[asc_height#,x_height#], 0); uni "0x0074"; |
| 8598 |
italcorr x_height#*slant-.25u#; |
| 8599 |
adjust_fit(0,0); |
| 8600 |
pickup tiny.nib; |
| 8601 |
usechar; |
| 8602 |
endchar; |
| 8603 |
|
| 8604 |
iff known chars.latin_tcommabelow: |
| 8605 |
bskchar "The letter t with comma below"; |
| 8606 |
beginchar(chars.latin_tcommabelow,7.5u#,.4[asc_height#,x_height#],.75comma_depth#); uni "0x021B"; |
| 8607 |
italcorr x_height#*slant-.25u#; |
| 8608 |
adjust_fit(0,0); |
| 8609 |
pickup tiny.nib; |
| 8610 |
usechar; |
| 8611 |
x100=x3-o; top y100''r=-2o; |
| 8612 |
comma(100,.75dot_size,.5hair,.75comma_depth); |
| 8613 |
endchar; |
| 8614 |
|
| 8615 |
iff known chars.latin_tcaron: |
| 8616 |
bskchar "The letter t with caron (treated like comma)"; |
| 8617 |
beginchar(chars.latin_tcaron,7.5u#, asc_height#, 0); uni "0x0165"; |
| 8618 |
italcorr asc_height#*slant-.5u#; |
| 8619 |
adjust_fit(0,0); |
| 8620 |
pickup tiny.nib; |
| 8621 |
usechar; |
| 8622 |
rt x100'''=w-u; top y100''r=h; |
| 8623 |
comma(100,.75dot_size,.5hair,.75comma_depth); |
| 8624 |
endchar; |
| 8625 |
|
| 8626 |
iff known chars.latin_t_BB: |
| 8627 |
bskchar "The blackboard-bold letter t"; |
| 8628 |
beginchar(chars.latin_t_BB,7.5u#,.4[asc_height#,x_height#], 0); uni "0x1D565"; |
| 8629 |
italcorr x_height#*slant-.25u#; |
| 8630 |
adjust_fit(0,0); |
| 8631 |
pickup tiny.nib; |
| 8632 |
pos0(hair,0); pos1(.8cap_stem,0); pos2(.8cap_stem,0); pos3(hair,90); pos4(hair,180); |
| 8633 |
x1=x2; x2r=.5w; rt x3=.5[x2r,x4]; rt x4l=w-u; |
| 8634 |
y2=.15h; y4=2/3(x4-x3); y1=x_height; bot y3l=-o; y4l:=y4-.5(hair-currentbreadth); |
| 8635 |
top y0=h+apex_o; x0r=x1r; y0r:=y0-apex_o; |
| 8636 |
pos5(hair,90); pos6(hair,90); |
| 8637 |
y5=y6=y1; lft x5=u; rt x6=w-u; z1'l-z1l=z1'r-z1r=z1r-z1''r=.5(hair-currentbreadth)*down; |
| 8638 |
filldraw z2r..z3r..{dir(angle(z4r-z3r)+10)}z4r--z4l{dir(angle(z3l-z4l)+20)}..{left}z3l |
| 8639 |
..z2l---obl(1'l,2l,5l)---z5l..{right}z5r..controls (z1l+hair*dir100).. |
| 8640 |
z0l..z0r---obl(1''r,0r,6r)---z6r..z6l---obl(1'r,6l,2r)---cycle; |
| 8641 |
path p[]; numeric tim[]; |
| 8642 |
p100:=subpath(0,2) of (z1r---z2r..z3r..{dir(angle(z4r-z3r)+10)}z4r); |
| 8643 |
p101:=subpath(1,infinity) of (z4l{dir(angle(z3l-z4l)+20)}..{left}z3l..{up}z2l); |
| 8644 |
z100=bsktouch(p100,down,p101,up); |
| 8645 |
tim100=xpart(p100 intersectiontimes (z100--(x100,y2))); |
| 8646 |
tim101=xpart(p101 intersectiontimes (z100--(x100,y3l-5))); |
| 8647 |
z101=2/3[z1r,z0r]; |
| 8648 |
oblu:=.8bbw; |
| 8649 |
infill subpath(0,rundy(p100,tim100).zpet) of p100 |
| 8650 |
..subpath(rundy(p101,tim101),infinity) of p101---ifobl(1l,101,2l,1r,,)---cycle; |
| 8651 |
penlabels(0,1,1',2,3,4,5,6); labels(1''r,100,101); |
| 8652 |
endchar; |
| 8653 |
|
| 8654 |
iff known chars.latin_tcedilla: |
| 8655 |
bskchar "The letter t with cedilla"; |
| 8656 |
beginchar(chars.latin_tcedilla,7.5u#,.4[asc_height#,x_height#],.65desc_depth#); uni "0x0163"; |
| 8657 |
italcorr x_height#*slant-.25u#; |
| 8658 |
adjust_fit(0,0); |
| 8659 |
pickup tiny.nib; |
| 8660 |
numeric tim[]; |
| 8661 |
pos0(hair,0); pos1(stem,0); pos2(stem,0); pos3(hair,90); pos4(hair,180); |
| 8662 |
pos7(.5stem,0); pos8(.5stem,0); pos9(.8stem,0); pos10(.5stem,-110); |
| 8663 |
x1=x2; x2r=.5w; x3=.5[x2r,x4]; rt x4l=w-u; |
| 8664 |
y2=.15h; y4=2/3(x4-x3); y1=x_height; bot y3l=-o; y4l:=y4-.5(hair-currentbreadth); |
| 8665 |
top y0=h+apex_o; x0r=x1r; y0r:=y0-apex_o; |
| 8666 |
pos5(hair,90); pos6(hair,90); |
| 8667 |
y5=y6=y1; lft x5=u; rt x6=w-u; z1'l-z1l=z1'r-z1r=z1r-z1''r=.5(hair-currentbreadth)*down; |
| 8668 |
x7l=x8l; z7r=z3r; y8=-hair; y9=-.5d; |
| 8669 |
rt x9r-lft x10r=4u; x7r-lft x10r=2u; y10r=-d; |
| 8670 |
p1:=z4l{dir(angle(z3l-z4l)+20)}..{left}z3l..z2l; |
| 8671 |
p2:=z8r..{down}z9r..{left}z10r..{right}z10l..{up}z9l..z8l--z7l; |
| 8672 |
p3:=z7r{down}..subpath (rundy(p2,(0,curve)),infinity) of p2; |
| 8673 |
tim1=xpart(p1 intersectiontimes (z8l--(x7l,y2))); |
| 8674 |
filldraw z2r..z3r..{dir(angle(z4r-z3r)+10)}z4r--subpath(0,rundy(p1,1).zpet) of p1..subpath(rundy(p3,0),rundy(p3,infinity).zpet) of p3..subpath(rundy(p1,tim1),infinity) of p1---obl(1'l,2l,5l)---z5l..{left}z5r..controls (z1l+hair*dir100)..z0l..z0r---obl(1''r,0r,6r)---z6r..z6l---obl(1'r,6l,2r)---cycle; |
| 8675 |
penlabels(0,1,1',2,3,4,5,6,7,8,9,10); labels(1''r); |
| 8676 |
endchar; |
| 8677 |
|
| 8678 |
iff known chars.latin_tstroke: |
| 8679 |
bskchar "The letter t with stroke"; |
| 8680 |
beginchar(chars.latin_tstroke,7.5u#,.4[asc_height#,x_height#], 0); uni "0x0167"; |
| 8681 |
italcorr x_height#*slant-.25u#; |
| 8682 |
adjust_fit(0,0); |
| 8683 |
pickup tiny.nib; |
| 8684 |
pos0(hair,0); pos1(stem,0); pos2(stem,0); pos3(hair,90); pos4(hair,180); |
| 8685 |
pos5(hair,90); pos6(hair,90); |
| 8686 |
pos7(bar,90); pos7'(bar,90); pos8(bar,90); pos8'(bar,90); |
| 8687 |
x1=x2; x2r=.5w; x3=.5[x2r,x4]; rt x4l=w-u; |
| 8688 |
y2=.15h; y4=2/3(x4-x3); y1=x_height; bot y3l=-o; y4l:=y4-.5(hair-currentbreadth); |
| 8689 |
top y0=h+apex_o; x0r=x1r; y0r:=y0-apex_o; |
| 8690 |
y5=y6=y1; lft x5=u; rt x6=w-u; z1'l-z1l=z1'r-z1r=z1r-z1''r=.5(hair-currentbreadth)*down; |
| 8691 |
x8-x7=4u if bold_face: +.5u fi; y8=y8'=y7=y7'=bar_height; .5[x7,x8]=x1+o; |
| 8692 |
x7'=x1l; x8'=x1r; bskpoints(7,8,hair,hair); |
| 8693 |
filldraw z2r..z3r..{dir(angle(z4r-z3r)+10)}z4r--z4l{dir(angle(z3l-z4l)+20)} |
| 8694 |
..{left}z3l..z2l---obl(7'l,2l,7l)---z7l..z7rr---obl(7'r,7rr,1l) |
| 8695 |
---obl(1'l,2l,5l)---z5l..{left}z5r..controls (z1l+hair*dir100) |
| 8696 |
..z0l..z0r---obl(1''r,0r,6r)---z6r..z6l---obl(1'r,6l,2r) |
| 8697 |
---obl(8'r,1r,8r)---z8r..z8ll---obl(8'l,8l,2r)---cycle; |
| 8698 |
penlabels(0,1,1',2,3,4,5,6,7,7',8,8'); labels(1''r,7rr,8ll); |
| 8699 |
endchar; |
| 8700 |
|
| 8701 |
iff known chars.latin_t_SS: |
| 8702 |
bskchar "The sans-serif letter t"; |
| 8703 |
beginchar(chars.latin_t_SS,7.5u#,.4[asc_height#,x_height#], 0); uni "0x1D5CD"; |
| 8704 |
italcorr x_height#*slant; |
| 8705 |
adjust_fit(0,0); |
| 8706 |
pickup tiny.nib; |
| 8707 |
pos0(hair,0); pos1(stem,0); pos2(stem,0); pos3(hair,90); pos4(hair,180); |
| 8708 |
x1=x2; x2r=.5w; x3=.5[x2r,x4]; rt x4l=w-u; |
| 8709 |
y2=.15h; y4=2/3(x4-x3); y1=x_height; bot y3l=-o; y4l:=y4-.5(hair-currentbreadth); |
| 8710 |
top y0=h+apex_o; x0r=x1r; y0r:=y0-apex_o; |
| 8711 |
pos5(hair,90); pos6(hair,90); |
| 8712 |
y5=y6=y1; lft x5=u; rt x6=w-u; z1'l-z1l=z1'r-z1r=z1r-z1''r=.5(hair-currentbreadth)*down; |
| 8713 |
y5'=y5r; x5'=x1l; |
| 8714 |
oblu:=cap_hair; |
| 8715 |
filldraw z2r..z3r..{dir(angle(z4r-z3r)+10)}z4r..z4l{dir(angle(z3l-z4l)+20)}..{left}z3l..z2l---obl(1'l,2l,5l)---z5l..z5r---obl(5',5r,0l)---z0l..z0r---obl(1''r,0r,6r)---z6r..z6l---obl(1'r,6l,2r)---cycle; |
| 8716 |
penlabels(0,1,1',2,3,4,5,6); labels(1''r,5'); |
| 8717 |
endchar; |
| 8718 |
|
| 8719 |
charscription(11u,x_height,0)( |
| 8720 |
path p[]; numeric tim[]; |
| 8721 |
pos1(stem,0); pos2(stem,0); pos4(stem,0); |
| 8722 |
pos5(n_str_hair,90); pos6(hair,90); |
| 8723 |
lft x1l=2u; x2=x1; rt x3r=w-2u; x3=x4; |
| 8724 |
bot y3=0; top y2= top y4=h; y4=y4'; |
| 8725 |
y1=.25x_height; |
| 8726 |
serifs_tl(2l); serifs_tl(4l); |
| 8727 |
lowercase_points(3,4',jut); |
| 8728 |
y5l=0; x5=.5[x3l,x1r]; |
| 8729 |
x6l=x3l; y6=.4x_height; |
| 8730 |
oblu:=.5f_obl; |
| 8731 |
p1:=z6r{down}..z5r..z1r---obl(2r,1r,2l)---z2l.a..z2l.c---z2l.c+.5hair*right |
| 8732 |
..z2l.b---z1l..z5l..{up}z6l; |
| 8733 |
p2:=z6l---(reverse lowercase_lower_u_serif(3,.5hair))---obl(4r,3f,4l) |
| 8734 |
---z4l.a..z4l.c---z4l.c+.5hair*right..z4l.b; |
| 8735 |
tim0=y3a-like_hair; |
| 8736 |
tim1-7=xpart(subpath(7,length p1) of p1 intersectiontimes ((.5w,tim0)--(w,tim0))); |
| 8737 |
tim2 =xpart(p2 intersectiontimes ((0,tim0)--(x3,tim0))); |
| 8738 |
filldraw subpath(0,tim1) of p1..subpath(rundy(p2,tim2),infinity) of p2---cycle; |
| 8739 |
penlabels(1,2,4,5,6,7); |
| 8740 |
); |
| 8741 |
|
| 8742 |
iff known chars.latin_u: |
| 8743 |
bskchar "The letter u"; |
| 8744 |
beginchar(chars.latin_u,11u#, x_height#, 0); uni "0x0075"; |
| 8745 |
adjust_fit(serif_fit#,serif_fit#); |
| 8746 |
pickup tiny.nib; |
| 8747 |
usechar; |
| 8748 |
endchar; |
| 8749 |
|
| 8750 |
iff known chars.latin_uacute: |
| 8751 |
bskchar "The letter u with acute"; |
| 8752 |
beginchar(chars.latin_uacute,11u#, asc_height#, 0); uni "0x00FA"; |
| 8753 |
adjust_fit(serif_fit#,serif_fit#); |
| 8754 |
pickup tiny.nib; |
| 8755 |
usechar; |
| 8756 |
x101=.5[x2r,x4'a]; |
| 8757 |
acute(100,101); |
| 8758 |
endchar; |
| 8759 |
|
| 8760 |
iff known chars.latin_uring: |
| 8761 |
bskchar "The letter u with ring"; |
| 8762 |
beginchar(chars.latin_uring,11u#, asc_height#, 0); uni "0x016F"; |
| 8763 |
adjust_fit(serif_fit#,serif_fit#); |
| 8764 |
pickup tiny.nib; |
| 8765 |
usechar; |
| 8766 |
x100=.5[x2r,x4'a]; lft x101=x2r; |
| 8767 |
ring(100,101); |
| 8768 |
endchar; |
| 8769 |
|
| 8770 |
iff known chars.latin_uumlaut: |
| 8771 |
bskchar "The letter u with umlaut"; |
| 8772 |
beginchar(chars.latin_uumlaut,11u#, asc_height#-dot_size#, 0); uni "0x00FC"; |
| 8773 |
adjust_fit(serif_fit#,serif_fit#); |
| 8774 |
pickup tiny.nib; |
| 8775 |
usechar; |
| 8776 |
x100=x2; x101=x4l; |
| 8777 |
umlaut(100,101); |
| 8778 |
endchar; |
| 8779 |
|
| 8780 |
iff known chars.latin_ugrave: |
| 8781 |
bskchar "The letter u with grave"; |
| 8782 |
beginchar(chars.latin_ugrave,11u#,asc_height#,0); uni "0x00F9"; |
| 8783 |
adjust_fit(serif_fit#,serif_fit#); |
| 8784 |
pickup tiny.nib; |
| 8785 |
usechar; |
| 8786 |
x101=x5; |
| 8787 |
grave(100,101); |
| 8788 |
endchar; |
| 8789 |
|
| 8790 |
iff known chars.latin_udoublegrave: |
| 8791 |
bskchar "The letter u with double grave"; |
| 8792 |
beginchar(chars.latin_udoublegrave,11u#,asc_height#,0); uni "0x0215"; |
| 8793 |
adjust_fit(serif_fit#,serif_fit#); |
| 8794 |
pickup tiny.nib; |
| 8795 |
usechar; |
| 8796 |
x102-x100=3u; |
| 8797 |
d_grave(100,101,102,103,x5-o); |
| 8798 |
endchar; |
| 8799 |
|
| 8800 |
iff known chars.latin_umacron: |
| 8801 |
bskchar "The letter u with macron"; |
| 8802 |
beginchar(chars.latin_umacron,11u#,.5[asc_height#,x_height#],0); uni "0x016B"; |
| 8803 |
adjust_fit(serif_fit#,serif_fit#); |
| 8804 |
pickup tiny.nib; |
| 8805 |
usechar; |
| 8806 |
x100=x1r; x101=x3l; |
| 8807 |
macron(100,101); |
| 8808 |
endchar; |
| 8809 |
|
| 8810 |
iff known chars.latin_ucaron: |
| 8811 |
bskchar "The letter u with caron"; |
| 8812 |
beginchar(chars.latin_ucaron,11u#,asc_height#,0); uni "0x01D4"; |
| 8813 |
adjust_fit(serif_fit#,serif_fit#); |
| 8814 |
pickup tiny.nib; |
| 8815 |
usechar; |
| 8816 |
x101=x5; |
| 8817 |
hacek(100,101,102); |
| 8818 |
endchar; |
| 8819 |
|
| 8820 |
iff known chars.latin_ucircumflex: |
| 8821 |
bskchar "The letter u with circumflex"; |
| 8822 |
beginchar(chars.latin_ucircumflex,11u#,asc_height#-.1x_height#,0); uni "0x00FB"; |
| 8823 |
adjust_fit(serif_fit#,serif_fit#); |
| 8824 |
pickup tiny.nib; |
| 8825 |
usechar; |
| 8826 |
x101=x5; |
| 8827 |
circumflex(100,101,102); |
| 8828 |
endchar; |
| 8829 |
|
| 8830 |
iff known chars.latin_ubreve: |
| 8831 |
bskchar "The letter u with breve"; |
| 8832 |
beginchar(chars.latin_ubreve,11u#,asc_height#,0); uni "0x016D"; |
| 8833 |
adjust_fit(serif_fit#,serif_fit#); |
| 8834 |
pickup tiny.nib; |
| 8835 |
usechar; |
| 8836 |
x101=x5; x102-x100=5u; |
| 8837 |
breve(100,101,102); |
| 8838 |
endchar; |
| 8839 |
|
| 8840 |
iff known chars.latin_uinvbreve: |
| 8841 |
bskchar "The letter u with inverted breve"; |
| 8842 |
beginchar(chars.latin_uinvbreve,11u#,asc_height#,0); uni "0x0217"; |
| 8843 |
adjust_fit(serif_fit#,serif_fit#); |
| 8844 |
pickup tiny.nib; |
| 8845 |
usechar; |
| 8846 |
x101=x5; x102-x100=5u; |
| 8847 |
tieacc(100,101,102); |
| 8848 |
endchar; |
| 8849 |
|
| 8850 |
iff known chars.latin_uhumlaut: |
| 8851 |
bskchar "The letter u with Hungarian umlaut"; |
| 8852 |
beginchar(chars.latin_uhumlaut,11.3u#,asc_height#,0); uni "0x0171"; |
| 8853 |
italcorr asc_height#*slant-1.5u#; |
| 8854 |
adjust_fit(serif_fit#,serif_fit#); |
| 8855 |
pickup tiny.nib; |
| 8856 |
usechar; |
| 8857 |
x101-x100=3u; .5[x100,x101]=x5+1.5u; |
| 8858 |
h_umlaut(100,101,102,103,2u); |
| 8859 |
endchar; |
| 8860 |
|
| 8861 |
iff known chars.latin_utilde: |
| 8862 |
bskchar "The letter u with tilde"; |
| 8863 |
beginchar(chars.latin_utilde,11u#,asc_height#,0); uni "0x0169"; |
| 8864 |
adjust_fit(serif_fit#,serif_fit#); |
| 8865 |
pickup tiny.nib; |
| 8866 |
usechar; |
| 8867 |
x101-x100=6u; x.tilde=x5-o; |
| 8868 |
tilde(100,101); |
| 8869 |
endchar; |
| 8870 |
|
| 8871 |
iff known chars.latin_u_BB: |
| 8872 |
bskchar "The blackboard-bold letter u"; |
| 8873 |
beginchar(chars.latin_u_BB,11u#, x_height#, 0); uni "0x1D566"; |
| 8874 |
adjust_fit(serif_fit#,serif_fit#); |
| 8875 |
pickup tiny.nib; |
| 8876 |
path p[]; numeric tim[]; |
| 8877 |
save stem; stem:=.8cap_stem; |
| 8878 |
pos1(stem,0); pos2(stem,0); pos4(stem,0); |
| 8879 |
pos5(n_str_hair,90); pos6(hair,90); |
| 8880 |
lft x1l=2u; x2=x1; rt x3r=w-2u; x3=x4; |
| 8881 |
bot y3=0; top y2= top y4=h; y4=y4'; |
| 8882 |
y1=.25x_height; |
| 8883 |
serifs_tl(2l); serifs_tl(4l); |
| 8884 |
lowercase_points(3,4',jut); |
| 8885 |
y5l=0; x5=.5[x3l,x1r]; |
| 8886 |
x6l=x3l; y6=.4x_height; |
| 8887 |
oblu:=.5f_obl; |
| 8888 |
p1:=z6r{down}..z5r..z1r---obl(2r,1r,2l)---z2l.a..z2l.c---z2l.c+.5hair*right |
| 8889 |
..z2l.b---z1l..z5l..{up}z6l; |
| 8890 |
p2:=z6l---(reverse lowercase_lower_u_serif(3,.5hair))---obl(4r,3f,4l) |
| 8891 |
---z4l.a..z4l.c---z4l.c+.5hair*right..z4l.b; |
| 8892 |
tim0=y3a-like_hair; |
| 8893 |
tim1-7=xpart(subpath(7,length p1) of p1 intersectiontimes ((.5w,tim0)--(w,tim0))); |
| 8894 |
tim2 =xpart(p2 intersectiontimes ((0,tim0)--(x3,tim0))); |
| 8895 |
filldraw subpath(0,tim1) of p1..subpath(rundy(p2,tim2),infinity) of p2---cycle; |
| 8896 |
oblu:=2f_obl; oblu.more:=1.25f_obl; |
| 8897 |
bot z101=(x2l,y2l.c); |
| 8898 |
p100:=z1l{down}..z5l..{up}z6l; |
| 8899 |
p101:=z6r{down}..z5r..{up}z1r; |
| 8900 |
z100=bsktouch(p100,up,p101,down); |
| 8901 |
tim100=xpart(p100 intersectiontimes (z100--(x100,y5l-5-u))); |
| 8902 |
tim101=xpart(p101 intersectiontimes (z100--(x100,y1))); |
| 8903 |
infill ifobl(4'r,4'b,3r,3l,more,)---z3a..z3..z3f---cycle; |
| 8904 |
oblu.m:=f_obl; oblu:=bbw; |
| 8905 |
infill ifobl(2r,2l.b,1r,1l,more,) |
| 8906 |
---subpath(0,rundy(p100,tim100).zpet) of p100 |
| 8907 |
..subpath(rundy(p101,tim101),infinity) of p101---cycle; |
| 8908 |
penlabels(1,2,4,5,6,7); labels(100,101); |
| 8909 |
endchar; |
| 8910 |
|
| 8911 |
iff known chars.latin_u_SS: |
| 8912 |
bskchar "The sans-serif letter u"; |
| 8913 |
beginchar(chars.latin_u_SS,11u#, x_height#, 0); uni "0x1D5CE"; |
| 8914 |
adjust_fit(serif_fit#,serif_fit#); |
| 8915 |
pickup tiny.nib; |
| 8916 |
pos1(stem,0); pos2(stem,0); pos4(stem,0); |
| 8917 |
pos5(n_str_hair,90); pos6(hair,90); |
| 8918 |
lft x1l=2u; x2=x1; rt x3r=w-2u; x3=x4; |
| 8919 |
bot y3=0; top y2= top y4=h; y4=y4'; |
| 8920 |
y1=.25x_height; |
| 8921 |
serifs_tl(2l); serifs_tl(4l); |
| 8922 |
lowercase_points(3,4',jut); |
| 8923 |
y5l=0; x5=.5[x3l,x1r]; |
| 8924 |
x6l=x3l; y6=.3x_height; |
| 8925 |
oblu:=.5f_obl; |
| 8926 |
filldraw z6r{down}..z5r..z1r---z2r..z2l.b---z1l..z5l---z3l..z3f---z4r..{down}z4l.b---cycle; |
| 8927 |
penlabels(1,2,4,5,6,7); |
| 8928 |
endchar; |
| 8929 |
|
| 8930 |
iff known chars.latin_uogonek: |
| 8931 |
bskchar "The letter u with ogonek"; |
| 8932 |
beginchar(chars.latin_uogonek,11u#,x_height#,.85desc_depth#); uni "0x0173"; |
| 8933 |
adjust_fit(serif_fit#,serif_fit#); |
| 8934 |
pickup tiny.nib; |
| 8935 |
path p[]; numeric tim[]; |
| 8936 |
pos1(stem,0); pos2(stem,0); pos4(stem,0); |
| 8937 |
pos5(n_str_hair,90); pos6(hair,90); |
| 8938 |
lft x1l=2u; x2=x1; rt x3r=w-2u; x3=x4; |
| 8939 |
bot y3=0; top y2= top y4=h; y4=y4'; |
| 8940 |
y1=.25x_height; |
| 8941 |
serifs_tl(2l); serifs_tl(4l); |
| 8942 |
lowercase_points(3,4',jut); |
| 8943 |
y5l=0; x5=.5[x3l,x1r]; |
| 8944 |
x6l=x3l; y6=.4x_height; |
| 8945 |
pos8(stem,0); pos9(curve,0); pos10(hair,45); pos11(hair,160); |
| 8946 |
x8-x9l=1.5u; x8l=x3l; x10-x9l=3u; rt x11l-x10=1.5u; |
| 8947 |
bot y8=0; y9=-.5d; bot y10l=-d; y11=-2/3d; |
| 8948 |
oblu:=.5f_obl; |
| 8949 |
p1:=z6r{down}..z5r..z1r---obl(2r,1r,2l)---z2l.a..z2l.c---z2l.c+.5hair*right |
| 8950 |
..z2l.b---z1l..z5l..{up}z6l; |
| 8951 |
p2:=z6l---reverse (z3f{down}..{right}z3e..{left}z3d..z8r..z9r..z10r |
| 8952 |
..{z8-z9}z11r..z11l{z9-z8}..z10l..z9l..{z8r-z9l}z8l---z3a) |
| 8953 |
---obl(4r,3f,4l) ---z4l.a..z4l.c---z4l.c+.5hair*right..z4l.b; |
| 8954 |
tim0=y3a-like_hair; |
| 8955 |
tim1-7=xpart(subpath(7,length p1) of p1 intersectiontimes ((.5w,tim0)--(w,tim0))); |
| 8956 |
tim2 =xpart(p2 intersectiontimes ((0,tim0)--(x3,tim0))); |
| 8957 |
filldraw subpath(0,tim1) of p1..subpath(rundy(p2,tim2),infinity) of p2---cycle; |
| 8958 |
penlabels(1,2,4,5,6,7,8,9,10,11); |
| 8959 |
endchar; |
| 8960 |
|
| 8961 |
iff known chars.latin_v: |
| 8962 |
bskchar "The letter v"; |
| 8963 |
beginchar(chars.latin_v,11u#,x_height#,0); uni "0x0076"; |
| 8964 |
italcorr x_height#*slant; |
| 8965 |
adjust_fit(serif_fit#,serif_fit#); |
| 8966 |
numeric alpha, right_stem, left_stem; |
| 8967 |
pickup tiny.nib; |
| 8968 |
lft x1l=2u; rt x2r=w-2u; top y1l=top y2r=h; |
| 8969 |
x3l=.5w; bot y3l=-apex_o; |
| 8970 |
left_stem=stem; |
| 8971 |
right_stem=hair; |
| 8972 |
alpha=diag_ratio(2,left_stem,y1l-y3l,x3l-x1l); |
| 8973 |
pos1(alpha*left_stem,0); pos2(alpha*right_stem,0); |
| 8974 |
pos1'(alpha*left_stem,0); pos2'(alpha*right_stem,0); |
| 8975 |
pos4(.65hair,90); pos5(.65hair,90); |
| 8976 |
z1'l=z3l=z2'r; |
| 8977 |
z3'=whatever[z1'r,z1r]=whatever[z2'l,z2l]; |
| 8978 |
y3'l=y3'r=y3'+.25[hair,stem]; |
| 8979 |
z3'l=whatever[z3',z1r]; z3'r=whatever[z3',z2l]; |
| 8980 |
serifs_tl(1l); serifs_tr(1r); |
| 8981 |
serifs_tr(2r); serifs_tl(2l); |
| 8982 |
filldraw z1l.a{left}..{right}z1l.c..diag_serif(1l,3l)--z3l-- |
| 8983 |
diag_serif(2r,3l)..{right}z2r.c..z2r.a---z2l.a..{right}z2l.c |
| 8984 |
..diag_serif(2l,3')---z3'r..z3'l---diag_serif(1r,3') |
| 8985 |
..z1r.c{right}..z1r.a{left}..z1+serif_bend..{left}cycle; |
| 8986 |
penlabels(1,1',2,2',3,3',4,5,6,7); |
| 8987 |
endchar; |
| 8988 |
|
| 8989 |
iff known chars.latin_v_BB: |
| 8990 |
bskchar "The blackboard-bold letter v"; |
| 8991 |
beginchar(chars.latin_v_BB,11u#,x_height#,0); uni "0x1D567"; |
| 8992 |
italcorr x_height#*slant; |
| 8993 |
adjust_fit(serif_fit#,serif_fit#); |
| 8994 |
numeric alpha, right_stem, left_stem; |
| 8995 |
pickup tiny.nib; |
| 8996 |
lft x1l=2u; rt x2r=w-2u; top y1l=top y2r=h; |
| 8997 |
x3l=.5w; bot y3l=-apex_o; |
| 8998 |
left_stem=.8cap_stem; |
| 8999 |
right_stem=hair; |
| 9000 |
alpha=diag_ratio(2,left_stem,y1l-y3l,x3l-x1l); |
| 9001 |
pos1(alpha*left_stem,0); pos2(alpha*right_stem,0); |
| 9002 |
pos1'(alpha*left_stem,0); pos2'(alpha*right_stem,0); |
| 9003 |
pos4(.65hair,90); pos5(.65hair,90); |
| 9004 |
z1'l=z3l=z2'r; |
| 9005 |
z3'=whatever[z1'r,z1r]=whatever[z2'l,z2l]; |
| 9006 |
y3'l=y3'r=y3'+.25[hair,stem]; |
| 9007 |
z3'l=whatever[z3',z1r]; z3'r=whatever[z3',z2l]; |
| 9008 |
serifs_tl(1l); serifs_tr(1r); |
| 9009 |
serifs_tr(2r); serifs_tl(2l); |
| 9010 |
filldraw z1l.a{left}..{right}z1l.c..diag_serif(1l,3l)--z3l-- |
| 9011 |
diag_serif(2r,3l)..{right}z2r.c..z2r.a---z2l.a..{right}z2l.c |
| 9012 |
..diag_serif(2l,3')---z3'r..z3'l---diag_serif(1r,3') |
| 9013 |
..z1r.c{right}..z1r.a{left}..z1+serif_bend..{left}cycle; |
| 9014 |
oblu:=f_obl; oblu.more:=1.25oblu; |
| 9015 |
infill ifobl(1l,1r,3l,3',more,)---ifobl(3',3l,1r,1l,,)---cycle; |
| 9016 |
penlabels(1,1',2,2',3,3',4,5,6,7); |
| 9017 |
math_fit(0,ic#-2u#); |
| 9018 |
endchar; |
| 9019 |
|
| 9020 |
iff known chars.latin_v_SS: |
| 9021 |
bskchar "The sans-serif letter v"; |
| 9022 |
beginchar(chars.latin_v_SS,11u#,x_height#,0); uni "0x1D5CF"; |
| 9023 |
italcorr x_height#*slant; |
| 9024 |
adjust_fit(serif_fit#,serif_fit#); |
| 9025 |
numeric alpha, right_stem, left_stem; |
| 9026 |
pickup tiny.nib; |
| 9027 |
lft x1l=2u; rt x2r=w-2u; top y1l=top y2r=h; |
| 9028 |
x3l=.5w; bot y3l=-apex_o; |
| 9029 |
left_stem=stem; |
| 9030 |
right_stem=hair; |
| 9031 |
alpha=diag_ratio(2,left_stem,y1l-y3l,x3l-x1l); |
| 9032 |
pos1(alpha*left_stem,0); pos2(alpha*right_stem,0); |
| 9033 |
pos1'(alpha*left_stem,0); pos2'(alpha*right_stem,0); |
| 9034 |
pos4(.65hair,90); pos5(.65hair,90); |
| 9035 |
z1'l=z3l=z2'r; |
| 9036 |
z3'=whatever[z1'r,z1r]=whatever[z2'l,z2l]; |
| 9037 |
y3'l=y3'r=y3'+.25[hair,stem]; |
| 9038 |
z3'l=whatever[z3',z1r]; z3'r=whatever[z3',z2l]; |
| 9039 |
serifs_tl(1l); serifs_tr(1r); |
| 9040 |
serifs_tr(2r); serifs_tl(2l); |
| 9041 |
filldraw diag_serif(1l,3l)---z3l---diag_serif(2r,3l)...z2 |
| 9042 |
...diag_serif(2l,3')---z3'r..z3'l---diag_serif(1r,3')...z1...cycle; |
| 9043 |
penlabels(1,1',2,2',3,3',4,5,6,7); |
| 9044 |
math_fit(0,ic#-1u#); |
| 9045 |
endchar; |
| 9046 |
|
| 9047 |
charscription(14.5u,x_height,0)( |
| 9048 |
numeric alpha[], right_stem, left_stem; |
| 9049 |
oblu:=2oblu; |
| 9050 |
lft x1l=2u; rt x2r=w-2u; top y1l=top y2r=h; |
| 9051 |
x3=.5w if monospace: +.5(stem-hair) fi; |
| 9052 |
top y3=h if monospace and (x2r-x1l<4stem): -1/3(x2r-x1l) else: +o fi; |
| 9053 |
.5[x4,x5]=x3; x5-x4=.35w; |
| 9054 |
bot y4=bot y5=-apex_o; |
| 9055 |
left_stem=stem; |
| 9056 |
right_stem=hair; |
| 9057 |
alpha1=diag_ratio(1,left_stem,y1l-y4,x4-x1l); |
| 9058 |
alpha2=diag_ratio(1,right_stem,y2r-y5,x2r-x5); |
| 9059 |
alpha3=diag_ratio(1,left_stem,y3-y5,x5-x3); |
| 9060 |
alpha4=diag_ratio(1,right_stem,y3-y4,x3-x4); |
| 9061 |
pos1(alpha1*left_stem,0); pos2(alpha2*right_stem,0); |
| 9062 |
serifs_tl(1l); serifs_tr(1r); |
| 9063 |
serifs_tl(2l); serifs_tr(2r); |
| 9064 |
bot y1'=bot y2'=-o; z1'=z1r+whatever*(z1l-z4); z2'=z2l+whatever*(z2r-z5); |
| 9065 |
y5'=y4'=y3; x3-x5'=alpha3*(left_stem-tiny); x4'-x3=alpha4*(right_stem-tiny); |
| 9066 |
z0=whatever[z4,z4']=whatever[z5,z5']; |
| 9067 |
z2''=whatever[z2l,z2']=whatever[z3,z5+(x3-x5')*right]; |
| 9068 |
z1''=whatever[z1r,z1']=whatever[z3,z4+(x4'-x3)*left]; |
| 9069 |
filldraw z1l.a..{right}z1l.c..diag_serif(1l,4)---z4---obl(0,4,5)---z5 |
| 9070 |
---diag_serif(2r,5)..{right}z2r.c..z2r.a---z2l.a..{right}z2l.c |
| 9071 |
..diag_serif(2l,2')---obl(2'',2l,3)---z3---obl(1'',3,1r) |
| 9072 |
---diag_serif(1r,1'')..z1r.c{right}..z1r.a{left}.. |
| 9073 |
z1+serif_bend..{left}cycle; |
| 9074 |
penlabels(1,2,3,4,5,6,7); labels(0,1',1'',2',2'',4',5'); |
| 9075 |
); |
| 9076 |
|
| 9077 |
iff known chars.latin_w: |
| 9078 |
bskchar "The letter w"; |
| 9079 |
beginchar(chars.latin_w,14.5u#,x_height#,0); uni "0x0077"; |
| 9080 |
italcorr x_height#*slant; |
| 9081 |
adjust_fit(serif_fit#,serif_fit#); |
| 9082 |
pickup tiny.nib; |
| 9083 |
usechar; |
| 9084 |
endchar; |
| 9085 |
|
| 9086 |
iff known chars.latin_wcircumflex: |
| 9087 |
bskchar "The letter w with circumflex"; |
| 9088 |
beginchar(chars.latin_wcircumflex,14.5u#,asc_height#-.1x_height#,0); uni "0x0175"; |
| 9089 |
italcorr x_height#*slant; |
| 9090 |
adjust_fit(serif_fit#,serif_fit#); |
| 9091 |
pickup tiny.nib; |
| 9092 |
usechar; |
| 9093 |
x101=x4'+o; |
| 9094 |
circumflex(100,101,102); |
| 9095 |
endchar; |
| 9096 |
|
| 9097 |
iff known chars.latin_wgrave: |
| 9098 |
bskchar "The letter w with grave"; |
| 9099 |
beginchar(chars.latin_wgrave,14.5u#,asc_height#,0); uni "0x1E81"; |
| 9100 |
italcorr x_height#*slant; |
| 9101 |
adjust_fit(serif_fit#,serif_fit#); |
| 9102 |
pickup tiny.nib; |
| 9103 |
usechar; |
| 9104 |
.5[x100,x101]=x4'-u; |
| 9105 |
grave(100,101); |
| 9106 |
endchar; |
| 9107 |
|
| 9108 |
iff known chars.latin_wacute: |
| 9109 |
bskchar "The letter w with acute"; |
| 9110 |
beginchar(chars.latin_wacute,14.5u#,asc_height#,0); uni "0x1E83"; |
| 9111 |
italcorr x_height#*slant; |
| 9112 |
adjust_fit(serif_fit#,serif_fit#); |
| 9113 |
pickup tiny.nib; |
| 9114 |
usechar; |
| 9115 |
.5[x100,x101]=x4'; |
| 9116 |
acute(100,101); |
| 9117 |
endchar; |
| 9118 |
|
| 9119 |
iff known chars.latin_wumlaut: |
| 9120 |
bskchar "The letter w with umlaut"; |
| 9121 |
beginchar(chars.latin_wumlaut,14.5u#,asc_height#-dot_size#,0); uni "0x1E85"; |
| 9122 |
italcorr x_height#*slant; |
| 9123 |
adjust_fit(serif_fit#,serif_fit#); |
| 9124 |
pickup tiny.nib; |
| 9125 |
usechar; |
| 9126 |
x100=x1''; x101=x2''; |
| 9127 |
umlaut(100,101); |
| 9128 |
endchar; |
| 9129 |
|
| 9130 |
iff known chars.latin_w_BB: |
| 9131 |
bskchar "The blackboard-bold letter w"; |
| 9132 |
beginchar(chars.latin_w_BB,14.5u#,x_height#,0); uni "0x1D568"; |
| 9133 |
italcorr x_height#*slant; |
| 9134 |
adjust_fit(serif_fit#,serif_fit#); |
| 9135 |
pickup tiny.nib; |
| 9136 |
numeric alpha[], right_stem, left_stem; |
| 9137 |
oblu:=2oblu; |
| 9138 |
lft x1l=2u; rt x2r=w-2u; top y1l=top y2r=h; |
| 9139 |
x3=.5w if monospace: +.5(stem-hair) fi; |
| 9140 |
top y3=h if monospace and (x2r-x1l<4stem): -1/3(x2r-x1l) else: +o fi; |
| 9141 |
.5[x4,x5]=x3; x5-x4=.35w; |
| 9142 |
bot y4=bot y5=-apex_o; |
| 9143 |
left_stem=.8cap_stem; |
| 9144 |
right_stem=hair; |
| 9145 |
alpha1=diag_ratio(1,left_stem,y1l-y4,x4-x1l); |
| 9146 |
alpha2=diag_ratio(1,right_stem,y2r-y5,x2r-x5); |
| 9147 |
alpha3=diag_ratio(1,left_stem,y3-y5,x5-x3); |
| 9148 |
alpha4=diag_ratio(1,right_stem,y3-y4,x3-x4); |
| 9149 |
pos1(alpha1*left_stem,0); pos2(alpha2*right_stem,0); |
| 9150 |
serifs_tl(1l); serifs_tr(1r); |
| 9151 |
serifs_tl(2l); serifs_tr(2r); |
| 9152 |
bot y1'=bot y2'=-o; z1'=z1r+whatever*(z1l-z4); z2'=z2l+whatever*(z2r-z5); |
| 9153 |
y5'=y4'=y3; x3-x5'=alpha3*(left_stem-tiny); x4'-x3=alpha4*(right_stem-tiny); |
| 9154 |
z0=whatever[z4,z4']=whatever[z5,z5']; |
| 9155 |
z2''=whatever[z2l,z2']=whatever[z3,z5+(x3-x5')*right]; |
| 9156 |
z1''=whatever[z1r,z1']=whatever[z3,z4+(x4'-x3)*left]; |
| 9157 |
filldraw z1l.a..{right}z1l.c..diag_serif(1l,4)---z4---obl(0,4,5)---z5 |
| 9158 |
---diag_serif(2r,5)..{right}z2r.c..z2r.a---z2l.a..{right}z2l.c |
| 9159 |
..diag_serif(2l,2')---obl(2'',2l,3)---z3---obl(1'',3,1r) |
| 9160 |
---diag_serif(1r,1'')..z1r.c{right}..z1r.a{left}.. |
| 9161 |
z1+serif_bend..{left}cycle; |
| 9162 |
oblu:=f_obl; oblu.more:=1.25oblu; oblu.m:=2oblu; |
| 9163 |
infill ifobl(1l,1r,4,1'',more,)---ifobl(1'',4,1r,1l,,)---cycle; |
| 9164 |
infill ifobl(0,3,5,2'',more,m)---ifobl(2'',5,3,0,,)---cycle; |
| 9165 |
penlabels(1,2,3,4,5,6,7); labels(0,1',1'',2',2'',4',5'); |
| 9166 |
math_fit(0,ic#-2u#); |
| 9167 |
endchar; |
| 9168 |
|
| 9169 |
iff known chars.latin_w_SS: |
| 9170 |
bskchar "The sans-serif letter w"; |
| 9171 |
beginchar(chars.latin_w_SS,14.5u#,x_height#,0); uni "0x1D5D0"; |
| 9172 |
italcorr x_height#*slant; |
| 9173 |
adjust_fit(serif_fit#,serif_fit#); |
| 9174 |
pickup tiny.nib; |
| 9175 |
numeric alpha[], right_stem, left_stem; |
| 9176 |
oblu:=2oblu; |
| 9177 |
lft x1l=2u; rt x2r=w-2u; top y1l=top y2r=h; |
| 9178 |
x3=.5w if monospace: +.5(stem-hair) fi; |
| 9179 |
top y3=h if monospace and (x2r-x1l<4stem): -1/3(x2r-x1l) else: +o fi; |
| 9180 |
.5[x4,x5]=x3; x5-x4=.35w; |
| 9181 |
bot y4=bot y5=-apex_o; |
| 9182 |
left_stem=stem; |
| 9183 |
right_stem=hair; |
| 9184 |
alpha1=diag_ratio(1,left_stem,y1l-y4,x4-x1l); |
| 9185 |
alpha2=diag_ratio(1,right_stem,y2r-y5,x2r-x5); |
| 9186 |
alpha3=diag_ratio(1,left_stem,y3-y5,x5-x3); |
| 9187 |
alpha4=diag_ratio(1,right_stem,y3-y4,x3-x4); |
| 9188 |
pos1(alpha1*left_stem,0); pos2(alpha2*right_stem,0); |
| 9189 |
serifs_tl(1l); serifs_tr(1r); |
| 9190 |
serifs_tl(2l); serifs_tr(2r); |
| 9191 |
bot y1'=bot y2'=-o; z1'=z1r+whatever*(z1l-z4); z2'=z2l+whatever*(z2r-z5); |
| 9192 |
y5'=y4'=y3; x3-x5'=alpha3*(left_stem-tiny); x4'-x3=alpha4*(right_stem-tiny); |
| 9193 |
z0=whatever[z4,z4']=whatever[z5,z5']; |
| 9194 |
z2''=whatever[z2l,z2']=whatever[z3,z5+(x3-x5')*right]; |
| 9195 |
z1''=whatever[z1r,z1']=whatever[z3,z4+(x4'-x3)*left]; |
| 9196 |
filldraw diag_serif(1l,4)---z4---obl(0,4,5)---z5---diag_serif(2r,5)...z2 |
| 9197 |
...diag_serif(2l,2')---obl(2'',2l,3)---z3---obl(1'',3,1r) |
| 9198 |
---diag_serif(1r,1'')...z1...cycle; |
| 9199 |
penlabels(1,2,3,4,5,6,7); labels(0,1',1'',2',2'',4',5'); |
| 9200 |
math_fit(0,ic#-1u#); |
| 9201 |
endchar; |
| 9202 |
|
| 9203 |
iff known chars.latin_x: |
| 9204 |
bskchar "The letter x"; |
| 9205 |
beginchar(chars.latin_x,11.5u#,x_height#,0); uni "0x0078"; |
| 9206 |
italcorr x_height#*slant-.25u#; |
| 9207 |
adjust_fit(serif_fit#,serif_fit#); |
| 9208 |
pickup tiny.nib; |
| 9209 |
numeric alpha[]; |
| 9210 |
oblu:=1.5oblu; |
| 9211 |
lft x1l=2.25u; top y1l=h; rt x2r=w-2u; bot y2r=0; |
| 9212 |
x3r=w-x1l; top y3r=h; lft x4l=2u; bot y4l=0; |
| 9213 |
alpha1=diag_ratio(2,stem,y1l-y2r,x1l-x2r); |
| 9214 |
alpha2=diag_ratio(1,hair,y3r-y4l,x3r-x4l); |
| 9215 |
pos1(alpha1*stem,0); pos2(alpha1*stem,0); |
| 9216 |
pos3(alpha2*hair,0); pos4(alpha2*hair,0); |
| 9217 |
serifs_tl(1l); serifs_tr(1r); serifs_bl(2l); serifs_br(2r); |
| 9218 |
serifs_tl(3l); serifs_tr(3r); serifs_bl(4l); serifs_br(4r); |
| 9219 |
z1'=whatever[z1l,z2l]=whatever[z3l,z4l]; |
| 9220 |
z2'=whatever[z1r,z2r]=whatever[z3r,z4r]; |
| 9221 |
z3'=whatever[z1r,z2r]=whatever[z3l,z4l]; |
| 9222 |
z4'=whatever[z1l,z2l]=whatever[z3r,z4r]; |
| 9223 |
filldraw z1l.a..{right}z1l.c..diag_serif(1l,2l)---obl(1',1l,4l) |
| 9224 |
---diag_serif(4l,1')..{left}z4l.c..z4l.a{right}.. |
| 9225 |
z4+ser_boule*up..{right}z4r.a..{left}z4r.c |
| 9226 |
..diag_serif(4r,4')---obl(4',4r,2l)---diag_serif(2l,1l).. |
| 9227 |
{left}z2l.c..z2l.a{right}..z2+ser_boule*up..{right}z2r.a..{left}z2r.c.. |
| 9228 |
diag_serif(2r,1r)---obl(2',2r,3r)---diag_serif(3r,2').. |
| 9229 |
{right}z3r.c..{left}z3r.a..z3..{left}z3l.a..{right}z3l.c.. |
| 9230 |
diag_serif(3l,3')---obl(3',3l,1r)---diag_serif(1r,3').. |
| 9231 |
{right}z1r.c..{left}z1r.a..z1+serif_bend..{left}cycle; |
| 9232 |
penlabels(1,2,3,4,4l.bb); labels(1',2',3',4',5'); |
| 9233 |
endchar; |
| 9234 |
|
| 9235 |
iff known chars.latin_x_BB: |
| 9236 |
bskchar "The blackboard-bold letter x"; |
| 9237 |
beginchar(chars.latin_x_BB,11.5u#,x_height#,0); uni "0x1D569"; |
| 9238 |
italcorr x_height#*slant-.25u#; |
| 9239 |
adjust_fit(serif_fit#,serif_fit#); |
| 9240 |
pickup tiny.nib; |
| 9241 |
save stem; stem:=.8cap_stem; |
| 9242 |
numeric alpha[]; |
| 9243 |
oblu:=1.5oblu; |
| 9244 |
lft x1l=2.25u; top y1l=h; rt x2r=w-2u; bot y2r=0; |
| 9245 |
x3r=w-x1l; top y3r=h; lft x4l=2u; bot y4l=0; |
| 9246 |
alpha1=diag_ratio(2,stem,y1l-y2r,x1l-x2r); |
| 9247 |
alpha2=diag_ratio(1,hair,y3r-y4l,x3r-x4l); |
| 9248 |
pos1(alpha1*stem,0); pos2(alpha1*stem,0); |
| 9249 |
pos3(alpha2*hair,0); pos4(alpha2*hair,0); |
| 9250 |
serifs_tl(1l); serifs_tr(1r); serifs_bl(2l); serifs_br(2r); |
| 9251 |
serifs_tl(3l); serifs_tr(3r); serifs_bl(4l); serifs_br(4r); |
| 9252 |
z1'=whatever[z1l,z2l]=whatever[z3l,z4l]; |
| 9253 |
z2'=whatever[z1r,z2r]=whatever[z3r,z4r]; |
| 9254 |
z3'=whatever[z1r,z2r]=whatever[z3l,z4l]; |
| 9255 |
z4'=whatever[z1l,z2l]=whatever[z3r,z4r]; |
| 9256 |
filldraw z1l.a..{right}z1l.c..diag_serif(1l,2l)---obl(1',1l,4l) |
| 9257 |
---diag_serif(4l,1')..{left}z4l.c..z4l.a{right}.. |
| 9258 |
z4+ser_boule*up..{right}z4r.a..{left}z4r.c |
| 9259 |
..diag_serif(4r,4')---obl(4',4r,2l)---diag_serif(2l,1l).. |
| 9260 |
{left}z2l.c..z2l.a{right}..z2+ser_boule*up..{right}z2r.a..{left}z2r.c.. |
| 9261 |
diag_serif(2r,1r)---obl(2',2r,3r)---diag_serif(3r,2').. |
| 9262 |
{right}z3r.c..{left}z3r.a..z3..{left}z3l.a..{right}z3l.c.. |
| 9263 |
diag_serif(3l,3')---obl(3',3l,1r)---diag_serif(1r,3').. |
| 9264 |
{right}z1r.c..{left}z1r.a..z1+serif_bend..{left}cycle; |
| 9265 |
oblu:=f_obl; oblu.more:=1.25oblu; |
| 9266 |
bot y100=y2r.c; z100=whatever[z2r.bb,z1r]; |
| 9267 |
infill ifobl(1r,1l,2r,2l,,more)---obl(2l,1r,2r)---z2r...obl(100,2r.c,1r)---cycle; |
| 9268 |
penlabels(1,2,3,4,4l.bb); labels(1',2',3',4',5',100); |
| 9269 |
endchar; |
| 9270 |
|
| 9271 |
iff known chars.latin_x_SS: |
| 9272 |
bskchar "The sans-serif letter x"; |
| 9273 |
beginchar(chars.latin_x_SS,11.5u#,x_height#,0); uni "0x1D5D1"; |
| 9274 |
italcorr x_height#*slant-.25u#; |
| 9275 |
adjust_fit(serif_fit#,serif_fit#); |
| 9276 |
pickup tiny.nib; |
| 9277 |
numeric alpha[]; |
| 9278 |
oblu:=1.5oblu; |
| 9279 |
lft x1l=2.25u; top y1l=h; rt x2r=w-2u; bot y2r=0; |
| 9280 |
x3r=w-x1l; top y3r=h; lft x4l=2u; bot y4l=0; |
| 9281 |
alpha1=diag_ratio(2,stem,y1l-y2r,x1l-x2r); |
| 9282 |
alpha2=diag_ratio(1,hair,y3r-y4l,x3r-x4l); |
| 9283 |
pos1(alpha1*stem,0); pos2(alpha1*stem,0); |
| 9284 |
pos3(alpha2*hair,0); pos4(alpha2*hair,0); |
| 9285 |
serifs_tl(1l); serifs_tr(1r); serifs_bl(2l); serifs_br(2r); |
| 9286 |
serifs_tl(3l); serifs_tr(3r); serifs_bl(4l); serifs_br(4r); |
| 9287 |
z1'=whatever[z1l,z2l]=whatever[z3l,z4l]; |
| 9288 |
z2'=whatever[z1r,z2r]=whatever[z3r,z4r]; |
| 9289 |
z3'=whatever[z1r,z2r]=whatever[z3l,z4l]; |
| 9290 |
z4'=whatever[z1l,z2l]=whatever[z3r,z4r]; |
| 9291 |
filldraw diag_serif(1l,2l)---obl(1',1l,4l)---diag_serif(4l,1')...z4 |
| 9292 |
...diag_serif(4r,4')---obl(4',4r,2l)---diag_serif(2l,1l)...z2 |
| 9293 |
...diag_serif(2r,1r)---obl(2',2r,3r)---diag_serif(3r,2')...z3 |
| 9294 |
...diag_serif(3l,3')---obl(3',3l,1r)---diag_serif(1r,3')...z1...cycle; |
| 9295 |
penlabels(1,2,3,4,4l.bb); labels(1',2',3',4',5'); |
| 9296 |
endchar; |
| 9297 |
|
| 9298 |
charscription(11.5u,x_height,desc_depth)( |
| 9299 |
numeric alpha, right_stem, left_stem, tim[]; oblu:=2oblu; |
| 9300 |
path p[]; |
| 9301 |
lft x1l=2u; rt x2r=w-2u; top y1l=top y2r=h; |
| 9302 |
x3l=.52w; bot y3l=-u; |
| 9303 |
left_stem=stem; |
| 9304 |
right_stem=hair; |
| 9305 |
alpha=diag_ratio(2,left_stem,y1l-y3l,x3l-x1l); |
| 9306 |
pos1(alpha*left_stem,0); pos2(alpha*right_stem,0); |
| 9307 |
pos1'(alpha*left_stem,0); pos2'(alpha*right_stem,0); |
| 9308 |
pos4(whatever,0); pos5(dot_size,260); |
| 9309 |
z1'l=z3l=z2'r; |
| 9310 |
z3'=whatever[z1'r,z1r]=whatever[z2'l,z2l]; |
| 9311 |
y3'l=y3'r=y3'+.25[hair,stem]; |
| 9312 |
z3'l=whatever[z3',z1r]; z3'r=whatever[z3',z2l]; |
| 9313 |
serifs_tl(1l); serifs_tr(1r); |
| 9314 |
serifs_tr(2r); serifs_tl(2l); |
| 9315 |
y4=-d+dot_size+hair; z4l=whatever[z2l,z3']; z4r=whatever[z3l,z2r]; |
| 9316 |
y6=y3'l; z6=whatever[z3l,z1l]; |
| 9317 |
bot y5r=-d; x5=x1; rt z5'=(x5-1/3dot_size,y5); if rt x5'<u: x5':=lft u;fi |
| 9318 |
z4'=z3l+(alpha*right_stem-currentbreadth)*unitvector(z1l-z3l); |
| 9319 |
p0=z1l.a{left}..z1l.c{right}..diag_serif(1l,3l)--z4'; |
| 9320 |
p1=z4'--z4l; |
| 9321 |
tim1=xpart(p0 intersectiontimes ((0,y6)--(w,y6))); |
| 9322 |
filldraw subpath(0,rundy(p0,infinity).zpet) of p0..subpath(rundy(p1,0),1) of p1 |
| 9323 |
..{left}z5l..z5'..{right}z5r...z4r---z3l--- |
| 9324 |
diag_serif(2r,3l)..{right}z2r.c..z2r.a---z2l.a..{right}z2l.c |
| 9325 |
..diag_serif(2l,3')---z3'r+oblu*unitvector(z2l-z3'r).. |
| 9326 |
z3'l+.75oblu*unitvector(z1r-z3'l)---diag_serif(1r,3') |
| 9327 |
..z1r.c{right}..z1r.a{left}..z1+serif_bend..{left}cycle; |
| 9328 |
penlabels(1,1',2,2',3,3',4,5); labels(4',6); |
| 9329 |
); |
| 9330 |
|
| 9331 |
iff known chars.latin_y: |
| 9332 |
bskchar "The letter y"; |
| 9333 |
beginchar(chars.latin_y,11.5u#,x_height#,desc_depth#); uni "0x0079"; |
| 9334 |
italcorr x_height#*slant; |
| 9335 |
adjust_fit(serif_fit#,serif_fit#); |
| 9336 |
pickup tiny.nib; |
| 9337 |
usechar; |
| 9338 |
endchar; |
| 9339 |
|
| 9340 |
iff known chars.latin_ygrave: |
| 9341 |
bskchar "The letter y with grave"; |
| 9342 |
beginchar(chars.latin_ygrave,11.5u#,asc_height#,desc_depth#); uni "0x1EF3"; |
| 9343 |
italcorr x_height#*slant; |
| 9344 |
adjust_fit(serif_fit#,serif_fit#); |
| 9345 |
pickup tiny.nib; |
| 9346 |
usechar; |
| 9347 |
x101=.5[x2l.c,x1r.c]; |
| 9348 |
grave(100,101); |
| 9349 |
endchar; |
| 9350 |
|
| 9351 |
iff known chars.latin_yacute: |
| 9352 |
bskchar "The letter y with acute"; |
| 9353 |
beginchar(chars.latin_yacute,11.5u#,asc_height#,desc_depth#); uni "0x00FD"; |
| 9354 |
italcorr x_height#*slant; |
| 9355 |
adjust_fit(serif_fit#,serif_fit#); |
| 9356 |
pickup tiny.nib; |
| 9357 |
usechar; |
| 9358 |
x101=.5[x2l.c,x1r.c]; |
| 9359 |
acute(100,101); |
| 9360 |
endchar; |
| 9361 |
|
| 9362 |
iff known chars.latin_ymacron: |
| 9363 |
bskchar "The letter y with macron"; |
| 9364 |
beginchar(chars.latin_ymacron,11.5u#,.5[asc_height#,x_height#],desc_depth#); uni "0x0233"; |
| 9365 |
italcorr x_height#*slant; |
| 9366 |
adjust_fit(serif_fit#,serif_fit#); |
| 9367 |
pickup tiny.nib; |
| 9368 |
usechar; |
| 9369 |
x100=x1r; x101=x2l; |
| 9370 |
macron(100,101); |
| 9371 |
endchar; |
| 9372 |
|
| 9373 |
iff known chars.latin_yumlaut: |
| 9374 |
bskchar "The letter y with umlaut"; |
| 9375 |
beginchar(chars.latin_yumlaut,11.5u#,asc_height#-dot_size#,desc_depth#); uni "0x00FF"; |
| 9376 |
italcorr x_height#*slant; |
| 9377 |
adjust_fit(serif_fit#,serif_fit#); |
| 9378 |
pickup tiny.nib; |
| 9379 |
usechar; |
| 9380 |
x100=x1r; x101=x2l; |
| 9381 |
umlaut(100,101); |
| 9382 |
endchar; |
| 9383 |
|
| 9384 |
iff known chars.latin_ycircumflex: |
| 9385 |
bskchar "The letter y with circumflex"; |
| 9386 |
beginchar(chars.latin_ycircumflex,11.5u#,asc_height#-.1x_height#,desc_depth#); uni "0x0177"; |
| 9387 |
italcorr x_height#*slant; |
| 9388 |
adjust_fit(serif_fit#,serif_fit#); |
| 9389 |
pickup tiny.nib; |
| 9390 |
usechar; |
| 9391 |
numeric oblu; oblu:=hair; |
| 9392 |
x101=x3'; |
| 9393 |
circumflex(100,101,102); |
| 9394 |
endchar; |
| 9395 |
|
| 9396 |
iff known chars.latin_y_BB: |
| 9397 |
bskchar "The blackboard-bold letter y"; |
| 9398 |
beginchar(chars.latin_y_BB,11.5u#,x_height#,desc_depth#); uni "0x1D56A"; |
| 9399 |
italcorr x_height#*slant; |
| 9400 |
adjust_fit(serif_fit#,serif_fit#); |
| 9401 |
pickup tiny.nib; |
| 9402 |
numeric alpha, right_stem, left_stem, tim[]; oblu:=2oblu; |
| 9403 |
path p[]; |
| 9404 |
lft x1l=2u; rt x2r=w-2u; top y1l=top y2r=h; |
| 9405 |
x3l=.52w; bot y3l=-u; |
| 9406 |
left_stem=.8cap_stem; |
| 9407 |
right_stem=hair; |
| 9408 |
alpha=diag_ratio(2,left_stem,y1l-y3l,x3l-x1l); |
| 9409 |
pos1(alpha*left_stem,0); pos2(alpha*right_stem,0); |
| 9410 |
pos1'(alpha*left_stem,0); pos2'(alpha*right_stem,0); |
| 9411 |
pos4(whatever,0); pos5(dot_size,260); |
| 9412 |
z1'l=z3l=z2'r; |
| 9413 |
z3'=whatever[z1'r,z1r]=whatever[z2'l,z2l]; |
| 9414 |
y3'l=y3'r=y3'+.25[hair,stem]; |
| 9415 |
z3'l=whatever[z3',z1r]; z3'r=whatever[z3',z2l]; |
| 9416 |
serifs_tl(1l); serifs_tr(1r); |
| 9417 |
serifs_tr(2r); serifs_tl(2l); |
| 9418 |
y4=-d+dot_size+hair; z4l=whatever[z2l,z3']; z4r=whatever[z3l,z2r]; |
| 9419 |
y6=y3'l; z6=whatever[z3l,z1l]; |
| 9420 |
bot y5r=-d; x5=x1; rt z5'=(x5-1/3dot_size,y5); if rt x5'<u: x5':=lft u;fi |
| 9421 |
z4'=z3l+(alpha*right_stem-currentbreadth)*unitvector(z1l-z3l); |
| 9422 |
p0=z1l.a{left}..z1l.c{right}..diag_serif(1l,3l)--z4'; |
| 9423 |
p1=z4'--z4l; |
| 9424 |
tim1=xpart(p0 intersectiontimes ((0,y6)--(w,y6))); |
| 9425 |
filldraw subpath(0,rundy(p0,infinity).zpet) of p0..subpath(rundy(p1,0),1) of p1 |
| 9426 |
..{left}z5l..z5'..{right}z5r...z4r---z3l--- |
| 9427 |
diag_serif(2r,3l)..{right}z2r.c..z2r.a---z2l.a..{right}z2l.c |
| 9428 |
..diag_serif(2l,3')---z3'r+oblu*unitvector(z2l-z3'r).. |
| 9429 |
z3'l+.75oblu*unitvector(z1r-z3'l)---diag_serif(1r,3') |
| 9430 |
..z1r.c{right}..z1r.a{left}..z1+serif_bend..{left}cycle; |
| 9431 |
oblu:=f_obl; oblu.more:=1.25oblu; |
| 9432 |
infill ifobl(1l,1r,4',3',more,)---ifobl(3',4',1r,1l,,)---cycle; |
| 9433 |
penlabels(1,1',2,2',3,3',4,5); labels(4',6); |
| 9434 |
math_fit(0,ic#-2u#); |
| 9435 |
endchar; |
| 9436 |
|
| 9437 |
iff known chars.latin_y_SS: |
| 9438 |
bskchar "The sans-serif letter y"; |
| 9439 |
beginchar(chars.latin_y_SS,11.5u#,x_height#,desc_depth#); uni "0x1D5D2"; |
| 9440 |
italcorr x_height#*slant; |
| 9441 |
adjust_fit(serif_fit#,serif_fit#); |
| 9442 |
pickup tiny.nib; |
| 9443 |
numeric alpha, right_stem, left_stem, tim[]; oblu:=2oblu; |
| 9444 |
path p[]; |
| 9445 |
lft x1l=2u; rt x2r=w-2u; top y1l=top y2r=h; |
| 9446 |
x3l=.52w; bot y3l=-u; |
| 9447 |
left_stem=stem; |
| 9448 |
right_stem=hair; |
| 9449 |
alpha=diag_ratio(2,left_stem,y1l-y3l,x3l-x1l); |
| 9450 |
pos1(alpha*left_stem,0); pos2(alpha*right_stem,0); |
| 9451 |
pos1'(alpha*left_stem,0); pos2'(alpha*right_stem,0); |
| 9452 |
pos4(whatever,0); pos5(stem,260); |
| 9453 |
z1'l=z3l=z2'r; |
| 9454 |
z3'=whatever[z1'r,z1r]=whatever[z2'l,z2l]; |
| 9455 |
y3'l=y3'r=y3'+.25[hair,stem]; |
| 9456 |
z3'l=whatever[z3',z1r]; z3'r=whatever[z3',z2l]; |
| 9457 |
serifs_tl(1l); serifs_tr(1r); |
| 9458 |
serifs_tr(2r); serifs_tl(2l); |
| 9459 |
y4=-d+dot_size+hair; z4l=whatever[z2l,z3']; z4r=whatever[z3l,z2r]; |
| 9460 |
y6=y3'l; z6=whatever[z3l,z1l]; |
| 9461 |
bot y5r=-d; x5=x1; rt z5'=(x5-1/3dot_size,y5); if rt x5'<u: x5':=lft u;fi |
| 9462 |
z4'=z3l+(alpha*right_stem-currentbreadth)*unitvector(z1l-z3l); |
| 9463 |
p0=diag_serif(1l,3l)--z4'; |
| 9464 |
p1=z4'--z4l; |
| 9465 |
tim1=xpart(p0 intersectiontimes ((0,y6)--(w,y6))); |
| 9466 |
filldraw subpath(0,rundy(p0,infinity).zpet) of p0..subpath(rundy(p1,0),1) of p1 |
| 9467 |
..{left}z5l..z5'..{right}z5r...z4r---z3l--- |
| 9468 |
diag_serif(2r,3l)...z2 |
| 9469 |
...diag_serif(2l,3')---z3'r+oblu*unitvector(z2l-z3'r).. |
| 9470 |
z3'l+.75oblu*unitvector(z1r-z3'l)---diag_serif(1r,3') |
| 9471 |
...z1...cycle; |
| 9472 |
penlabels(1,1',2,2',3,3',4,5); labels(4',6); |
| 9473 |
math_fit(0,ic#-1u#); |
| 9474 |
endchar; |
| 9475 |
|
| 9476 |
charscription(9u,x_height,0)( |
| 9477 |
oblu:=2oblu; |
| 9478 |
numeric alpha; |
| 9479 |
lft x1l=u; bot y1l=0; rt x2r=w-u; top y2r=h; |
| 9480 |
x2r-x2l=x1r-x1l; |
| 9481 |
alpha=diag_ratio(2,stem,y2r-y1l,x2r-x1l); |
| 9482 |
pos1(alpha*stem,0); pos2(alpha*stem,0); |
| 9483 |
pos3(.5beak,80); pos4(.6beak,80); |
| 9484 |
z3a=z3r+hair*right; z3b=z3r+(stem,-hair+currentbreadth); |
| 9485 |
x3l=1.3u; top y3r=h; z3c=z3l+(hair-currentbreadth)*dir(angle(z3l-z3)+90); |
| 9486 |
y2'=y2-hair+currentbreadth; z2'=whatever[z2l,z1l]; |
| 9487 |
y1'=y1+hair-currentbreadth; z1'=whatever[z2r,z1r]; |
| 9488 |
bot y4l=0; x4r=w-u; z4b=z4r+(hair-currentbreadth)*dir(angle(z4l-z4)-90); |
| 9489 |
y4a=y4l+hair-currentbreadth; x4a=.5w; |
| 9490 |
filldraw z2r---z3a..z3r---z3l..z3c{dir80}..z3b---obl(2',3b,1l)---z1l---z4l |
| 9491 |
---z4r..{down}z4b...if not bold_face: z4a--- else: {left}fi obl(1',4a,2r)---cycle; |
| 9492 |
penlabels(1,2,3,4); labels(1',2',3a,3b,3c,4a,4b,4c); |
| 9493 |
); |
| 9494 |
|
| 9495 |
iff known chars.latin_z: |
| 9496 |
bskchar "The letter z"; |
| 9497 |
beginchar(chars.latin_z,9u#,x_height#,0); uni "0x007A"; |
| 9498 |
italcorr x_height#*slant-.25u#; |
| 9499 |
adjust_fit(0,0); |
| 9500 |
pickup tiny.nib; |
| 9501 |
usechar; |
| 9502 |
endchar; |
| 9503 |
|
| 9504 |
iff known chars.latin_zcaron: |
| 9505 |
bskchar "The letter z with caron"; |
| 9506 |
beginchar(chars.latin_zcaron,9u#,asc_height#,0); uni "0x017E"; |
| 9507 |
italcorr asc_height#*slant-.5u#; |
| 9508 |
adjust_fit(0,0); |
| 9509 |
pickup tiny.nib; |
| 9510 |
usechar; |
| 9511 |
x101=.5[x3r,x2r]; |
| 9512 |
hacek(100,101,102); |
| 9513 |
endchar; |
| 9514 |
|
| 9515 |
iff known chars.latin_zdotabove: |
| 9516 |
bskchar "The letter z with dot above"; |
| 9517 |
beginchar(chars.latin_zdotabove,9u#,asc_height#-.5dot_size#,0); uni "0x017C"; |
| 9518 |
italcorr x_height#*slant-.25u#; |
| 9519 |
adjust_fit(0,0); |
| 9520 |
pickup tiny.nib; |
| 9521 |
usechar; |
| 9522 |
x100=.5[x3r,x2r]; |
| 9523 |
dotabove(100); |
| 9524 |
endchar; |
| 9525 |
|
| 9526 |
iff known chars.latin_zacute: |
| 9527 |
bskchar "The letter z with acute"; |
| 9528 |
beginchar(chars.latin_zacute,9u#,asc_height#,0); uni "0x017A"; |
| 9529 |
italcorr x_height#*slant-.25u#; |
| 9530 |
adjust_fit(0,0); |
| 9531 |
pickup tiny.nib; |
| 9532 |
usechar; |
| 9533 |
.25[x101,x100]=.5[x3r,x2r]; |
| 9534 |
acute(100,101); |
| 9535 |
endchar; |
| 9536 |
|
| 9537 |
iff known chars.latin_z_BB: |
| 9538 |
bskchar "The blackboard-bold letter z"; |
| 9539 |
beginchar(chars.latin_z_BB,9u#,x_height#,0); uni "0x1D56B"; |
| 9540 |
italcorr x_height#*slant-.25u#; |
| 9541 |
adjust_fit(0,0); |
| 9542 |
pickup tiny.nib; |
| 9543 |
oblu:=2oblu; |
| 9544 |
numeric alpha; |
| 9545 |
lft x1l=u; bot y1l=0; rt x2r=w-u; top y2r=h; |
| 9546 |
x2r-x2l=x1r-x1l; |
| 9547 |
alpha=diag_ratio(2,.8cap_stem,y2r-y1l,x2r-x1l); |
| 9548 |
pos1(alpha*.8cap_stem,0); pos2(alpha*.8cap_stem,0); |
| 9549 |
pos3(.5beak,80); pos4(.6beak,80); |
| 9550 |
z3a=z3r+hair*right; z3b=z3r+(stem,-hair+currentbreadth); |
| 9551 |
x3l=1.3u; top y3r=h; z3c=z3l+(hair-currentbreadth)*dir(angle(z3l-z3)+90); |
| 9552 |
y2'=y2-hair+currentbreadth; z2'=whatever[z2l,z1l]; |
| 9553 |
y1'=y1+hair-currentbreadth; z1'=whatever[z2r,z1r]; |
| 9554 |
bot y4l=0; x4r=w-u; z4b=z4r+(hair-currentbreadth)*dir(angle(z4l-z4)-90); |
| 9555 |
y4a=y4l+hair-currentbreadth; x4a=.5w; |
| 9556 |
filldraw z2r---z3a..z3r---z3l..z3c{dir80}..z3b---obl(2',3b,1l)---z1l---z4l |
| 9557 |
---z4r..{down}z4b...if not bold_face: z4a--- else: {left}fi obl(1',4a,2r)---cycle; |
| 9558 |
oblu:=f_obl; oblu.more:=2oblu; |
| 9559 |
infill ifobl(2l,2r,1l,1r,,more)---ifobl(1',1l,2r,2l,,)---cycle; |
| 9560 |
penlabels(1,2,3,4); labels(1',2',3a,3b,3c,4a,4b,4c); |
| 9561 |
endchar; |
| 9562 |
|
| 9563 |
iff known chars.latin_z_SS: |
| 9564 |
bskchar "The sans-serif letter z"; |
| 9565 |
beginchar(chars.latin_z_SS,9u#,x_height#,0); uni "0x1D5D3"; |
| 9566 |
italcorr x_height#*slant-.25u#; |
| 9567 |
adjust_fit(0,0); |
| 9568 |
pickup tiny.nib; |
| 9569 |
oblu:=2oblu; |
| 9570 |
numeric alpha; |
| 9571 |
lft x1l=u; bot y1l=0; rt x2r=w-u; top y2r=h; |
| 9572 |
x2r-x2l=x1r-x1l; |
| 9573 |
alpha=diag_ratio(2,stem,y2r-y1l,x2r-x1l); |
| 9574 |
pos1(alpha*stem,0); pos2(alpha*stem,0); |
| 9575 |
pos3(hair,90); pos4(hair,90); |
| 9576 |
x3l=1.3u; top y3r=h; |
| 9577 |
y2'=y2-hair+currentbreadth; z2'=whatever[z2l,z1l]; |
| 9578 |
y1'=y1+hair-currentbreadth; z1'=whatever[z2r,z1r]; |
| 9579 |
bot y4l=0; x4r=w-u; |
| 9580 |
filldraw z2r---z3r+stem*right...z3...z3l+stem*right---obl(2',3l,1l)---z1l |
| 9581 |
---z4l+stem*left...z4...z4r+stem*left---obl(1',4r,2r)---cycle; |
| 9582 |
penlabels(1,2,3,4); labels(1',2'); |
| 9583 |
endchar; |
| 9584 |
|
| 9585 |
bskboundary; |
| 9586 |
|
| 9587 |
skal:=.5; |
| 9588 |
charscription(figwu(if medieval: 9.5u else: 11u fi),medfigu,0)( |
| 9589 |
numeric sair; sair=if medieval: vair else: hair fi; |
| 9590 |
pos1(curve,0); pos2(sair,90); pos3(curve,180); pos4(sair,270); |
| 9591 |
lft x1l=u; rt x3l=w-u; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2-x4=0; bot y2l=-o; top y4l=h+o; |
| 9592 |
filldraw z1l{down}..z2l..z3l..z4l..{down}cycle; |
| 9593 |
infill z1r{up}..z4r..z3r..z2r..{up}cycle; |
| 9594 |
penlabels(1,2,3,4); |
| 9595 |
); |
| 9596 |
|
| 9597 |
iff known chars.numeral_zero: |
| 9598 |
bskchar "The numeral 0"; |
| 9599 |
beginchar(chars.numeral_zero,figw(if medieval: 9.5u else: 11u fi),medfig,0); uni "0x0030"; |
| 9600 |
italcorr .5h#*slant-.25u#; |
| 9601 |
adjust_fit(0,0); |
| 9602 |
pickup tiny.nib; |
| 9603 |
usechar; |
| 9604 |
endchar; |
| 9605 |
|
| 9606 |
iff known chars.superscript_numeral_zero: |
| 9607 |
bskchar "The superscript numeral 0"; |
| 9608 |
beginchar(chars.superscript_numeral_zero,if monofig: 5.5u# else: if medieval: 5.75u# else:6.5u#fi fi,asc_height#,0); uni "0x2070"; |
| 9609 |
italcorr (asc_height#-x_height#)*slant; |
| 9610 |
adjust_fit(0,0); |
| 9611 |
pickup tiny.nib; |
| 9612 |
multiply(1.7skal)(curve,hair,vair); |
| 9613 |
usechar shifted (-x1l,0) scaled skal shifted (u+(HH-skal*fig_height)*slant,HH-skal*fig_height); |
| 9614 |
endchar; |
| 9615 |
|
| 9616 |
iff known chars.numeral_zero_BB: |
| 9617 |
bskchar "The blackboard-bold numeral 0"; |
| 9618 |
beginchar(chars.numeral_zero_BB,figw(if medieval: 9.5u else: 11u fi),medfig,0); uni "0x1D7D8"; |
| 9619 |
italcorr .5h#*slant-.25u#; |
| 9620 |
adjust_fit(0,0); |
| 9621 |
pickup tiny.nib; |
| 9622 |
numeric sair; sair=if medieval: vair else: hair fi; |
| 9623 |
pos1(cap_stem,0); pos2(sair,90); pos3(cap_stem,180); pos4(sair,270); |
| 9624 |
lft x1l=u; rt x3l=w-u; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2-x4=0; bot y2l=-o; top y4r=h+o; |
| 9625 |
filldraw z1l{down}..z2l..z3l..z4l..{down}cycle; |
| 9626 |
infill z1r{up}..z4r..z3r..z2r..{up}cycle; |
| 9627 |
path p[]; numeric tim[]; |
| 9628 |
p100:=z4r..z1r{down}..z2r..z3r..cycle; |
| 9629 |
p101:=reverse z4l..z1l{down}..z2l..z3l..cycle; |
| 9630 |
oblu:=1.25bbw; |
| 9631 |
z100=bsktouch(subpath(0,1) of p100,up,p101,down); |
| 9632 |
z101=bsktouch(subpath(1,2) of p100,down,p101,up); |
| 9633 |
z102=bsktouch(subpath(3,4) of p100,up,p101,down); |
| 9634 |
z103=bsktouch(subpath(2,3) of p100,down,p101,up); |
| 9635 |
tim100=xpart(p100 intersectiontimes (z100--(x100,y1))); |
| 9636 |
tim101=xpart(p101 intersectiontimes (z100--(x100,y4l+5))); |
| 9637 |
tim102=xpart(p100 intersectiontimes (z101--(x101,y1))); |
| 9638 |
tim103=xpart(p101 intersectiontimes (z101--(x101,y2l-5))); |
| 9639 |
tim104=xpart(p100 intersectiontimes (z102--(x102,y1))); |
| 9640 |
tim105=xpart(p101 intersectiontimes (z102--(x102,y4l+5))); |
| 9641 |
tim106=xpart(p100 intersectiontimes (z103--(x103,y1))); |
| 9642 |
tim107=xpart(p101 intersectiontimes (z103--(x103,y2l-5))); |
| 9643 |
infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100 |
| 9644 |
..subpath(rundy(p101,tim103).zpet,rundy(p101,tim101)) of p101..cycle; |
| 9645 |
infill subpath(rundy(p100,tim104).zpet,rundy(p100,tim106)) of p100 |
| 9646 |
..subpath(rundy(p101,tim107),rundy(p101,tim105).zpet) of p101..cycle; |
| 9647 |
labels(100,101,102,103); |
| 9648 |
penlabels(1,2,3,4); |
| 9649 |
endchar; |
| 9650 |
|
| 9651 |
iff known chars.numeral_zero_SS: |
| 9652 |
bskchar "The sans-serif numeral 0"; |
| 9653 |
beginchar(chars.numeral_zero_SS,figw(if medieval: 9.5u else: 11u fi),medfig,0); uni "0x1D7E2"; |
| 9654 |
italcorr .5h#*slant-.25u#; |
| 9655 |
adjust_fit(0,0); |
| 9656 |
pickup tiny.nib; |
| 9657 |
pos1(curve,0); pos2(hair,90); pos3(curve,180); pos4(hair,270); |
| 9658 |
lft x1l=u; rt x3l=w-u; y1=y3=.5h; .5[x2,x4]=.5[x1,x3]; x2-x4=0; bot y2l=-o; top y4l=h+o; |
| 9659 |
filldraw z1l{down}..z2l..z3l..z4l..{down}cycle; |
| 9660 |
infill z1r{up}..z4r..z3r..z2r..{up}cycle; |
| 9661 |
penlabels(1,2,3,4); |
| 9662 |
endchar; |
| 9663 |
|
| 9664 |
charscription(figwu(if medieval: 9.5u else: 11u fi),medfigu,0)( |
| 9665 |
path p; |
| 9666 |
numeric sair; sair=if medieval: vair else: hair fi; |
| 9667 |
pos1(curve,0); pos2(sair,90); pos3(curve,180); pos4(sair,270); |
| 9668 |
lft x1l=u; rt x3l=w-u; y1=y3=y0=.5h; .5[x2,x4]=.5[x1,x3]=x0; x2-x4=0; bot y2l=-o; top y4r=h+o; |
| 9669 |
p:=z1r{up}..z4r..z3r..z2r..{up}cycle; |
| 9670 |
z5=p intersectionpoint ((x0,.25[y4r,y3])--(w,.25[y4r,y3])); z6=z5+stem*unitvector(z0-z5); .5[z6,z7]=z0; |
| 9671 |
pos6(hair,angle(z7-z6)+90); pos7(hair,angle(z7-z6)+90); |
| 9672 |
filldraw z1l{down}..z2l..z3l..z4l..{down}cycle; |
| 9673 |
infill p; |
| 9674 |
filldraw bskrule(6,7,hair,hair); |
| 9675 |
penlabels(0,1,2,3,4,5,6,7); |
| 9676 |
); |
| 9677 |
|
| 9678 |
iff known chars.numeral_zero_slash: |
| 9679 |
bskchar "The numeral 0 with slash"; |
| 9680 |
beginchar(chars.numeral_zero_slash,figw(if medieval: 9.5u else: 11u fi),medfig,0); uni "non"; |
| 9681 |
italcorr .5h#*slant-.25u#; |
| 9682 |
adjust_fit(0,0); |
| 9683 |
pickup tiny.nib; |
| 9684 |
usechar; |
| 9685 |
endchar; |
| 9686 |
|
| 9687 |
iff known chars.superscript_numeral_zero_slash: |
| 9688 |
bskchar "The superscript numeral 0 with slash"; |
| 9689 |
beginchar(chars.superscript_numeral_zero_slash,if monofig: 5.5u# else: if medieval: 5.75u# else:6.5u#fi fi,asc_height#,0); uni "non"; |
| 9690 |
italcorr (asc_height#-x_height#)*slant; |
| 9691 |
adjust_fit(0,0); |
| 9692 |
pickup tiny.nib; |
| 9693 |
multiply(1.7skal)(curve,hair,vair); |
| 9694 |
usechar shifted (-x1l,0) scaled skal shifted (u+(HH-skal*fig_height)*slant,HH-skal*fig_height); |
| 9695 |
endchar; |
| 9696 |
|
| 9697 |
charscription(figwu(8u),medfigu,0)( |
| 9698 |
pos1(dig_stem,0); pos2(dig_stem,0); |
| 9699 |
pos3(hair,90); |
| 9700 |
oblu:=f_obl; |
| 9701 |
x1=.5w; bot y1=0; x2=x1; top y2=h; |
| 9702 |
lft x3=u; x4=x1l; |
| 9703 |
if medieval: |
| 9704 |
y3=y2-if monofig: 1.5 \\fi hair; y4=y3-.5o; |
| 9705 |
filldraw one_serif(1)---z2r--z2{dir200}..{left}z3r..z3l---obl(4,3l,1l)--cycle; |
| 9706 |
else: |
| 9707 |
y3=.9h-o; y4=y3+o; |
| 9708 |
path p[]; p1=z3l{right}..z4; p0=z4---one_serif(1); |
| 9709 |
filldraw subpath(rundy(p0,0),infinity) of p0---z2r{dir200}..{left}z3r.. |
| 9710 |
subpath(0,rundy(p1,1).zpet) of p1..cycle; |
| 9711 |
fi |
| 9712 |
penlabels(1,2,3); labels(4); |
| 9713 |
); |
| 9714 |
|
| 9715 |
let _saved_char_one=_saved_char; |
| 9716 |
numeric _saved_w_one; _saved_w_one:=_saved_w; |
| 9717 |
|
| 9718 |
iff known chars.numeral_one: |
| 9719 |
bskchar "The numeral 1"; |
| 9720 |
beginchar(chars.numeral_one,figw(8u),medfig,0); uni "0x0031"; |
| 9721 |
adjust_fit(0,serif_fit#); |
| 9722 |
pickup tiny.nib; |
| 9723 |
usechar; |
| 9724 |
endchar; |
| 9725 |
|
| 9726 |
iff known chars.superscript_numeral_one: |
| 9727 |
bskchar "The superscript numeral 1"; |
| 9728 |
beginchar(chars.superscript_numeral_one,if monofig: 5.5u# else: 5u# fi,asc_height#,0); uni "0x00B9"; |
| 9729 |
adjust_fit(0,0); |
| 9730 |
pickup tiny.nib; |
| 9731 |
multiply(1.7skal)(curve,hair,vair,serif_o,dig_stem); |
| 9732 |
usechar shifted (-x3,0) scaled skal shifted (u+(HH-skal*fig_height)*slant,HH-skal*fig_height); |
| 9733 |
endchar; |
| 9734 |
|
| 9735 |
iff known chars.numeral_one_BB: |
| 9736 |
bskchar "The blackboard-bold numeral 1"; |
| 9737 |
beginchar(chars.numeral_one_BB,figw(8u),medfig,0); uni "0x1D7D9"; |
| 9738 |
adjust_fit(0,serif_fit#); |
| 9739 |
pickup tiny.nib; |
| 9740 |
pos1(cap_stem,0); pos2(cap_stem,0); |
| 9741 |
pos3(hair,90); |
| 9742 |
oblu:=f_obl; |
| 9743 |
x1=.5w; bot y1=0; x2=x1; top y2=h; |
| 9744 |
lft x3=u; x4=x1l; |
| 9745 |
if medieval: |
| 9746 |
y3=y2-if monofig: 1.5 \\fi hair; y4=y3-.5o; |
| 9747 |
filldraw one_serif(1)---z2r--z2{dir200}..{left}z3r..z3l---obl(4,3l,1l)--cycle; |
| 9748 |
else: |
| 9749 |
y3=.9h-o; y4=y3+o; |
| 9750 |
path p[]; p1=z3l{right}..z4; p0=z4---one_serif(1); |
| 9751 |
filldraw subpath(rundy(p0,0),infinity) of p0---z2r{dir200}..{left}z3r.. |
| 9752 |
subpath(0,rundy(p1,1).zpet) of p1..cycle; |
| 9753 |
fi |
| 9754 |
bot z100=(x1l,y1f); |
| 9755 |
infill ifobl(4,2r,1l,1r,,)---obl(1r,2r,1l)---z1l...obl(100,1f,2l)---cycle; |
| 9756 |
penlabels(1,2,3); labels(4); |
| 9757 |
endchar; |
| 9758 |
|
| 9759 |
iff known chars.numeral_one_SS: |
| 9760 |
bskchar "The sans-serif numeral 1"; |
| 9761 |
beginchar(chars.numeral_one_SS,figw(8u),medfig,0); uni "0x1D7E3"; |
| 9762 |
adjust_fit(0,serif_fit#-1.5u#); |
| 9763 |
pickup tiny.nib; |
| 9764 |
pos1(stem,0); pos2(stem,0); |
| 9765 |
pos3(hair,90); |
| 9766 |
oblu:=f_obl; |
| 9767 |
x1=.5w; bot y1=0; x2=x1; top y2=h; |
| 9768 |
lft x3=u; x4=x1l; |
| 9769 |
y3=y2-hair; y4=y3-.5o; z1a=z1l+.75u*up; z1b=z1r+.75u*up; |
| 9770 |
filldraw z1a..z1..z1b---z2r--z2{dir200}..{left}z3r..z3l---obl(4,3l,1l)---cycle; |
| 9771 |
penlabels(1,2,3); labels(4); |
| 9772 |
endchar; |
| 9773 |
|
| 9774 |
charscription(figwu(if medieval: 9u else: 10u fi),medfigu,0)( |
| 9775 |
path p[]; oblu:=3f_obl; |
| 9776 |
pos1(.45[hair,stem],180); pos2(hair,90); pos3(curve,0); pos0(vair,-60); |
| 9777 |
lft x1r=u; y1=2/3h+hair; top y2r=h+o; x2=.5w-hair; y0l=y1-2hair; x0=.35[x2,x1]; |
| 9778 |
rt x3r=w-if medieval:1.5\\ fi u; y3=2/3h; lft x4l=u; bot y4l=0; |
| 9779 |
rt x8=w-u; y8=stem-tiny; y7=-hair; z7=z8+whatever*dir-135; |
| 9780 |
x6=x7-hair; bot y6=0; |
| 9781 |
p0:=z4l{dir if medieval: 40 else:20 fi}..{up}z3l; |
| 9782 |
z4r=(((0,y8)--(w,y8)) intersectionpoint p0)+vair*right; |
| 9783 |
p1:=z3r{down}..{dir-140}z4r; |
| 9784 |
p2=z4r--z8; |
| 9785 |
filldraw p0..z2l{left}..z1l..{dir60}z0l..{dir-120}z0r..z1r..{right}z2r.. |
| 9786 |
subpath(0,rundy(p1,(1,curve)).zpet) of p1..subpath(rundy(p2,(0,curve)),infinity) of p2&z8 |
| 9787 |
..{dir(angle(z7-z8)+15)}z7+.25vair*right..z7{up}..z6---cycle; |
| 9788 |
penlabels(0,1,2,3,4); labels(6,7,8); |
| 9789 |
); |
| 9790 |
|
| 9791 |
iff known chars.numeral_two: |
| 9792 |
bskchar "The numeral 2"; |
| 9793 |
beginchar(chars.numeral_two,figw(if medieval: 9u else: 10u fi),medfig,0); uni "0x0032"; |
| 9794 |
italcorr 2/3h#*slant-.75u#; |
| 9795 |
adjust_fit(0,0); |
| 9796 |
pickup tiny.nib; |
| 9797 |
usechar; |
| 9798 |
endchar; |
| 9799 |
|
| 9800 |
iff known chars.superscript_numeral_two: |
| 9801 |
bskchar "The superscript numeral 2"; |
| 9802 |
beginchar(chars.superscript_numeral_two,if monofig: 5.5u# else: if medieval: 5.5u# else: 6u# fi fi,asc_height#,0); uni "0x00B2"; |
| 9803 |
adjust_fit(0,0); |
| 9804 |
pickup tiny.nib; |
| 9805 |
multiply(1.7skal)(curve,hair,vair); |
| 9806 |
usechar shifted (-x1r,0) scaled skal shifted (u+(HH-skal*fig_height)*slant,HH-skal*fig_height); |
| 9807 |
endchar; |
| 9808 |
|
| 9809 |
iff known chars.fraction_one_half: |
| 9810 |
bskchar "Fraction one half"; |
| 9811 |
beginchar(chars.fraction_one_half,5.5u#,asc_height#,0); uni "0x00BD"; |
| 9812 |
adjust_fit(0,0); |
| 9813 |
pickup tiny.nib; |
| 9814 |
numeric zv; zv:=if medieval: .5 else: .4 fi; |
| 9815 |
multiply(1.7zv)(curve,hair,vair); |
| 9816 |
usechar shifted (-x2-hair,0) scaled zv shifted (.5WW,0); |
| 9817 |
save x,y; |
| 9818 |
let _saved_char=_saved_char_one; |
| 9819 |
_saved_w:=_saved_w_one; |
| 9820 |
usechar shifted -(x1,0) scaled zv shifted (.5WW+(HH-zv*fig_height)*slant,HH-zv*fig_height); |
| 9821 |
pos10(hair,90); pos11(hair,90); |
| 9822 |
lft x10=u; rt x11=w-u; y10=y11=if medieval: bar_height else: .5[x_height,bar_height] fi if bold_face: + .5hair fi; |
| 9823 |
filldraw bskrule(10,11,hair,hair); |
| 9824 |
penlabels(10,11); |
| 9825 |
endchar; |
| 9826 |
|
| 9827 |
iff known chars.numeral_two_BB: |
| 9828 |
bskchar "The blackboard-bold numeral 2"; |
| 9829 |
beginchar(chars.numeral_two_BB,figw(if medieval: 9u else: 10u fi),medfig,0); uni "0x1D7DA"; |
| 9830 |
italcorr 2/3h#*slant-.75u#; |
| 9831 |
adjust_fit(0,0); |
| 9832 |
pickup tiny.nib; |
| 9833 |
path p[]; numeric tim[]; oblu:=3f_obl; |
| 9834 |
pos1(.45[hair,stem],180); pos2(hair,90); pos3(cap_stem,0); pos0(vair,-60); |
| 9835 |
lft x1r=u; y1=2/3h+hair; top y2r=h+o; x2=.5w-hair; y0l=y1-2hair; x0=.35[x2,x1]; |
| 9836 |
rt x3r=w-if medieval:1.5\\ fi u; y3=2/3h; lft x4l=u; bot y4l=0; |
| 9837 |
rt x8=w-u; y8=stem-tiny; y7=-hair; z7=z8+whatever*dir-135; |
| 9838 |
x6=x7-hair; bot y6=0; |
| 9839 |
p0:=z4l{dir if medieval: 40 else:20 fi}..{up}z3l; |
| 9840 |
z4r=(((0,y8)--(w,y8)) intersectionpoint p0)+.5cap_stem*right; |
| 9841 |
p1:=z3r{down}..{dir-140}z4r; |
| 9842 |
p2=z4r--z8; |
| 9843 |
filldraw p0..z2l{left}..z1l..{dir60}z0l..{dir-120}z0r..z1r..{right}z2r.. |
| 9844 |
subpath(0,rundy(p1,(1,curve)).zpet) of p1..subpath(rundy(p2,(0,curve)),infinity) of p2&z8 |
| 9845 |
..{dir(angle(z7-z8)+15)}z7+.25vair*right..z7{up}..z6---cycle; |
| 9846 |
p100:=p0..{left}z2l; |
| 9847 |
p101:=z2r{right}..p1; |
| 9848 |
z100=bsktouch(p100,up,subpath(0,1) of p101,down); |
| 9849 |
tim100=xpart(p100 intersectiontimes (z100--(x100,y3))); |
| 9850 |
tim101=xpart(p101 intersectiontimes (z100--(x100,y2r+5))); |
| 9851 |
z101=bsktouch(subpath(0,1) of p100,2dir-45,p101,2dir135); |
| 9852 |
tim102=xpart(p100 intersectiontimes (z101--(0,y101))); |
| 9853 |
tim103=xpart(p101 intersectiontimes (z101--(w,y101))); |
| 9854 |
oblu:=bbw; |
| 9855 |
infill subpath(rundy(p101,tim101),rundy(p101,(tim103,.8oblu)).zpet) of p101 |
| 9856 |
..subpath(rundy(p100,(tim102,.8oblu)),rundy(p100,tim100).zpet) of p100 |
| 9857 |
..cycle; |
| 9858 |
penlabels(0,1,2,3,4); labels(6,7,8,100,101); |
| 9859 |
endchar; |
| 9860 |
|
| 9861 |
iff known chars.numeral_two_SS: |
| 9862 |
bskchar "The sans-serif numeral 2"; |
| 9863 |
beginchar(chars.numeral_two_SS,figw(if medieval: 9u else: 10u fi),medfig,0); uni "0x1D7E4"; |
| 9864 |
italcorr 2/3h#*slant-.75u#; |
| 9865 |
adjust_fit(0,0); |
| 9866 |
pickup tiny.nib; |
| 9867 |
path p[]; oblu:=3f_obl; |
| 9868 |
pos1(.45[hair,stem],180); pos2(hair,90); pos3(curve,0); pos0(hair,-60); |
| 9869 |
lft x1r=u; y1=2/3h+hair; top y2r=h+o; x2=.5w-hair; y0l=y1-2hair; x0=.35[x2,x1]; |
| 9870 |
rt x3r=w-if medieval:1.5\\ fi u; y3=2/3h; lft x4l=u; bot y4l=0; |
| 9871 |
rt x8=w-u; y8=stem-tiny; y7=-hair; z7=z8+whatever*dir-135; |
| 9872 |
x6=x7-hair; bot y6=0; |
| 9873 |
p0:=z4l{dir if medieval: 40 else:20 fi}..{up}z3l; |
| 9874 |
z4r=(((0,y8)--(w,y8)) intersectionpoint p0)+vair*right; |
| 9875 |
p1:=z3r{down}..{dir-140}z4r; |
| 9876 |
p2=z4r--z8; |
| 9877 |
filldraw p0..z2l{left}..z1l..{dir60}z0l..{dir-120}z0r..z1r..{right}z2r.. |
| 9878 |
subpath(0,rundy(p1,(1,curve)).zpet) of p1..subpath(rundy(p2,(0,curve)),infinity) of p2&z8...(x7,y6)---cycle; |
| 9879 |
penlabels(0,1,2,3,4); labels(6,7,8); |
| 9880 |
endchar; |
| 9881 |
|
| 9882 |
charscription(figwu(9.5u),medfigu,medfigdu)( |
| 9883 |
numeric tim[]; oblu:=if bold_face: 2f_obl else: 4f_obl fi; |
| 9884 |
path p[]; |
| 9885 |
pos1(.45[hair,stem],180); pos2(hair,90); pos3(curve,0); pos4(.45[hair,stem],0); pos0(vair,-60); |
| 9886 |
pos5(hair,90); pos6(curve,0); pos7(like_hair,270); |
| 9887 |
lft x1r=1.5u; y1=y3+hair; top y2r=h+o; x2=.5w-hair; y0l=y3-hair; x0=.35[x2,x1]; |
| 9888 |
rt x3r=w-1.75u; y3=if medieval: 2/3h else: .8h fi; lft x4l=1.5u; |
| 9889 |
bot y4l=.5(h-d); z4'=(x4l,y4l-like_hair); |
| 9890 |
x5=.5w; y5=y4+hair; rt x6r=w-u; y6=.5[y4,-d]; |
| 9891 |
x7=.55[x5,x4]; bot y7r=-d; rt x8r=u; y8=y7+1.25like_stem; |
| 9892 |
p0=z4l{dir40}..{up}z3l..z2l{left}..z1l..{dir60}z0l; |
| 9893 |
p1=z0l{dir60}..{dir-120}z0r..z1r..{right}z2r..z3r{down}..{dir-140}z4r..z4'..{dir40}z4l; |
| 9894 |
p2=z4l..z5r..z6r..z7r..smitko(8,curve)..z7l..z6l..z5l..z4'; |
| 9895 |
p3=subpath(3,infinity) of p2; |
| 9896 |
z9=bsktouch(p1,down,p2,up); |
| 9897 |
tim1-3=xpart(subpath(3,infinity) of p1 intersectiontimes (z9--(x9,y3))); |
| 9898 |
tim2=xpart(p2 intersectiontimes (z9--(x9,y6))); |
| 9899 |
(tim3,tim4-3)=p1 intersectiontimes p3; |
| 9900 |
filldraw p0..subpath(0,rundy(p1,tim1).zpet) of p1 |
| 9901 |
..subpath(rundy(p2,tim2),rundy(p2,(tim4,f_obl)).zpet) of p2 |
| 9902 |
..subpath(tim3,infinity) of p1 |
| 9903 |
..cycle; |
| 9904 |
penlabels(0,1,2,3,4,5,6,7,8); labels(4',9); |
| 9905 |
); |
| 9906 |
|
| 9907 |
let _saved_char_three=_saved_char; |
| 9908 |
numeric _saved_w_three; _saved_w_three:=_saved_w; |
| 9909 |
|
| 9910 |
iff known chars.numeral_three: |
| 9911 |
bskchar "The numeral 3"; |
| 9912 |
beginchar(chars.numeral_three,figw(9.5u),medfig,medfigd); uni "0x0033"; |
| 9913 |
adjust_fit(0,0); |
| 9914 |
pickup tiny.nib; |
| 9915 |
usechar; |
| 9916 |
endchar; |
| 9917 |
|
| 9918 |
iff known chars.superscript_numeral_three: |
| 9919 |
bskchar "The superscript numeral 3"; |
| 9920 |
beginchar(chars.superscript_numeral_three,if monofig: 5.5u# else: 5.75u# fi,asc_height#,0); uni "0x00B3"; |
| 9921 |
adjust_fit(0,0); |
| 9922 |
pickup tiny.nib; |
| 9923 |
multiply(1.7skal)(curve,hair,stem,like_hair,like_stem); |
| 9924 |
usechar shifted (-x8r,0) scaled skal shifted (u+(HH-skal*fig_height)*slant,HH-skal*fig_height); |
| 9925 |
endchar; |
| 9926 |
|
| 9927 |
iff known chars.fraction_one_third: |
| 9928 |
bskchar "Fraction one third"; |
| 9929 |
beginchar(chars.fraction_one_third,5.5u#,asc_height#,0); uni "0x2153"; |
| 9930 |
adjust_fit(0,0); |
| 9931 |
pickup tiny.nib; |
| 9932 |
numeric zv; zv:=if medieval: .5 else: .4 fi; |
| 9933 |
multiply(1.7zv)(curve,hair,stem,like_hair,like_stem); |
| 9934 |
usechar shifted (-x2-hair,0) scaled zv shifted (.5WW,0); |
| 9935 |
save x,y; |
| 9936 |
let _saved_char=_saved_char_one; |
| 9937 |
_saved_w:=_saved_w_one; |
| 9938 |
usechar shifted -(x1,0) scaled zv shifted (.5WW+(HH-zv*fig_height)*slant,HH-zv*fig_height); |
| 9939 |
pos10(hair,90); pos11(hair,90); |
| 9940 |
lft x10=u; rt x11=w-u; y10=y11=if medieval: bar_height else: .5[x_height,bar_height] fi if bold_face: + .5hair fi; |
| 9941 |
filldraw bskrule(10,11,hair,hair); |
| 9942 |
penlabels(10,11); |
| 9943 |
endchar; |
| 9944 |
|
| 9945 |
iff known chars.numeral_three_BB: |
| 9946 |
bskchar "The blackboard-bold numeral 3"; |
| 9947 |
beginchar(chars.numeral_three_BB,figw(9.5u),medfig,medfigd); uni "0x1D7DB"; |
| 9948 |
adjust_fit(0,0); |
| 9949 |
pickup tiny.nib; |
| 9950 |
numeric tim[]; oblu:=if bold_face: 2f_obl else: 4f_obl fi; |
| 9951 |
path p[]; |
| 9952 |
pos1(.45[hair,stem],180); pos2(hair,90); pos3(cap_stem,0); pos4(.45[hair,stem],0); pos0(vair,-60); |
| 9953 |
pos5(hair,90); pos6(cap_stem,0); pos7(like_hair,270); |
| 9954 |
lft x1r=1.5u; y1=y3+hair; top y2r=h+o; x2=.5w-hair; y0l=y3-hair; x0=.35[x2,x1]; |
| 9955 |
rt x3r=w-1.75u; y3=if medieval: 2/3h else: .8h fi; lft x4l=1.5u; |
| 9956 |
bot y4l=.5(h-d); z4'=(x4l,y4l-like_hair); |
| 9957 |
x5=.5w; y5=y4+hair; rt x6r=w-u; y6=.5[y4,-d]; |
| 9958 |
x7=.55[x5,x4]; bot y7r=-d; rt x8r=u; y8=y7+1.25like_stem; |
| 9959 |
p0=z4l{dir40}..{up}z3l..z2l{left}..z1l..{dir60}z0l; |
| 9960 |
p1=z0l{dir60}..{dir-120}z0r..z1r..{right}z2r..z3r{down}..{dir-140}z4r..z4'..{dir40}z4l; |
| 9961 |
p2=z4l..z5r..z6r..z7r..smitko(8,curve)..z7l..z6l..z5l..z4'; |
| 9962 |
p3=subpath(3,infinity) of p2; |
| 9963 |
z9=bsktouch(p1,down,p2,up); |
| 9964 |
tim1-3=xpart(subpath(3,infinity) of p1 intersectiontimes (z9--(x9,y3))); |
| 9965 |
tim2=xpart(p2 intersectiontimes (z9--(x9,y6))); |
| 9966 |
(tim3,tim4-3)=p1 intersectiontimes p3; |
| 9967 |
filldraw p0..subpath(0,rundy(p1,tim1).zpet) of p1 |
| 9968 |
..subpath(rundy(p2,tim2),rundy(p2,(tim4,f_obl)).zpet) of p2 |
| 9969 |
..subpath(tim3,infinity) of p1 |
| 9970 |
..cycle; |
| 9971 |
p100:=subpath(0,2) of p0; |
| 9972 |
p101:=subpath(3,5) of p1; |
| 9973 |
p102:=subpath(1,3) of p2; |
| 9974 |
p103:=subpath(5,infinity) of p2; |
| 9975 |
z100=bsktouch(p100,up,subpath(0,1) of p101,down); |
| 9976 |
tim100=xpart(p100 intersectiontimes (z100--(x100,y3))); |
| 9977 |
tim101=xpart(p101 intersectiontimes (z100--(x100,y2r+5))); |
| 9978 |
z101=bsktouch(subpath(0,1) of p100,dir-50,p101,dir120); |
| 9979 |
tim102=xpart(p100 intersectiontimes (z101--(0,y101))); |
| 9980 |
tim103=xpart(p101 intersectiontimes (z101--(w,y101))); |
| 9981 |
z102=bsktouch(p102,down,p103,up); |
| 9982 |
tim104=xpart(p102 intersectiontimes (z102--(x102,y5r+5))); |
| 9983 |
tim105=xpart(p103 intersectiontimes (z102--(x102,y6))); |
| 9984 |
z103=bsktouch(p102,bbs*up,p103,down); |
| 9985 |
tim106=xpart(p102 intersectiontimes (z103--(x103,y7r-u))); |
| 9986 |
tim107=xpart(p103 intersectiontimes (z103--(x103,y6))); |
| 9987 |
oblu:=bbw; |
| 9988 |
infill subpath(rundy(p101,tim101),rundy(p101,tim103).zpet) of p101 |
| 9989 |
..subpath(rundy(p100,tim102),rundy(p100,tim100).zpet) of p100 |
| 9990 |
..cycle; |
| 9991 |
infill subpath(rundy(p103,tim107),rundy(p103,tim105).zpet) of p103 |
| 9992 |
..reverse subpath(rundy(p102,tim106).zpet,rundy(p102,tim104)) of p102 |
| 9993 |
..cycle; |
| 9994 |
penlabels(0,1,2,3,4,5,6,7,8); labels(4',9,100,101,102,103); |
| 9995 |
endchar; |
| 9996 |
|
| 9997 |
iff known chars.numeral_three_SS: |
| 9998 |
bskchar "The sans-serif numeral 3"; |
| 9999 |
beginchar(chars.numeral_three_SS,figw(9.5u),medfig,medfigd); uni "0x1D7E5"; |
| 10000 |
adjust_fit(0,0); |
| 10001 |
pickup tiny.nib; |
| 10002 |
numeric tim[]; oblu:=if bold_face: 2f_obl else: 4f_obl fi; |
| 10003 |
path p[]; |
| 10004 |
pos1(.45[hair,stem],180); pos2(hair,90); pos3(curve,0); pos4(.45[hair,stem],0); pos0(hair,-60); |
| 10005 |
pos5(hair,90); pos6(curve,0); pos7(hair,270); pos8(curve,150); |
| 10006 |
lft x1r=1.5u; y1=y3+hair; top y2r=h+o; x2=.5w-hair; y0l=y3-hair; x0=.35[x2,x1]; |
| 10007 |
rt x3r=w-1.75u; y3=if medieval: 2/3h else: .8h fi; lft x4l=1.5u; |
| 10008 |
bot y4l=.5(h-d); z4'=(x4l,y4l-like_hair); |
| 10009 |
x5=.5w; y5=y4+hair; rt x6r=w-u; y6=.5[y4,-d]; |
| 10010 |
x7=.55[x5,x4]; bot y7r=-d; rt x8r=u; y8=y7+1.25like_stem; |
| 10011 |
p0=z4l{dir40}..{up}z3l..z2l{left}..z1l..{dir60}z0l; |
| 10012 |
p1=z0l{dir60}..{dir-120}z0r..z1r..{right}z2r..z3r{down}..{dir-140}z4r..z4'..{dir40}z4l; |
| 10013 |
p2=z4l..z5r..z6r..z7r..{up}z8r..{down}z8l..z7l..z6l..z5l..z4'; |
| 10014 |
p3=subpath(3,infinity) of p2; |
| 10015 |
z9=bsktouch(p1,down,p2,up); |
| 10016 |
tim1-3=xpart(subpath(3,infinity) of p1 intersectiontimes (z9--(x9,y3))); |
| 10017 |
tim2=xpart(p2 intersectiontimes (z9--(x9,y6))); |
| 10018 |
(tim3,tim4-3)=p1 intersectiontimes p3; |
| 10019 |
filldraw p0..subpath(0,rundy(p1,tim1).zpet) of p1 |
| 10020 |
..subpath(rundy(p2,tim2),rundy(p2,(tim4,f_obl)).zpet) of p2 |
| 10021 |
..subpath(tim3,infinity) of p1 |
| 10022 |
..cycle; |
| 10023 |
penlabels(0,1,2,3,4,5,6,7,8); labels(4',9); |
| 10024 |
endchar; |
| 10025 |
|
| 10026 |
charscription(figwu(12u),medfigu,medfigdu)( |
| 10027 |
oblu:=2f_obl; oblu.light:=.5oblu; |
| 10028 |
pos1(dig_stem,0); pos2(dig_stem,0); pos4(hair,90); pos5(stem,30); |
| 10029 |
rt x1r= rt x2r=w-3.5u; bot y1=-d; top y2=h+apex_o; |
| 10030 |
lft x3l=u; y3l=if medieval: -stem else: .5x_height fi; z4l=(x1r+hair,y3l); rt x5r=w-u; y5l=y3l; |
| 10031 |
z2'=whatever[z2r,z3l]=whatever[z1l,z2l]; |
| 10032 |
z3l'=z3l+(hair-tiny,0) rotated(angle(z2r-z3l)-90); x2''=x2'; z2''=z3l'+whatever*(z2r-z3l); |
| 10033 |
z4'=whatever[z3l',z2'']=whatever[z4r,(x3l,y4r)]; |
| 10034 |
z4l'=(x1r,y4l); z4r'=(x1r,y4r); z4l''=(x1l,y4l); z4r''=(x1l,y4r); z1'=(x1l,y4r); |
| 10035 |
cap_serifs_bl(1l); cap_serifs_br(1r); |
| 10036 |
filldraw z1r.b---obl(4l',1r,5l)if bold_face:.light fi |
| 10037 |
---z5l..z5r if x4-x1r>oblu.light:..z4r fi |
| 10038 |
..obl(4r',4r,2r).light---z2r-- |
| 10039 |
z2'--z3l---obl(4l'',3l,1l)if bold_face:.light fi |
| 10040 |
---z1l.b..{dir181}z1l.a{right}..z1+ser_boule*up.. |
| 10041 |
{right}z1r.a{dir179}..cycle; |
| 10042 |
infill obl(4',4r,2'')---obl(2'',4',1')---obl(1',2'',4')---cycle; |
| 10043 |
penlabels(1,2,3,4,5); labels(2',2'',3l',4',4l',4r'); |
| 10044 |
); |
| 10045 |
|
| 10046 |
let _saved_char_four=_saved_char; |
| 10047 |
numeric _saved_w_four; _saved_w_four:=_saved_w; |
| 10048 |
|
| 10049 |
iff known chars.numeral_four: |
| 10050 |
bskchar "The numeral 4"; |
| 10051 |
beginchar(chars.numeral_four,figw(12u),medfig,medfigd); uni "0x0034"; |
| 10052 |
adjust_fit(0,0); |
| 10053 |
pickup tiny.nib; |
| 10054 |
usechar; |
| 10055 |
endchar; |
| 10056 |
|
| 10057 |
iff known chars.superscript_numeral_four: |
| 10058 |
bskchar "The superscript numeral 4"; |
| 10059 |
beginchar(chars.superscript_numeral_four,if monofig: 5.5u# else: 7u# fi,asc_height#,0); uni "0x2074"; |
| 10060 |
adjust_fit(0,0); |
| 10061 |
pickup tiny.nib; |
| 10062 |
multiply(1.7skal)(curve,hair,vair,dig_stem); |
| 10063 |
usechar shifted (-x3l,0) scaled skal shifted (u+(HH-skal*fig_height)*slant,HH-skal*fig_height); |
| 10064 |
endchar; |
| 10065 |
|
| 10066 |
iff known chars.fraction_one_quarter: |
| 10067 |
bskchar "Fraction one quarter"; |
| 10068 |
beginchar(chars.fraction_one_quarter,7u#,asc_height#,0); uni "0x00BC"; |
| 10069 |
adjust_fit(0,0); |
| 10070 |
pickup tiny.nib; |
| 10071 |
numeric zv; zv:=if medieval: .5 else: .4 fi; |
| 10072 |
multiply(1.7zv)(curve,hair,stem,like_hair,like_stem); |
| 10073 |
usechar shifted (-.5w,0) scaled zv shifted (.5WW,0); |
| 10074 |
save x,y; |
| 10075 |
let _saved_char=_saved_char_one; |
| 10076 |
_saved_w:=_saved_w_one; |
| 10077 |
usechar shifted -(x1,0) scaled zv shifted (.5WW+(HH-zv*fig_height)*slant,HH-zv*fig_height); |
| 10078 |
pos10(hair,90); pos11(hair,90); |
| 10079 |
lft x10=u; rt x11=w-u; y10=y11=if medieval: bar_height else: .5[x_height,bar_height] fi if bold_face: +.5hair fi; |
| 10080 |
filldraw bskrule(10,11,hair,hair); |
| 10081 |
penlabels(10,11); |
| 10082 |
endchar; |
| 10083 |
|
| 10084 |
iff known chars.fraction_three_quarters: |
| 10085 |
bskchar "Fraction three quarters"; |
| 10086 |
beginchar(chars.fraction_three_quarters,7u#,asc_height#,0); uni "0x00BE"; |
| 10087 |
adjust_fit(0,0); |
| 10088 |
pickup tiny.nib; |
| 10089 |
numeric zv; zv:=if medieval: .5 else: .4 fi; |
| 10090 |
multiply(1.7zv)(curve,hair,stem,like_hair,like_stem); |
| 10091 |
let _saved_char=_saved_char_four; |
| 10092 |
_saved_w:=_saved_w_four; |
| 10093 |
usechar shifted (-.5w,0) scaled zv shifted (.5WW,0); |
| 10094 |
save x,y; |
| 10095 |
let _saved_char=_saved_char_three; |
| 10096 |
_saved_w:=_saved_w_three; |
| 10097 |
usechar shifted -(x2+hair,if medieval: y7 else: 0 fi) scaled zv shifted (.5WW+(HH-zv*fig_height)*slant,HH-zv*fig_height); |
| 10098 |
pos10(hair,90); pos11(hair,90); |
| 10099 |
lft x10=u; rt x11=w-u; y10=y11=if medieval: bar_height else: .5[x_height,bar_height] fi if bold_face: +.5hair fi; |
| 10100 |
filldraw bskrule(10,11,hair,hair); |
| 10101 |
penlabels(10,11); |
| 10102 |
endchar; |
| 10103 |
|
| 10104 |
iff known chars.numeral_four_BB: |
| 10105 |
bskchar "The blackboard-bold numeral 4"; |
| 10106 |
beginchar(chars.numeral_four_BB,figw(12u),medfig,medfigd); uni "0x1D7DC"; |
| 10107 |
adjust_fit(0,0); |
| 10108 |
pickup tiny.nib; |
| 10109 |
oblu:=2f_obl; oblu.light:=.5oblu; |
| 10110 |
pos1(cap_stem,0); pos2(cap_stem,0); pos4(hair,90); pos5(stem,30); |
| 10111 |
rt x1r= rt x2r=w-3.5u; bot y1=-d; top y2=h+apex_o; |
| 10112 |
lft x3l=u; y3l=if medieval: -stem else: .5x_height fi; z4l=(x1r+hair,y3l); rt x5r=w-u; y5l=y3l; |
| 10113 |
z2'=whatever[z2r,z3l]=whatever[z1l,z2l]; |
| 10114 |
z3l'=z3l+(hair-tiny,0) rotated(angle(z2r-z3l)-90); x2''=x2'; z2''=z3l'+whatever*(z2r-z3l); |
| 10115 |
z4'=whatever[z3l',z2'']=whatever[z4r,(x3l,y4r)]; |
| 10116 |
z4l'=(x1r,y4l); z4r'=(x1r,y4r); z4l''=(x1l,y4l); z4r''=(x1l,y4r); z1'=(x1l,y4r); |
| 10117 |
cap_serifs_bl(1l); cap_serifs_br(1r); |
| 10118 |
filldraw z1r.b---obl(4l',1r,5l)if bold_face:.light fi |
| 10119 |
---z5l..z5r if x4-x1r>oblu.light:..z4r fi |
| 10120 |
..obl(4r',4r,2r).light---z2r-- |
| 10121 |
z2'--z3l---obl(4l'',3l,1l)if bold_face:.light fi |
| 10122 |
---z1l.b..{dir181}z1l.a{right}..z1+ser_boule*up.. |
| 10123 |
{right}z1r.a{dir179}..cycle; |
| 10124 |
infill obl(4',4r,2'')---obl(2'',4',1')---obl(1',2'',4')---cycle; |
| 10125 |
bot z100=(x1l,y1l.c); |
| 10126 |
oblu:=f_obl; oblu.more:=2oblu; |
| 10127 |
infill ifobl(2',2r,100,1r,,more)%obl(2',100,2r)---obl(2r,2',1r).more |
| 10128 |
---obl(1r,2r,1l)---z1l...obl(100,1l.c,2l)---cycle; |
| 10129 |
penlabels(1,2,3,4,5); labels(2',2'',3l',4',4l',4r'); |
| 10130 |
endchar; |
| 10131 |
|
| 10132 |
iff known chars.numeral_four_SS: |
| 10133 |
bskchar "The sans-serif numeral 4"; |
| 10134 |
beginchar(chars.numeral_four_SS,figw(11.5u),medfig,medfigd); uni "0x1D7E5"; |
| 10135 |
adjust_fit(0,0); |
| 10136 |
pickup tiny.nib; |
| 10137 |
oblu:=2f_obl; oblu.light:=.5oblu; |
| 10138 |
pos1(dig_stem,0); pos2(dig_stem,0); pos4(hair,90); pos5(hair,90); |
| 10139 |
rt x1r= rt x2r=w-3u; bot y1=-d; top y2=h+apex_o; |
| 10140 |
lft x3l=u; y3l=if medieval: -stem else: .5x_height fi; z4l=(x1r+hair,y3l); rt x5r=w-u; y5l=y3l; |
| 10141 |
z2'=whatever[z2r,z3l]=whatever[z1l,z2l]; |
| 10142 |
z3l'=z3l+(hair-tiny,0) rotated(angle(z2r-z3l)-90); x2''=x2'; z2''=z3l'+whatever*(z2r-z3l); |
| 10143 |
z4'=whatever[z3l',z2'']=whatever[z4r,(x3l,y4r)]; |
| 10144 |
z4l'=(x1r,y4l); z4r'=(x1r,y4r); z4l''=(x1l,y4l); z4r''=(x1l,y4r); z1'=(x1l,y4r); |
| 10145 |
cap_serifs_bl(1l); cap_serifs_br(1r); |
| 10146 |
filldraw z1r.b---obl(4l',1r,5l)if bold_face:.light fi |
| 10147 |
---z5l..z5r---obl(4r',4r,2r).light---z2r-- |
| 10148 |
z2'--z3l---obl(4l'',3l,1l)if bold_face:.light fi |
| 10149 |
---z1l.b...z1...cycle; |
| 10150 |
infill obl(4',4r,2'')---obl(2'',4',1')---obl(1',2'',4')---cycle; |
| 10151 |
penlabels(1,2,3,4,5); labels(2',2'',3l',4',4l',4r'); |
| 10152 |
endchar; |
| 10153 |
|
| 10154 |
charscription(figwu(if medieval: 10.5u else: 9.5u fi),medfigu,medfigdu)( |
| 10155 |
numeric theta; theta=if medieval: 0 else: 10 fi; |
| 10156 |
path p[]; |
| 10157 |
oblu:=2f_obl; |
| 10158 |
pos1(hair,0); pos2(hair,0); pos3(stem,75); |
| 10159 |
pos4(hair,-90); pos5(curve,180); pos6(hair,90); |
| 10160 |
x1l=if monofig: 2u else: 3u fi; top y1l=h+apex_o; x2=x1; |
| 10161 |
y2=if medieval: .2x_height else: .5[bar_height,x_height] fi; z3r=z2r; z2'=(x2r,.5[y4,y2]); |
| 10162 |
x4=.5w; rt x5l=w-u; |
| 10163 |
y4=y2+ if known superscript: .5\\fi (if not medieval: .8\\fi stem); |
| 10164 |
y5=.48[y4,y6]; |
| 10165 |
x6=.5w-o; bot y6l=-d; |
| 10166 |
lft x7r=u; y7=y6+if known superscript: 3 else: 4 fi /3like_curve; x8=w-u; y8=y1+.5apex_o; |
| 10167 |
z1'=z1r+if bold_face:.8\\fi curve*down; |
| 10168 |
p0=z1l---z2l..{down}z3l..(x3r,y3l)..{up}z3r..{up}z2r..{right}z4r.. |
| 10169 |
{down}z5r..{left}z6r..(reverse smitko(7,curve))..z6l{right}.. |
| 10170 |
{up}z5l; |
| 10171 |
p1=z5l{up}..z4l..z2'; |
| 10172 |
p2=z2'--z1'; |
| 10173 |
p3=z1'..{dir(70-theta)}z8{dir(-140-theta)}..z1l; |
| 10174 |
filldraw p0&subpath(0,rundy(p1,infinity).zpet) of p1..subpath (rundy(p2,0),rundy(p2,infinity).zpet) of p2.. |
| 10175 |
subpath(rundy(p3,0),infinity) of p3&cycle; |
| 10176 |
penlabels(1,2,3,4,5,6,7); labels(1',2',8); |
| 10177 |
); |
| 10178 |
|
| 10179 |
iff known chars.numeral_five: |
| 10180 |
bskchar "The numeral 5"; |
| 10181 |
beginchar(chars.numeral_five,figw(if medieval: 10.5u else: 9.5u fi),medfig,medfigd); uni "0x0035"; |
| 10182 |
italcorr h#*slant; |
| 10183 |
adjust_fit(0,0); |
| 10184 |
pickup tiny.nib; |
| 10185 |
usechar; |
| 10186 |
endchar; |
| 10187 |
|
| 10188 |
iff known chars.superscript_numeral_five: |
| 10189 |
bskchar "The superscript numeral 5"; |
| 10190 |
beginchar(chars.superscript_numeral_five,if monofig: 5.5u# else: if medieval: 6.25u# else: 5.75u#fi fi,asc_height#,0); uni "0x2075"; |
| 10191 |
adjust_fit(0,0); |
| 10192 |
pickup tiny.nib; boolean superscript; superscript=true; |
| 10193 |
multiply(1.7skal)(curve,hair,stem); |
| 10194 |
usechar shifted (-x7r,0) scaled skal shifted (u+(HH-skal*fig_height)*slant,HH-skal*fig_height); |
| 10195 |
endchar; |
| 10196 |
|
| 10197 |
iff known chars.numeral_five_BB: |
| 10198 |
bskchar "The blackboard-bold numeral 5"; |
| 10199 |
beginchar(chars.numeral_five_BB,figw(if medieval: 10.5u else: 9.5u fi),medfig,medfigd); uni "0x1D7DD"; |
| 10200 |
italcorr h#*slant; |
| 10201 |
adjust_fit(0,0); |
| 10202 |
pickup tiny.nib; |
| 10203 |
numeric theta; theta=if medieval: 0 else: 10 fi; |
| 10204 |
path p[]; numeric tim[]; |
| 10205 |
oblu:=2f_obl; |
| 10206 |
pos1(hair,0); pos2(hair,0); pos3(stem,75); |
| 10207 |
pos4(hair,-90); pos5(cap_stem,180); pos6(hair,90); |
| 10208 |
x1l=if monofig: 2u else: 3u fi; top y1l=h+apex_o; x2=x1; |
| 10209 |
y2=if medieval: .2x_height else: .5[bar_height,x_height] fi; z3r=z2r; z2'=(x2r,.5[y4,y2]); |
| 10210 |
x4=.5w; rt x5l=w-u; |
| 10211 |
y4=y2+ if known superscript: .5\\fi (if not medieval: .8\\fi stem); |
| 10212 |
y5=.48[y4,y6]; |
| 10213 |
x6=.5w-o; bot y6l=-d; |
| 10214 |
lft x7r=u; y7=y6+if known superscript: 3 else: 4 fi /3like_curve; x8=w-u; y8=y1+.5apex_o; |
| 10215 |
z1'=z1r+if bold_face:.8\\fi curve*down; |
| 10216 |
p0=z1l---z2l..{down}z3l..(x3r,y3l)..{up}z3r..{up}z2r..{right}z4r.. |
| 10217 |
{down}z5r..{left}z6r..(reverse smitko(7,curve))..z6l{right}.. |
| 10218 |
{up}z5l; |
| 10219 |
p1=z5l{up}..z4l..z2'; |
| 10220 |
p2=z2'--z1'; |
| 10221 |
p3=z1'..{dir(70-theta)}z8{dir(-140-theta)}..z1l; |
| 10222 |
filldraw p0&subpath(0,rundy(p1,infinity).zpet) of p1..subpath (rundy(p2,0),rundy(p2,infinity).zpet) of p2.. |
| 10223 |
subpath(rundy(p3,0),infinity) of p3&cycle; |
| 10224 |
p100:=z2'..z4l..{down}z5l..{left}z6l; |
| 10225 |
p101:=subpath(6,8) of p0; |
| 10226 |
p102:=subpath(0,1) of p3; |
| 10227 |
p103:=subpath(1,2) of p3; |
| 10228 |
z100=bsktouch(p100,down,p101,up); |
| 10229 |
tim100=xpart(p100 intersectiontimes (z100--(x100,y4l+5))); |
| 10230 |
tim101=xpart(p101 intersectiontimes (z100--(x100,y5))); |
| 10231 |
z101=bsktouch(p100,up,p101,down); |
| 10232 |
tim102=xpart(p100 intersectiontimes (z101--(x101,y6l-u))); |
| 10233 |
tim103=xpart(p101 intersectiontimes (z101--(x101,y5))); |
| 10234 |
z102=bsktouch(p102,up,p103,down); |
| 10235 |
tim104=xpart(p102 intersectiontimes (z102--(x102,y4))); |
| 10236 |
tim105=xpart(p103 intersectiontimes (z102--(x102,y8))); |
| 10237 |
oblu:=bbw; |
| 10238 |
infill subpath(rundy(p101,tim103).zpet,rundy(p101,tim101)) of p101 |
| 10239 |
..reverse subpath(rundy(p100,tim102).zpet,rundy(p100,tim100)) of p100 |
| 10240 |
..cycle; |
| 10241 |
infill subpath(rundy(p102,(0,f_obl)),rundy(p102,tim104).zpet) of p102 |
| 10242 |
..subpath(rundy(p103,tim105),rundy(p103,(1,2f_obl)).zpet) of p103..cycle; |
| 10243 |
penlabels(1,2,3,4,5,6,7); labels(1',2',8,100,101,102); |
| 10244 |
endchar; |
| 10245 |
|
| 10246 |
iff known chars.numeral_five_SS: |
| 10247 |
bskchar "The sans-serif numeral 5"; |
| 10248 |
beginchar(chars.numeral_five_SS,figw(if medieval: 10.5u else: 9.5u fi),medfig,medfigd); uni "0x1D7E6"; |
| 10249 |
italcorr h#*slant; |
| 10250 |
adjust_fit(0,0); |
| 10251 |
pickup tiny.nib; |
| 10252 |
numeric theta; theta=if medieval: 0 else: 10 fi; |
| 10253 |
path p[]; |
| 10254 |
oblu:=2f_obl; |
| 10255 |
pos1(hair,0); pos2(hair,0); pos3(hair,0); |
| 10256 |
pos4(hair,-90); pos5(curve,180); pos6(hair,90); pos7(curve,150); |
| 10257 |
x1l=if monofig: 2u else: 3u fi; top y1l=h+apex_o; x2=x1; |
| 10258 |
y2=if medieval: .2x_height else: .5[bar_height,x_height] fi; x3r=x2r; y3r=y2r-hair; z2'=(x2r,.5[y4,y2]); |
| 10259 |
x4=.5w; rt x5l=w-u; |
| 10260 |
y4=y2+ if known superscript: .5\\fi (if not medieval: .8\\fi stem); |
| 10261 |
y5=.48[y4,y6]; |
| 10262 |
x6=.5w-o; bot y6l=-d; |
| 10263 |
lft x7r=u; y7=y6+if known superscript: 3 else: 4 fi /3like_curve; x8=w-u; y8=y1+.5apex_o; |
| 10264 |
z1'=z1r+if bold_face:.8\\fi curve*down; |
| 10265 |
p0=z1l---z2l..{down}z3l..{up}z3r..{up}z2r..{right}z4r.. |
| 10266 |
{down}z5r..{left}z6r..{up}z7l..{down}z7r..z6l{right}.. |
| 10267 |
{up}z5l; |
| 10268 |
p1=z5l{up}..z4l..z2'; |
| 10269 |
p2=z2'--z1'; |
| 10270 |
p3=z1'..{dir(70-theta)}z8{dir(-140-theta)}..z1l; |
| 10271 |
filldraw p0&subpath(0,rundy(p1,infinity).zpet) of p1..subpath (rundy(p2,0),rundy(p2,infinity).zpet) of p2.. |
| 10272 |
subpath(rundy(p3,0),infinity) of p3&cycle; |
| 10273 |
penlabels(1,2,3,4,5,6,7); labels(1',2',8); |
| 10274 |
endchar; |
| 10275 |
|
| 10276 |
charscription(figwu(10u),fig_height,0)( |
| 10277 |
path p[]; numeric tim[]; oblu:=2oblu; |
| 10278 |
pos1(vair,0); pos2(hair,90); pos3(curve,180); pos4(hair,270); |
| 10279 |
pos5(curve,0); pos6(hair,-90); pos7(curve,160); |
| 10280 |
rt x3l=w-u; y1=y3=.5x_height; x2=x4=.5w+.5hair; bot y2l=-o; .5[y4r,y2r]=y3; |
| 10281 |
lft x5l=u; y5l=y1l+stem; top y6l=h+o; x6=.5w+.75stem; |
| 10282 |
rt x7l=w-u; y7=y6r-like_stem; |
| 10283 |
p0=z2r{left}..z5r..{right}z6r; x1r=xpart (((0,y1)--(.5w,y1))intersectionpoint p0); |
| 10284 |
p1=z2l{right}..z3l..z4l..{down}z1l; |
| 10285 |
p2=z2r{left}..z5r..{right}z6r; |
| 10286 |
z0=bsktouch(p1,left,subpath(.2,infinity) of p2,right); |
| 10287 |
tim1=xpart(p1 intersectiontimes (z0--(x4,y0))); |
| 10288 |
tim2=xpart(p2 intersectiontimes (z0--(0,y0))); |
| 10289 |
filldraw z7r{down}..z7l{up}..{left}z6l..z5l..{right}z2l.. |
| 10290 |
subpath(0,rundy(p1,tim1).zpet) of p1.. |
| 10291 |
subpath(rundy(p2,tim2),infinity) of p2..cycle; |
| 10292 |
infill z1r{up}..z4r..z3r..z2r..cycle; |
| 10293 |
penlabels(0,1,2,3,4,5,6,7); |
| 10294 |
); |
| 10295 |
|
| 10296 |
iff known chars.numeral_six: |
| 10297 |
bskchar "The numeral 6"; |
| 10298 |
beginchar(chars.numeral_six,figw(10u),fig_height#,0); uni "0x0036"; |
| 10299 |
italcorr .5[fig_height#,x_height#]*slant; |
| 10300 |
adjust_fit(0,0); |
| 10301 |
pickup tiny.nib; |
| 10302 |
usechar; |
| 10303 |
endchar; |
| 10304 |
|
| 10305 |
iff known chars.superscript_numeral_six: |
| 10306 |
bskchar "The superscript numeral 6"; |
| 10307 |
beginchar(chars.superscript_numeral_six,if monofig: 5.5u# else: 6u# fi,asc_height#,0); uni "0x2076"; |
| 10308 |
adjust_fit(0,0); |
| 10309 |
pickup tiny.nib; |
| 10310 |
multiply(1.7skal)(curve,hair,vair,stem); |
| 10311 |
usechar shifted (-x5l,0) scaled skal shifted (u+(HH-skal*fig_height)*slant,HH-skal*fig_height); |
| 10312 |
endchar; |
| 10313 |
|
| 10314 |
iff known chars.numeral_six_BB: |
| 10315 |
bskchar "The blackboard-bold numeral 6"; |
| 10316 |
beginchar(chars.numeral_six_BB,figw(10u),fig_height#,0); uni "0x1D7DE"; |
| 10317 |
italcorr .5[fig_height#,x_height#]*slant; |
| 10318 |
adjust_fit(0,0); |
| 10319 |
pickup tiny.nib; |
| 10320 |
path p[]; numeric tim[]; oblu:=2oblu; |
| 10321 |
pos1(vair,0); pos2(hair,90); pos3(cap_stem,180); pos4(hair,270); |
| 10322 |
pos5(cap_stem,0); pos6(hair,-90); pos7(curve,160); |
| 10323 |
rt x3l=w-u; y1=y3=.5x_height; x2=x4=.5w+.5hair; bot y2l=-o; .5[y4r,y2r]=y3; |
| 10324 |
lft x5l=u; y5l=y1l+stem; top y6l=h+o; x6=.5w+.75stem; |
| 10325 |
rt x7l=w-u; y7=y6r-like_stem; |
| 10326 |
p0=z2r{left}..z5r..{right}z6r; x1r=xpart (((0,y1)--(.5w,y1))intersectionpoint p0); |
| 10327 |
p1=z2l{right}..z3l..z4l..{down}z1l; |
| 10328 |
p2=z2r{left}..z5r..{right}z6r; |
| 10329 |
z0=bsktouch(p1,left,subpath(.2,infinity) of p2,right); |
| 10330 |
tim1=xpart(p1 intersectiontimes (z0--(x4,y0))); |
| 10331 |
tim2=xpart(p2 intersectiontimes (z0--(0,y0))); |
| 10332 |
filldraw z7r{down}..z7l{up}..{left}z6l..z5l..{right}z2l.. |
| 10333 |
subpath(0,rundy(p1,tim1).zpet) of p1.. |
| 10334 |
subpath(rundy(p2,tim2),infinity) of p2..cycle; |
| 10335 |
infill z1r{up}..z4r..z3r..z2r..cycle; |
| 10336 |
p100:=z4r..z3r..z2r..{up}z1r..cycle; |
| 10337 |
p101:=p1; |
| 10338 |
p102:=z6l{left}..z5l..{right}z2l; |
| 10339 |
p103:=p2; |
| 10340 |
oblu:=1.25bbw; |
| 10341 |
z100=bsktouch(p100,up,p101,down); |
| 10342 |
z101=bsktouch(p100,down,p101,up); |
| 10343 |
z102=bsktouch(p102,up,p103,down); |
| 10344 |
z103=bsktouch(p102,down,p103,up); |
| 10345 |
tim100=xpart(p100 intersectiontimes (z100--(x100,y1))); |
| 10346 |
tim101=xpart(p101 intersectiontimes (z100--(x100,y4l+5))); |
| 10347 |
tim102=xpart(p100 intersectiontimes (z101--(x101,y1))); |
| 10348 |
tim103=xpart(p101 intersectiontimes (z101--(x101,y2l-5))); |
| 10349 |
tim104=xpart(p102 intersectiontimes (z102--(x102,y2l-5))); |
| 10350 |
tim105=xpart(p103 intersectiontimes (z102--(x102,y1))); |
| 10351 |
tim106=xpart(p102 intersectiontimes (z103--(x103,y6l+5))); |
| 10352 |
tim107=xpart(p103 intersectiontimes (z103--(x103,y1))); |
| 10353 |
infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100 |
| 10354 |
..subpath(rundy(p101,tim103),rundy(p101,tim101).zpet) of p101..cycle; |
| 10355 |
infill subpath(rundy(p102,tim106),rundy(p102,tim104).zpet) of p102 |
| 10356 |
..subpath(rundy(p103,tim105),rundy(p103,tim107).zpet) of p103..cycle; |
| 10357 |
penlabels(0,1,2,3,4,5,6,7); labels(100,101,102,103); |
| 10358 |
endchar; |
| 10359 |
|
| 10360 |
iff known chars.numeral_six_SS: |
| 10361 |
bskchar "The sans-serif numeral 6"; |
| 10362 |
beginchar(chars.numeral_six_SS,figw(10u),fig_height#,0); uni "0x1D7E7"; |
| 10363 |
italcorr .5[fig_height#,x_height#]*slant; |
| 10364 |
adjust_fit(0,0); |
| 10365 |
pickup tiny.nib; |
| 10366 |
path p[]; numeric tim[]; oblu:=2oblu; |
| 10367 |
pos1(hair,0); pos2(hair,90); pos3(curve,180); pos4(hair,270); |
| 10368 |
pos5(curve,0); pos6(hair,-90); pos7(curve,160); |
| 10369 |
rt x3l=w-u; y1=y3=.5x_height; x2=x4=.5w+.5hair; bot y2l=-o; .5[y4r,y2r]=y3; |
| 10370 |
lft x5l=u; y5l=y1l+stem; top y6l=h+o; x6=.5w+.75stem; |
| 10371 |
rt x7l=w-u; y7=y6r-like_stem; |
| 10372 |
p0=z2r{left}..z5r..{right}z6r; x1r=xpart (((0,y1)--(.5w,y1))intersectionpoint p0); |
| 10373 |
p1=z2l{right}..z3l..z4l..{down}z1l; |
| 10374 |
p2=z2r{left}..z5r..{right}z6r; |
| 10375 |
z0=bsktouch(p1,left,subpath(.2,infinity) of p2,right); |
| 10376 |
tim1=xpart(p1 intersectiontimes (z0--(x4,y0))); |
| 10377 |
tim2=xpart(p2 intersectiontimes (z0--(0,y0))); |
| 10378 |
filldraw z7r{down}..z7l{up}..{left}z6l..z5l..{right}z2l.. |
| 10379 |
subpath(0,rundy(p1,tim1).zpet) of p1.. |
| 10380 |
subpath(rundy(p2,tim2),infinity) of p2..cycle; |
| 10381 |
infill z1r{up}..z4r..z3r..z2r..cycle; |
| 10382 |
penlabels(0,1,2,3,4,5,6,7); |
| 10383 |
endchar; |
| 10384 |
|
| 10385 |
charscription(figwu(11u),medfigu,medfigdu)( |
| 10386 |
path p; numeric tim[]; |
| 10387 |
pos1(hair,0); pos2(curve,0); pos3(stem,90); pos4(.4(h+d),80); |
| 10388 |
rt top z1r=(w-u,h); lft x2l=2.5u; top y2=-d+.5stem; |
| 10389 |
y3r=y1r; y4r=y1r+if not medieval: .5\\fi stem; lft x4l=u; x3=x4r+hair; x3l:=x3l+o; |
| 10390 |
p:=z2l{dir80}...{z1-z2r}z1l; tim1=xpart(p intersectiontimes ((0,y3l)--(w,y3l))); z1'=point tim1 of p + u*left; |
| 10391 |
filldraw z1r{z2r-z1}...{dir-100}z2r..subpath(0,rundy(p,(tim1,curve)).zpet) of p..z1' |
| 10392 |
---z3l..{z4l-z4r}z4l..z4l+left--z4r{down}..z3r---cycle; |
| 10393 |
penlabels(1,2,3,4); labels(1'); |
| 10394 |
); |
| 10395 |
|
| 10396 |
iff known chars.numeral_seven: |
| 10397 |
bskchar "The numeral 7"; |
| 10398 |
beginchar(chars.numeral_seven,figw(11u),medfig,medfigd); uni "0x0037"; |
| 10399 |
italcorr h#*slant-.25u#; |
| 10400 |
adjust_fit(0,0); |
| 10401 |
pickup tiny.nib; |
| 10402 |
usechar; |
| 10403 |
endchar; |
| 10404 |
|
| 10405 |
iff known chars.superscript_numeral_seven: |
| 10406 |
bskchar "The superscript numeral 7"; |
| 10407 |
beginchar(chars.superscript_numeral_seven,if monofig: 5.5u# else: 6.5u# fi,asc_height#,0); uni "0x2077"; |
| 10408 |
adjust_fit(0,0); |
| 10409 |
pickup tiny.nib; |
| 10410 |
multiply(1.7skal)(curve,hair,stem); |
| 10411 |
usechar shifted (-x4l,0) scaled skal shifted (u+(HH-skal*fig_height)*slant,HH-skal*fig_height); |
| 10412 |
endchar; |
| 10413 |
|
| 10414 |
iff known chars.numeral_seven_BB: |
| 10415 |
bskchar "The blackboard-bold numeral 7"; |
| 10416 |
beginchar(chars.numeral_seven_BB,figw(11u),medfig,medfigd); uni "0x1D7DF"; |
| 10417 |
italcorr h#*slant-.25u#; |
| 10418 |
adjust_fit(0,0); |
| 10419 |
pickup tiny.nib; |
| 10420 |
path p[]; numeric tim[]; |
| 10421 |
pos1(.5cap_stem,0); pos2(cap_stem,0); pos3(stem,90); pos4(.4(h+d),80); |
| 10422 |
rt top z1r=(w-u,h); lft x2l=2.5u; top y2=-d+.5stem; |
| 10423 |
y3r=y1r; y4r=y1r+if not medieval: .5\\fi stem; lft x4l=u; x3=x4r+hair; x3l:=x3l+o; |
| 10424 |
p0:=z2l{dir80}...{z1-z2r}z1l; tim1=xpart(p0 intersectiontimes ((0,y3l)--(w,y3l))); z1'=point tim1 of p0 + u*left; |
| 10425 |
filldraw z1r{z2r-z1}...{dir-100}z2r..subpath(0,rundy(p0,(tim1,curve)).zpet) of p0..z1' |
| 10426 |
---z3l..{z4l-z4r}z4l..z4l+left--z4r{down}..z3r---cycle; |
| 10427 |
p100:=z1r{z2r-z1}...{dir-100}z2r; |
| 10428 |
p101:=p0; |
| 10429 |
z100=bsktouch(p100,2left,p101,2right); |
| 10430 |
tim100=xpart(p100 intersectiontimes (z100--(w,y100))); |
| 10431 |
tim101=xpart(p101 intersectiontimes (z100--(0,y100))); |
| 10432 |
oblu:=bbw; |
| 10433 |
infill subpath(rundy(p100,tim100),infinity) of p100 |
| 10434 |
..subpath(0,rundy(p101,tim101).zpet) of p101..cycle; |
| 10435 |
penlabels(1,2,3,4); labels(1',100); |
| 10436 |
endchar; |
| 10437 |
|
| 10438 |
iff known chars.numeral_seven_SS: |
| 10439 |
bskchar "The sans-serif numeral 7"; |
| 10440 |
beginchar(chars.numeral_seven_SS,figw(11u),medfig,medfigd); uni "0x1D7E8"; |
| 10441 |
italcorr h#*slant-.25u#; |
| 10442 |
adjust_fit(0,0); |
| 10443 |
pickup tiny.nib; |
| 10444 |
path p; numeric tim[]; |
| 10445 |
pos1(hair,0); pos2(curve,0); pos3(stem,90); pos4(stem,90); |
| 10446 |
rt top z1r=(w-u,h); lft x2l=2.5u; top y2=-d+.5stem; |
| 10447 |
y3r=y4r=y1r; lft x4l=u; x3=x4r+hair; x3l:=x3l+o; |
| 10448 |
p:=z2l{dir80}...{z1-z2r}z1l; tim1=xpart(p intersectiontimes ((0,y3l)--(w,y3l))); z1'=point tim1 of p + u*left; |
| 10449 |
filldraw z1r{z2r-z1}...{dir-100}z2r..subpath(0,rundy(p,(tim1,curve)).zpet) of p..z1' |
| 10450 |
---z4l+.5stem*right...z4...z4r+.5stem*right---cycle; |
| 10451 |
penlabels(1,2,3,4); labels(1'); |
| 10452 |
endchar; |
| 10453 |
|
| 10454 |
charscription(figwu(9u),fig_height,0)( |
| 10455 |
path p[]; numeric testem, tlstem, tim[]; oblu:=2f_obl; |
| 10456 |
testem=.5[curve, hair]; tlstem=.75[curve,stem]; |
| 10457 |
pos1(testem,0); pos2(tlstem,180); pos3(tlstem,180); pos4(testem,0); |
| 10458 |
pos5(vair,90); pos6(vair,90); |
| 10459 |
lft x1l=u; rt x2l=w-u; x3r=u+hair; x4r=w-x3r; y1=y2=.27h; y3=y4=.76h; |
| 10460 |
x5=x6=.5w; bot y5l=-o; top y6r=h+o; z0=whatever[z1,z4]=whatever[z2,z3]; |
| 10461 |
p0:=z6{left}..z3..z0..z2..{left}z5; pos0(curve,angle(direction 2 of p0)-90); |
| 10462 |
p1=z6r{left}..z3r..z0r..z2r..z5r{left}; |
| 10463 |
p2=z4l{down}..z0{dir-160}..{down}z1l; |
| 10464 |
p3=z5l{right}..z2l..z0l..z3l..{right}z6l; |
| 10465 |
p4=z1r{up}..z0{dir20}..{up}z4r; |
| 10466 |
p5=z6l{left}..z3l..z0l..z2l..z5l{left}; |
| 10467 |
(tim1,tim2)=p1 intersectiontimes p2; |
| 10468 |
(tim3,tim4)=p3 intersectiontimes p4; |
| 10469 |
(tim5,tim6)=p5 intersectiontimes p2; |
| 10470 |
(tim7,tim8)=p1 intersectiontimes p4; |
| 10471 |
filldraw subpath(0,rundy(p1,tim1).zpet) of p1.. |
| 10472 |
subpath(rundy(p2,tim2),infinity) of p2.. |
| 10473 |
subpath(0,rundy(p3,tim3).zpet) of p3.. |
| 10474 |
subpath(rundy(p4,tim4),infinity) of p4..cycle; |
| 10475 |
infill subpath(0,rundy(p5,tim5).zpet) of p5 .. |
| 10476 |
(reverse subpath(0,rundy(p2,tim6).zpet) of p2) .. cycle; |
| 10477 |
infill subpath(rundy(p1,tim7),infinity) of p1.. |
| 10478 |
subpath(0,rundy(p4,tim8).zpet) of p4..cycle; |
| 10479 |
penlabels(0,1,2,3,4,5,6); |
| 10480 |
); |
| 10481 |
|
| 10482 |
iff known chars.numeral_eight: |
| 10483 |
bskchar "The numeral 8"; |
| 10484 |
beginchar(chars.numeral_eight,figw(9u),fig_height#,0); uni "0x0038"; |
| 10485 |
italcorr .5[fig_height#,x_height#]*slant-.5u#; |
| 10486 |
adjust_fit(0,0); |
| 10487 |
pickup tiny.nib; |
| 10488 |
usechar; |
| 10489 |
endchar; |
| 10490 |
|
| 10491 |
iff known chars.superscript_numeral_eight: |
| 10492 |
bskchar "The superscript numeral 8"; |
| 10493 |
beginchar(chars.superscript_numeral_eight,if monofig: 5.5u# else: 5.5u# fi,asc_height#,0); uni "0x2078"; |
| 10494 |
adjust_fit(0,0); |
| 10495 |
pickup tiny.nib; |
| 10496 |
multiply(1.7skal)(curve,hair,vair,stem); |
| 10497 |
usechar shifted (-x1l,0) scaled skal shifted (u+(HH-skal*fig_height)*slant,HH-skal*fig_height); |
| 10498 |
endchar; |
| 10499 |
|
| 10500 |
iff known chars.numeral_eight_BB: |
| 10501 |
bskchar "The blackboard-bold numeral 8"; |
| 10502 |
beginchar(chars.numeral_eight_BB,figw(9u),fig_height#,0); uni "0x1D7E0"; |
| 10503 |
italcorr .5[fig_height#,x_height#]*slant-.5u#; |
| 10504 |
adjust_fit(0,0); |
| 10505 |
pickup tiny.nib; |
| 10506 |
path p[]; numeric testem, tlstem, tim[]; oblu:=2f_obl; |
| 10507 |
testem=.5[curve, cap_stem]; tlstem=cap_stem; |
| 10508 |
pos1(testem,0); pos2(tlstem,180); pos3(tlstem,180); pos4(testem,0); |
| 10509 |
pos5(vair,90); pos6(vair,90); |
| 10510 |
lft x1l=u; rt x2l=w-u; x3r=u+hair; x4r=w-x3r; y1=y2=.27h; y3=y4=.76h; |
| 10511 |
x5=x6=.5w; bot y5l=-o; top y6r=h+o; z0=whatever[z1,z4]=whatever[z2,z3]; |
| 10512 |
p0:=z6{left}..z3..z0..z2..{left}z5; pos0(curve,angle(direction 2 of p0)-90); |
| 10513 |
p1=z6r{left}..z3r..z0r..z2r..z5r{left}; |
| 10514 |
p2=z4l{down}..z0{dir-160}..{down}z1l; |
| 10515 |
p3=z5l{right}..z2l..z0l..z3l..{right}z6l; |
| 10516 |
p4=z1r{up}..z0{dir20}..{up}z4r; |
| 10517 |
p5=z6l{left}..z3l..z0l..z2l..z5l{left}; |
| 10518 |
(tim1,tim2)=p1 intersectiontimes p2; |
| 10519 |
(tim3,tim4)=p3 intersectiontimes p4; |
| 10520 |
(tim5,tim6)=p5 intersectiontimes p2; |
| 10521 |
(tim7,tim8)=p1 intersectiontimes p4; |
| 10522 |
filldraw subpath(0,rundy(p1,tim1).zpet) of p1.. |
| 10523 |
subpath(rundy(p2,tim2),infinity) of p2.. |
| 10524 |
subpath(0,rundy(p3,tim3).zpet) of p3.. |
| 10525 |
subpath(rundy(p4,tim4),infinity) of p4..cycle; |
| 10526 |
infill subpath(0,rundy(p5,tim5).zpet) of p5 .. |
| 10527 |
(reverse subpath(0,rundy(p2,tim6).zpet) of p2) .. cycle; |
| 10528 |
infill subpath(rundy(p1,tim7),infinity) of p1.. |
| 10529 |
subpath(0,rundy(p4,tim8).zpet) of p4..cycle; |
| 10530 |
p100:=p1; |
| 10531 |
p101:=p3; |
| 10532 |
p102:=z6l{right}..p2; |
| 10533 |
p103:=p4..{left}z6r; |
| 10534 |
p104:=p2..{right}z5l; |
| 10535 |
p105:=z5r{left}..p4; |
| 10536 |
z100=bsktouch(subpath(0,1) of p100,down,p101,up); |
| 10537 |
z101=bsktouch(p100,down,subpath(0,1) of p101,up); |
| 10538 |
z102=bsktouch(subpath(0,1) of p102,dir45,p103,dir-135); |
| 10539 |
z103=bsktouch(subpath(1,infinity) of p102,dir-45,p103,dir135); |
| 10540 |
z104=bsktouch(p104,dir-45,subpath(1,2) of p105,dir135); |
| 10541 |
z105=bsktouch(p104,dir45,subpath(0,1) of p105,dir-135); |
| 10542 |
tim100=xpart(p100 intersectiontimes (z100--(x100,y6r+5))); |
| 10543 |
tim101=xpart(p101 intersectiontimes (z100--(x100,y3))); |
| 10544 |
tim102=xpart(p100 intersectiontimes (z101--(x101,y2))); |
| 10545 |
tim103=xpart(p101 intersectiontimes (z101--(x101,y5l-5))); |
| 10546 |
tim104=xpart(p102 intersectiontimes (z102--(x102,y4))); |
| 10547 |
tim105=xpart(p103 intersectiontimes (z102--(x102,y6r+5))); |
| 10548 |
tim106=xpart(p102 intersectiontimes (z103--(x103,y4))); |
| 10549 |
tim107=xpart(p103 intersectiontimes (z103--(x103,y1))); |
| 10550 |
tim108=xpart(p104 intersectiontimes (z104--(x104,y3))); |
| 10551 |
tim109=xpart(p105 intersectiontimes (z104--(x104,y1))); |
| 10552 |
tim110=xpart(p104 intersectiontimes (z105--(x105,y5l-5))); |
| 10553 |
tim111=xpart(p105 intersectiontimes (z105--(x105,y1))); |
| 10554 |
oblu:=bbw; |
| 10555 |
infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100 |
| 10556 |
..subpath(rundy(p101,tim103),rundy(p101,tim101).zpet) of p101..cycle; |
| 10557 |
infill subpath(rundy(p102,tim104),rundy(p102,tim106).zpet) of p102 |
| 10558 |
..subpath(rundy(p103,tim107),rundy(p103,tim105).zpet) of p103..cycle; |
| 10559 |
infill subpath(rundy(p104,tim108),rundy(p104,tim110).zpet) of p104 |
| 10560 |
..subpath(rundy(p105,tim111),rundy(p105,tim109).zpet) of p105..cycle; |
| 10561 |
penlabels(0,1,2,3,4,5,6); labels(100,101,102,103,104,105); |
| 10562 |
endchar; |
| 10563 |
|
| 10564 |
iff known chars.numeral_eight_SS: |
| 10565 |
bskchar "The sans-serif numeral 8"; |
| 10566 |
beginchar(chars.numeral_eight_SS,figw(9u),fig_height#,0); uni "0x1D7E9"; |
| 10567 |
italcorr .5[fig_height#,x_height#]*slant-.5u#; |
| 10568 |
adjust_fit(0,0); |
| 10569 |
pickup tiny.nib; |
| 10570 |
path p[]; numeric testem, tlstem, tim[]; oblu:=2f_obl; |
| 10571 |
testem=.5[curve, stem]; tlstem=.75[curve,stem]; |
| 10572 |
pos1(testem,0); pos2(tlstem,180); pos3(tlstem,180); pos4(testem,0); |
| 10573 |
pos5(hair,90); pos6(hair,90); |
| 10574 |
lft x1l=u; rt x2l=w-u; x3r=u+hair; x4r=w-x3r; y1=y2=.27h; y3=y4=.76h; |
| 10575 |
x5=x6=.5w; bot y5l=-o; top y6r=h+o; z0=whatever[z1,z4]=whatever[z2,z3]; |
| 10576 |
p0:=z6{left}..z3..z0..z2..{left}z5; pos0(curve,angle(direction 2 of p0)-90); |
| 10577 |
p1=z6r{left}..z3r..z0r..z2r..z5r{left}; |
| 10578 |
p2=z4l{down}..z0{dir-160}..{down}z1l; |
| 10579 |
p3=z5l{right}..z2l..z0l..z3l..{right}z6l; |
| 10580 |
p4=z1r{up}..z0{dir20}..{up}z4r; |
| 10581 |
p5=z6l{left}..z3l..z0l..z2l..z5l{left}; |
| 10582 |
(tim1,tim2)=p1 intersectiontimes p2; |
| 10583 |
(tim3,tim4)=p3 intersectiontimes p4; |
| 10584 |
(tim5,tim6)=p5 intersectiontimes p2; |
| 10585 |
(tim7,tim8)=p1 intersectiontimes p4; |
| 10586 |
filldraw subpath(0,rundy(p1,tim1).zpet) of p1.. |
| 10587 |
subpath(rundy(p2,tim2),infinity) of p2.. |
| 10588 |
subpath(0,rundy(p3,tim3).zpet) of p3.. |
| 10589 |
subpath(rundy(p4,tim4),infinity) of p4..cycle; |
| 10590 |
infill subpath(0,rundy(p5,tim5).zpet) of p5 .. |
| 10591 |
(reverse subpath(0,rundy(p2,tim6).zpet) of p2) .. cycle; |
| 10592 |
infill subpath(rundy(p1,tim7),infinity) of p1.. |
| 10593 |
subpath(0,rundy(p4,tim8).zpet) of p4..cycle; |
| 10594 |
penlabels(0,1,2,3,4,5,6); |
| 10595 |
endchar; |
| 10596 |
|
| 10597 |
charscription(figwu(10u),medfigu,medfigdu)( |
| 10598 |
path p[]; numeric tim[]; oblu:=2oblu; |
| 10599 |
pos1(vair,0); pos2(hair,-90); pos3(curve,180); pos4(hair,90); |
| 10600 |
pos5(curve,0); pos6(hair,-90); pos7(curve,160); |
| 10601 |
lft x3r=u; y1=y3; x2+.5hair=x4=.5w-.5hair; top y4r=h+o; .5[y4l,y2l]=y3; y2=if medieval:-hair else: h-x_height fi; |
| 10602 |
rt x5r=w-u; y5r=y1r-stem; |
| 10603 |
bot y6r=-d-o; x6=.5w-.75stem; |
| 10604 |
lft x7r=u; y7=y6r+like_stem; |
| 10605 |
p0=z4l{right}..z5l..{left}z6l; x1l=xpart (((.5w,y1)--(w,y1))intersectionpoint p0); |
| 10606 |
p1=z2r{right}..z1r{up}..z4r..z3r; |
| 10607 |
p2=z4l{right}..z5l..{left}z6l; |
| 10608 |
z0=bsktouch(p1,right,p2,left); |
| 10609 |
tim1=xpart(p1 intersectiontimes (z0--(.5w,y0))); |
| 10610 |
tim2=xpart(p2 intersectiontimes (z0--(w,y0))); |
| 10611 |
filldraw z7l{up}..{down}z7r..z6r{right}..z5r..z4r..z3r..{right}z2r.. |
| 10612 |
subpath(0,rundy(p1,tim1).zpet) of p1.. |
| 10613 |
subpath(rundy(p2,tim2),infinity) of p2..cycle; |
| 10614 |
infill z1l{up}..z4l..z3l..z2l..cycle; |
| 10615 |
penlabels(1,2,3,4,5,6,7); |
| 10616 |
); |
| 10617 |
|
| 10618 |
iff known chars.numeral_nine: |
| 10619 |
bskchar "The numeral 9"; |
| 10620 |
beginchar(chars.numeral_nine,figw(10u),medfig,medfigd); uni "0x0039"; |
| 10621 |
italcorr if medieval: .4x_height# else: (fig_height#-.5x_height#)fi*slant; |
| 10622 |
adjust_fit(0,0); |
| 10623 |
pickup tiny.nib; |
| 10624 |
usechar; |
| 10625 |
endchar; |
| 10626 |
|
| 10627 |
iff known chars.superscript_numeral_nine: |
| 10628 |
bskchar "The superscript numeral 9"; |
| 10629 |
beginchar(chars.superscript_numeral_nine,if monofig: 5.5u# else: 6u# fi,asc_height#,0); uni "0x2079"; |
| 10630 |
adjust_fit(0,0); |
| 10631 |
pickup tiny.nib; |
| 10632 |
multiply(1.7skal)(curve,hair,vair); |
| 10633 |
usechar shifted (-x3r,0) scaled skal shifted (u+(HH-skal*fig_height)*slant,HH-skal*fig_height); |
| 10634 |
endchar; |
| 10635 |
|
| 10636 |
iff known chars.numeral_nine_BB: |
| 10637 |
bskchar "The blackboard-bold numeral 9"; |
| 10638 |
beginchar(chars.numeral_nine_BB,figw(10u),medfig,medfigd); uni "0x1D7E1"; |
| 10639 |
italcorr if medieval: .4x_height# else: (fig_height#-.5x_height#)fi*slant; |
| 10640 |
adjust_fit(0,0); |
| 10641 |
pickup tiny.nib; |
| 10642 |
path p[]; numeric tim[]; oblu:=2oblu; |
| 10643 |
pos1(vair,0); pos2(hair,-90); pos3(cap_stem,180); pos4(hair,90); |
| 10644 |
pos5(cap_stem,0); pos6(hair,-90); pos7(curve,160); |
| 10645 |
lft x3r=u; y1=y3; x2+.5hair=x4=.5w-.5hair; top y4r=h+o; .5[y4l,y2l]=y3; y2=if medieval:-hair else: h-x_height fi; |
| 10646 |
rt x5r=w-u; y5r=y1r-stem; |
| 10647 |
bot y6r=-d-o; x6=.5w-.75stem; |
| 10648 |
lft x7r=u; y7=y6r+like_stem; |
| 10649 |
p0=z4l{right}..z5l..{left}z6l; x1l=xpart (((.5w,y1)--(w,y1))intersectionpoint p0); |
| 10650 |
p1=z2r{right}..z1r{up}..z4r..z3r; |
| 10651 |
p2=z4l{right}..z5l..{left}z6l; |
| 10652 |
z0=bsktouch(p1,right,p2,left); |
| 10653 |
tim1=xpart(p1 intersectiontimes (z0--(.5w,y0))); |
| 10654 |
tim2=xpart(p2 intersectiontimes (z0--(w,y0))); |
| 10655 |
filldraw z7l{up}..{down}z7r..z6r{right}..z5r..z4r..z3r..{right}z2r.. |
| 10656 |
subpath(0,rundy(p1,tim1).zpet) of p1.. |
| 10657 |
subpath(rundy(p2,tim2),infinity) of p2..cycle; |
| 10658 |
infill z1l{up}..z4l..z3l..z2l..cycle; |
| 10659 |
p100:=z6r{right}..z5r..z4r..z3r..{right}z2r; |
| 10660 |
p101:=z1l{down}..z2l..z3l..z4l..cycle; |
| 10661 |
p102:=p100; |
| 10662 |
p103:=p2; |
| 10663 |
oblu:=1.25bbw; |
| 10664 |
z100=bsktouch(subpath(2,infinity) of p100,down,p101,up); |
| 10665 |
z101=bsktouch(p100,up,p101,down); |
| 10666 |
z102=bsktouch(p102,up,p103,down); |
| 10667 |
z103=bsktouch(p102,down,p103,up); |
| 10668 |
tim100=xpart(p100 intersectiontimes (z100--(x100,y4r+5))); |
| 10669 |
tim101=xpart(p101 intersectiontimes (z100--(x100,y1))); |
| 10670 |
tim102=xpart(p100 intersectiontimes (z101--(x101,y2r-5))); |
| 10671 |
tim103=xpart(p101 intersectiontimes (z101--(x101,y1))); |
| 10672 |
tim104=xpart(p102 intersectiontimes (z102--(x102,y6r-5))); |
| 10673 |
tim105=xpart(p103 intersectiontimes (z102--(x102,y1))); |
| 10674 |
tim106=xpart(p102 intersectiontimes (z103--(x103,y4r+5))); |
| 10675 |
tim107=xpart(p103 intersectiontimes (z103--(x103,y1))); |
| 10676 |
infill subpath(rundy(p100,tim100),rundy(p100,tim102).zpet) of p100 |
| 10677 |
..subpath(rundy(p101,tim103),rundy(p101,tim101).zpet) of p101..cycle; |
| 10678 |
infill subpath(rundy(p102,tim104),rundy(p102,tim106).zpet) of p102 |
| 10679 |
..subpath(rundy(p103,tim107),rundy(p103,tim105).zpet) of p103..cycle; |
| 10680 |
penlabels(1,2,3,4,5,6,7); labels(100,101,102,103); |
| 10681 |
endchar; |
| 10682 |
|
| 10683 |
iff known chars.numeral_nine_SS: |
| 10684 |
bskchar "The sans-serif numeral 9"; |
| 10685 |
beginchar(chars.numeral_nine_SS,figw(10u),medfig,medfigd); uni "0x1D7EA"; |
| 10686 |
italcorr if medieval: .4x_height# else: (fig_height#-.5x_height#)fi*slant; |
| 10687 |
adjust_fit(0,0); |
| 10688 |
pickup tiny.nib; |
| 10689 |
path p[]; numeric tim[]; oblu:=2oblu; |
| 10690 |
pos1(hair,0); pos2(hair,-90); pos3(curve,180); pos4(hair,90); |
| 10691 |
pos5(curve,0); pos6(hair,-90); pos7(curve,160); |
| 10692 |
lft x3r=u; y1=y3; x2+.5hair=x4=.5w-.5hair; top y4r=h+o; .5[y4l,y2l]=y3; y2=if medieval:-hair else: h-x_height fi; |
| 10693 |
rt x5r=w-u; y5r=y1r-stem; |
| 10694 |
bot y6r=-d-o; x6=.5w-.75stem; |
| 10695 |
lft x7r=u; y7=y6r+like_stem; |
| 10696 |
p0=z4l{right}..z5l..{left}z6l; x1l=xpart (((.5w,y1)--(w,y1))intersectionpoint p0); |
| 10697 |
p1=z2r{right}..z1r{up}..z4r..z3r; |
| 10698 |
p2=z4l{right}..z5l..{left}z6l; |
| 10699 |
z0=bsktouch(p1,right,p2,left); |
| 10700 |
tim1=xpart(p1 intersectiontimes (z0--(.5w,y0))); |
| 10701 |
tim2=xpart(p2 intersectiontimes (z0--(w,y0))); |
| 10702 |
filldraw z7l{up}..{down}z7r..z6r{right}..z5r..z4r..z3r..{right}z2r.. |
| 10703 |
subpath(0,rundy(p1,tim1).zpet) of p1.. |
| 10704 |
subpath(rundy(p2,tim2),infinity) of p2..cycle; |
| 10705 |
infill z1l{up}..z4l..z3l..z2l..cycle; |
| 10706 |
penlabels(1,2,3,4,5,6,7); |
| 10707 |
endchar; |
| 10708 |
|
| 10709 |
iff known chars.sign_query: |
| 10710 |
bskchar "Question mark"; |
| 10711 |
beginchar(chars.sign_query, 9.5u#, asc_height#, 0); uni "0x003F"; |
| 10712 |
italcorr .5[asc_height#,x_height#]*slant-.25u#; |
| 10713 |
adjust_fit(punct_fit#,0); |
| 10714 |
pickup tiny.nib; |
| 10715 |
path p[]; |
| 10716 |
bot z0=(2u+.5dot_size,.5dot_size); dot(0); |
| 10717 |
pos1(hair,90); pos2(curve,180); pos3(curve,0); pos4(like_hair,-135); pos5(hair,0); |
| 10718 |
z2'=z2+.2curve*down+o*right; |
| 10719 |
z2''=z2+.5(curve-currentbreadth)*dir135; |
| 10720 |
x1=.45w; top y1r=h+o; |
| 10721 |
y2''=1/4[h,x_height]; lft x2r=u; |
| 10722 |
rt x3r=w-u; y3=.5[y1r,y4l]; |
| 10723 |
lft x4l=x0+.25stem-.25dot_size; y4=.75x_height; |
| 10724 |
z4'=(x4l-.5stem, y4l); y5=y0+.5dot_size+stem; z5=whatever[z0,.5[z4',z4l]]; |
| 10725 |
p0=z3r{down}..z4; |
| 10726 |
p1=z4r--z5r; |
| 10727 |
filldraw z5l---z4'..z4l..z3l{up}..z1l{left}..{dir-70}z2l..z2'..{up}z2r..z2''..{right}z1r.. |
| 10728 |
subpath(0,rundy(p0,1).zpet) of p0..subpath(rundy(p1,0),1) of p1..cycle; |
| 10729 |
penlabels(1,2,3,4,5); labels(2',2'',4'); |
| 10730 |
endchar; |
| 10731 |
|
| 10732 |
iff known chars.sign_interrobang: |
| 10733 |
bskchar "Interrobang mark"; |
| 10734 |
beginchar(chars.sign_interrobang, 9.5u#, asc_height#, 0); uni "0x203D"; |
| 10735 |
italcorr .5[asc_height#,x_height#]*slant-.25u#; |
| 10736 |
adjust_fit(punct_fit#,0); |
| 10737 |
pickup tiny.nib; |
| 10738 |
path p[]; numeric tim[]; |
| 10739 |
bot z0=(2u+.5dot_size,.5dot_size); dot(0); |
| 10740 |
pos1(hair,90); pos2(curve,180); pos3(curve,0); pos4(like_hair,-135); pos5(hair,0); |
| 10741 |
penpos6(dot_size,0); pos7(hair,0); x6=x7=x0; |
| 10742 |
z2'=z2+.2curve*down+o*right; |
| 10743 |
z2''=z2+.5(curve-currentbreadth)*dir135; |
| 10744 |
x1=.45w; top y1r=h+o; |
| 10745 |
y2''=1/4[h,x_height]; lft x2r=u; |
| 10746 |
rt x3r=w-u; y3=.5[y1r,y4l]; |
| 10747 |
lft x4l=x0+.25stem-.25dot_size; y4=.75x_height; |
| 10748 |
z4'=(x4l-.5stem, y4l); y5=y0+.5dot_size+stem; z5=whatever[z0,.5[z4',z4l]]; |
| 10749 |
y6=h-.5stem; bot y7=dot_size+stem; y7r:=y7r+.5hair; |
| 10750 |
p0=z3r{down}..z4; |
| 10751 |
p1=z4r--z5r; |
| 10752 |
p2=z5l---z4'..z4l..z3l{up}..z1l{left}..{dir-70}z2l..z2'..{up}z2r; |
| 10753 |
p3=z2r{up}..z2''..{right}z1r..subpath(0,rundy(p0,1).zpet) of p0..subpath(rundy(p1,0),1) of p1; |
| 10754 |
p4=z7l---z6l..z6r{z7r-z6r}..z7r{z7r-.5[z6,z6r]}..{z6l-z7l}z7l; |
| 10755 |
(tim0-3,tim1)=subpath(3,infinity) of p2 intersectiontimes subpath(0,2) of p4; |
| 10756 |
(tim2,tim3)=subpath(0,2) of p3 intersectiontimes subpath(0,1.5) of p4; |
| 10757 |
(tim4,tim5-1)=subpath(0,3) of p3 intersectiontimes subpath(1,infinity) of p4; |
| 10758 |
(tim6-3,tim7-2)=subpath(3,6) of p3 intersectiontimes subpath(2,infinity) of p4; |
| 10759 |
(tim8,tim9-2)=subpath(0,3) of p2 intersectiontimes subpath(2,infinity) of p4; |
| 10760 |
(tim10-3,tim11-1)=subpath(3,5) of p2 intersectiontimes subpath(1,infinity) of p4; |
| 10761 |
filldraw subpath(0,rundy(p4,(tim1,2oblu)).zpet) of p4 |
| 10762 |
..subpath(rundy(p2,(tim0,2oblu)),infinity) of p2 |
| 10763 |
..subpath(0,rundy(p3,tim2).zpet) of p3 |
| 10764 |
..subpath(rundy(p4,tim3),rundy(p4,tim5).zpet) of p4 |
| 10765 |
..subpath(rundy(p3,tim4),rundy(p3,tim6).zpet) of p3 |
| 10766 |
..subpath(rundy(p4,tim7),infinity) of p4..cycle; |
| 10767 |
infill subpath(rundy(p2,tim8),rundy(p2,tim10).zpet) of p2 |
| 10768 |
..subpath(rundy(p4,tim11),rundy(p4,tim9).zpet) of p4..cycle; |
| 10769 |
penlabels(1,2,3,4,5,6,7); labels(2',2'',4'); |
| 10770 |
endchar; |
| 10771 |
|
| 10772 |
iff known chars.sign_query_double: |
| 10773 |
bskchar "Double question mark"; |
| 10774 |
beginchar(chars.sign_query_double, 16u#, asc_height#, 0); uni "0x2047"; |
| 10775 |
italcorr .5[asc_height#,x_height#]*slant-.25u#; |
| 10776 |
adjust_fit(0,0); |
| 10777 |
pickup tiny.nib; |
| 10778 |
path p[]; |
| 10779 |
bot z0=(2u+.5dot_size,.5dot_size); dot(0); |
| 10780 |
pos1(hair,90); pos2(curve,180); pos3(curve,0); pos4(like_hair,-135); pos5(hair,0); |
| 10781 |
z2'=z2+.2curve*down+o*right; |
| 10782 |
z2''=z2+.5(curve-currentbreadth)*dir135; |
| 10783 |
x1=.45(w-6.5u); top y1r=h+o; |
| 10784 |
y2''=1/4[h,x_height]; lft x2r=u; |
| 10785 |
rt x3r=w-8.5u; y3=.5[y1r,y4l]; |
| 10786 |
lft x4l=x0+.25stem-.25dot_size; y4=.75x_height; |
| 10787 |
z4'=(x4l-.5stem, y4l); y5=y0+.5dot_size+stem; z5=whatever[z0,.5[z4',z4l]]; |
| 10788 |
p0=z3r{down}..z4; |
| 10789 |
p1=z4r--z5r; |
| 10790 |
z6=z0 shifted (w-u-x3r,0); dot(6); |
| 10791 |
filldraw z5l---z4'..z4l..z3l{up}..z1l{left}..{dir-70}z2l..z2'..{up}z2r..z2''..{right}z1r.. |
| 10792 |
subpath(0,rundy(p0,1).zpet) of p0..subpath(rundy(p1,0),1) of p1..cycle; |
| 10793 |
filldraw (z5l---z4'..z4l..z3l{up}..z1l{left}..{dir-70}z2l..z2'..{up}z2r..z2''..{right}z1r.. |
| 10794 |
subpath(0,rundy(p0,1).zpet) of p0..subpath(rundy(p1,0),1) of p1..cycle) shifted (w-u-x3r,0); |
| 10795 |
penlabels(1,2,3,4,5); labels(2',2'',4'); |
| 10796 |
endchar; |
| 10797 |
|
| 10798 |
iff known chars.sign_query_exclam: |
| 10799 |
bskchar "Question exclamation mark"; |
| 10800 |
beginchar(chars.sign_query_exclam, 13.5u#, asc_height#, 0); uni "0x2048"; |
| 10801 |
italcorr .5[asc_height#,x_height#]*slant-.25u#; |
| 10802 |
adjust_fit(0,0); |
| 10803 |
pickup tiny.nib; |
| 10804 |
path p[]; |
| 10805 |
bot z0=(2u+.5dot_size,.5dot_size); dot(0); |
| 10806 |
pos1(hair,90); pos2(curve,180); pos3(curve,0); pos4(like_hair,-135); pos5(hair,0); |
| 10807 |
z2'=z2+.2curve*down+o*right; |
| 10808 |
z2''=z2+.5(curve-currentbreadth)*dir135; |
| 10809 |
x1=.45(w-4u); top y1r=h+o; |
| 10810 |
y2''=1/4[h,x_height]; lft x2r=u; |
| 10811 |
rt x3r=w-5u; y3=.5[y1r,y4l]; |
| 10812 |
lft x4l=x0+.25stem-.25dot_size; y4=.75x_height; |
| 10813 |
z4'=(x4l-.5stem, y4l); y5=y0+.5dot_size+stem; z5=whatever[z0,.5[z4',z4l]]; |
| 10814 |
p0=z3r{down}..z4; |
| 10815 |
p1=z4r--z5r; |
| 10816 |
filldraw z5l---z4'..z4l..z3l{up}..z1l{left}..{dir-70}z2l..z2'..{up}z2r..z2''..{right}z1r.. |
| 10817 |
subpath(0,rundy(p0,1).zpet) of p0..subpath(rundy(p1,0),1) of p1..cycle; |
| 10818 |
bot y6=.5dot_size; x6=w-3u; dot(6); |
| 10819 |
penpos7(dot_size,0); pos8(hair,0); x7=x8=x6; |
| 10820 |
y7=h-.5stem; bot y8=dot_size+stem; y8r:=y8r+.5hair; |
| 10821 |
filldraw z7l---z8l..{.5[z7,z7r]-z8r}z8r..{z7r-z8r}z7r..cycle; |
| 10822 |
penlabels(1,2,3,4,5,7,8,); labels(2',2'',4'); |
| 10823 |
endchar; |
| 10824 |
|
| 10825 |
iff known chars.sign_exclam_query: |
| 10826 |
bskchar "Exclamation query mark"; |
| 10827 |
beginchar(chars.sign_exclam_query, 13.5u#, asc_height#, 0); uni "0x2049"; |
| 10828 |
italcorr .5[asc_height#,x_height#]*slant-.25u#; |
| 10829 |
adjust_fit(0,0); |
| 10830 |
pickup tiny.nib; |
| 10831 |
path p[]; |
| 10832 |
bot z0=(6u+.5dot_size,.5dot_size); dot(0); |
| 10833 |
pos1(hair,90); pos2(curve,180); pos3(curve,0); pos4(like_hair,-135); pos5(hair,0); |
| 10834 |
z2'=z2+.2curve*down+o*right; |
| 10835 |
z2''=z2+.5(curve-currentbreadth)*dir135; |
| 10836 |
x1=4u+.45(w-4u); top y1r=h+o; |
| 10837 |
y2''=1/4[h,x_height]; lft x2r=5u; |
| 10838 |
rt x3r=w-u; y3=.5[y1r,y4l]; |
| 10839 |
lft x4l=x0+.25stem-.25dot_size; y4=.75x_height; |
| 10840 |
z4'=(x4l-.5stem, y4l); y5=y0+.5dot_size+stem; z5=whatever[z0,.5[z4',z4l]]; |
| 10841 |
p0=z3r{down}..z4; |
| 10842 |
p1=z4r--z5r; |
| 10843 |
filldraw z5l---z4'..z4l..z3l{up}..z1l{left}..{dir-70}z2l..z2'..{up}z2r..z2''..{right}z1r.. |
| 10844 |
subpath(0,rundy(p0,1).zpet) of p0..subpath(rundy(p1,0),1) of p1..cycle; |
| 10845 |
bot y6=.5dot_size; x6=3u; dot(6); |
| 10846 |
penpos7(dot_size,0); pos8(hair,0); x7=x8=x6; |
| 10847 |
y7=h-.5stem; bot y8=dot_size+stem; y8r:=y8r+.5hair; |
| 10848 |
filldraw z7l---z8l..{.5[z7,z7r]-z8r}z8r..{z7r-z8r}z7r..cycle; |
| 10849 |
penlabels(1,2,3,4,5,7,8,); labels(2',2'',4'); |
| 10850 |
endchar; |
| 10851 |
|
| 10852 |
iff known chars.sign_turned_query: |
| 10853 |
bskchar "Turned question mark"; |
| 10854 |
beginchar(chars.sign_turned_query, 9.5u#, asc_height#-desc_depth#, desc_depth#); uni "non"; |
| 10855 |
adjust_fit(0,0); |
| 10856 |
pickup tiny.nib; |
| 10857 |
path p[]; |
| 10858 |
top z0=(2u+.5dot_size,h-.5dot_size); dot(0); |
| 10859 |
pos1(hair,-90); pos2(curve,180); pos3(curve,0); pos4(like_hair,135); pos5(hair,0); |
| 10860 |
z2'=z2+.2curve*up+o*right; |
| 10861 |
z2''=z2+.5(curve-currentbreadth)*dir-135; |
| 10862 |
x1=.45w; bot y1r=-d-o; |
| 10863 |
y2''=1/4[-d,-d+(asc_height-x_height)]; lft x2r=u; |
| 10864 |
rt x3r=w-u; y3=.5[y1r,y4l]; |
| 10865 |
lft x4l=x0+.25stem-.25dot_size; y4=-d+(asc_height-.75x_height); |
| 10866 |
z4'=(x4l-.5stem, y4l); y5=y0-.5dot_size-stem; z5=whatever[z0,.5[z4',z4l]]; |
| 10867 |
p0=z3r{up}..z4; |
| 10868 |
p1=z4r--z5r; |
| 10869 |
filldraw z5l---z4'..z4l..z3l{down}..z1l{left}..{dir70}z2l..z2'..{down}z2r..z2''..{right}z1r.. |
| 10870 |
subpath(0,rundy(p0,1).zpet) of p0..subpath(rundy(p1,0),1) of p1..cycle; |
| 10871 |
penlabels(1,2,3,4,5); labels(2',2'',4'); |
| 10872 |
endchar; |
| 10873 |
|
| 10874 |
iff known chars.sign_spanish_query: |
| 10875 |
bskchar "Reversed question mark"; |
| 10876 |
beginchar(chars.sign_spanish_query, 9.5u#, asc_height#-desc_depth#, desc_depth#); uni "0x00BF"; |
| 10877 |
adjust_fit(0,0); |
| 10878 |
pickup tiny.nib; |
| 10879 |
path p[]; |
| 10880 |
top z0=(w-2u-.5dot_size,h-.5dot_size); dot(0); |
| 10881 |
pos1(hair,-90); pos2(curve,0); pos3(curve,180); pos4(like_hair,45); pos5(hair,180); |
| 10882 |
z2'=z2+.2curve*up+o*left; |
| 10883 |
z2''=z2+.5(curve-currentbreadth)*dir-45; |
| 10884 |
x1=.55w; bot y1r=-d-o; |
| 10885 |
y2''=1/4[-d,-d+(asc_height-x_height)]; rt x2r=w-u; |
| 10886 |
lft x3r=u; y3=.5[y1r,y4l]; |
| 10887 |
rt x4l=x0-.25stem+.25dot_size; y4=-d+(asc_height-.75x_height); |
| 10888 |
z4'=(x4l+.5stem, y4l); y5=y0-.5dot_size-stem; z5=whatever[z0,.5[z4',z4l]]; |
| 10889 |
p0=z3r{up}..z4; |
| 10890 |
p1=z4r--z5r; |
| 10891 |
filldraw z5l---z4'..z4l..z3l{down}..z1l{right}..{dir110}z2l..z2'..{down}z2r..z2''..{left}z1r.. |
| 10892 |
subpath(0,rundy(p0,1).zpet) of p0..subpath(rundy(p1,0),1) of p1..cycle; |
| 10893 |
penlabels(1,2,3,4,5); labels(2',2'',4'); |
| 10894 |
endchar; |
| 10895 |
|
| 10896 |
iff known chars.sign_gnaborretni: |
| 10897 |
bskchar "Reversed interrobang mark"; |
| 10898 |
beginchar(chars.sign_gnaborretni, 9.5u#, asc_height#-desc_depth#, desc_depth#); uni "non"; |
| 10899 |
adjust_fit(0,0); |
| 10900 |
pickup tiny.nib; |
| 10901 |
path p[]; numeric tim[]; |
| 10902 |
top z0=(w-2u-.5dot_size,h-.5dot_size); dot(0); |
| 10903 |
pos1(hair,-90); pos2(curve,0); pos3(curve,180); pos4(like_hair,45); pos5(hair,180); |
| 10904 |
penpos6(dot_size,180); pos7(hair,180); x6=x7=x0; |
| 10905 |
z2'=z2+.2curve*up+o*left; |
| 10906 |
z2''=z2+.5(curve-currentbreadth)*dir-45; |
| 10907 |
x1=.55w; bot y1r=-d-o; |
| 10908 |
y2''=1/4[-d,-d+(asc_height-x_height)]; rt x2r=w-u; |
| 10909 |
lft x3r=u; y3=.5[y1r,y4l]; |
| 10910 |
rt x4l=x0-.25stem+.25dot_size; y4=-d+(asc_height-.75x_height); |
| 10911 |
z4'=(x4l+.5stem, y4l); y5=y0-.5dot_size-stem; z5=whatever[z0,.5[z4',z4l]]; |
| 10912 |
y6=-d+.5stem; top y7=h-dot_size-stem; y7r:=y7r-.5hair; |
| 10913 |
p0=z3r{up}..z4; |
| 10914 |
p1=z4r--z5r; |
| 10915 |
p2=z5l---z4'..z4l..z3l{down}..z1l{right}..{dir110}z2l..z2'..{down}z2r; |
| 10916 |
p3=z2r{down}..z2''..{left}z1r..subpath(0,rundy(p0,1).zpet) of p0..subpath(rundy(p1,0),1) of p1; |
| 10917 |
p4=z7l---z6l..z6r{z7r-z6r}..z7r{z7r-.5[z6,z6r]}..{z6l-z7l}z7l; |
| 10918 |
(tim0-3,tim1)=subpath(3,infinity) of p2 intersectiontimes subpath(0,2) of p4; |
| 10919 |
(tim2,tim3)=subpath(0,2) of p3 intersectiontimes subpath(0,1.5) of p4; |
| 10920 |
(tim4,tim5-1)=subpath(0,3) of p3 intersectiontimes subpath(1,infinity) of p4; |
| 10921 |
(tim6-3,tim7-2)=subpath(3,6) of p3 intersectiontimes subpath(2,infinity) of p4; |
| 10922 |
(tim8,tim9-2)=subpath(0,3) of p2 intersectiontimes subpath(2,infinity) of p4; |
| 10923 |
(tim10-3,tim11-1)=subpath(3,5) of p2 intersectiontimes subpath(1,infinity) of p4; |
| 10924 |
filldraw subpath(0,rundy(p4,(tim1,2oblu)).zpet) of p4 |
| 10925 |
..subpath(rundy(p2,(tim0,2oblu)),infinity) of p2 |
| 10926 |
..subpath(0,rundy(p3,tim2).zpet) of p3 |
| 10927 |
..subpath(rundy(p4,tim3),rundy(p4,tim5).zpet) of p4 |
| 10928 |
..subpath(rundy(p3,tim4),rundy(p3,tim6).zpet) of p3 |
| 10929 |
..subpath(rundy(p4,tim7),infinity) of p4..cycle; |
| 10930 |
infill subpath(rundy(p2,tim8),rundy(p2,tim10).zpet) of p2 |
| 10931 |
..subpath(rundy(p4,tim11),rundy(p4,tim9).zpet) of p4..cycle; |
| 10932 |
penlabels(1,2,3,4,5,6,7); labels(2',2'',4'); |
| 10933 |
endchar; |
| 10934 |
|
| 10935 |
iff known chars.sign_ampersand: |
| 10936 |
bskchar "Ampersand"; |
| 10937 |
beginchar(chars.sign_ampersand, 14u#, asc_height#, 0); uni "0x0026"; |
| 10938 |
italcorr x_height#*slant; |
| 10939 |
adjust_fit(0,0); |
| 10940 |
pickup tiny.nib; |
| 10941 |
numeric alpha, tim[]; |
| 10942 |
path p[]; |
| 10943 |
numeric radius; radius:=2hair; oblu:=2oblu; |
| 10944 |
pos1(hair,180); pos4(hair,-90); pos5(hair,180); |
| 10945 |
rt x1r=w-u-hair; y1=y2; top y4l=h+o; x4-x3'=if monospace:expansion_factor*fi (y4-y3'); |
| 10946 |
lft x3l=if monospace: 2u else:3u fi +stem; |
| 10947 |
rt x2r=x1r-if monospace:.85expansion_factor*fi(y2r+u); y3l=x_height; y2r=.25x_height; |
| 10948 |
alpha=diag_ratio(2,stem,y3l-y2r,x3l-x2r); |
| 10949 |
pos2(alpha*stem,0); pos3(alpha*stem,0); pos3'(stem,0); |
| 10950 |
.5[x3'r,rt x5r-if not monospace:.5\\fi hair]=x4; y5=y3'=.5[x_height,h]; |
| 10951 |
x3'r-x3r=(y3'-y3)*cosd(angle(z3-z2)); |
| 10952 |
bot y2'=-o; x2'=.5[x2r,x1l]; |
| 10953 |
pos6(curve,180); pos7(.5[hair,stem],270); pos8(hair,-45); pos9(hair,270); pos10(stem,180); |
| 10954 |
lft x6r=u; y6r-y7r=x7-x6; bot y7r=-o; x7=x3; x8=x2; |
| 10955 |
y8=bar_height; top y9l=x_height+o; x9=.5[x8,w-u]+.5hair; |
| 10956 |
z10'=z10+.2stem*down+o*left; z10''=z10+.5(stem-currentbreadth)*dir 45; |
| 10957 |
rt x10l=w-u; y10''=y9r-hair; |
| 10958 |
p0=z1l{z2'+u*right-z1l}..{left}z2'..z2l---z3l..z3'l..z4l..{down}z5l..{down}z6l; |
| 10959 |
p1=z6l{down}..z7l..z8l..{right}z9l..z10''..{down}z10l..z10'.. |
| 10960 |
z10r..z9r{left}..z8r..z7r..{up}z6r; |
| 10961 |
p2=z6r{up}..z5r{up}..z4r..z3'r..z3r---z2r..{up}z1r; |
| 10962 |
(tim0,tim1-9)=p0 intersectiontimes (subpath (9,infinity) of p1); |
| 10963 |
(tim2,tim3)=p2 intersectiontimes p0; |
| 10964 |
(tim4-3,tim5-5)=(subpath(3,infinity) of p2) intersectiontimes subpath(5,infinity) of p0; |
| 10965 |
(tim6-3,tim7)=(subpath(3,infinity) of p2) intersectiontimes p1; |
| 10966 |
(tim8-8,tim9)=(subpath(8,infinity) of p1) intersectiontimes p2; |
| 10967 |
(tim10,tim11-3)=p2 intersectiontimes subpath (3,infinity) of p2; |
| 10968 |
(tim12,tim13)=p1 intersectiontimes p0; |
| 10969 |
(tim14,tim15-5)=p0 intersectiontimes subpath(5,infinity) of p0; |
| 10970 |
filldraw subpath(0,rundy(p0,tim0).zpet) of p0..subpath(rundy(p1,tim1),infinity) of p1..subpath (0,rundy(p2,tim2).zpet) of p2..subpath(rundy(p0,tim3),rundy(p0,tim5).zpet) of p0..subpath(rundy(p2,tim4),rundy(p2,(tim6,hair)).zpet) of p2..subpath(rundy(p1,(2,f_obl)),8) of p1..subpath (8,rundy(p1,tim8).zpet) of p1..subpath(rundy(p2,tim9),infinity) of p2..cycle; |
| 10971 |
infill subpath(rundy(p2,tim10),rundy(p2,tim11).zpet) of p2..cycle; |
| 10972 |
infill subpath(0,rundy(p1,tim12).zpet) of p1 |
| 10973 |
..subpath(rundy(p0,tim13),rundy(p0,tim14).zpet) of p0 |
| 10974 |
..subpath(rundy(p0,tim15),infinity) of p0..cycle; |
| 10975 |
penlabels(1,2,3,3',4,5,6,7,8,9,10); labels(2',10',10''); |
| 10976 |
endchar; |
| 10977 |
|
| 10978 |
iff known chars.sign_at: |
| 10979 |
bskchar "At sign"; |
| 10980 |
beginchar(chars.sign_at, 16u#, asc_height#-.3desc_depth#, .6desc_depth#); uni "0x0040"; |
| 10981 |
adjust_fit(0,0); |
| 10982 |
pickup tiny.nib; |
| 10983 |
numeric aend,H,W,shift; aend:=stem; H:=x_height; W=9u; oblu:=2oblu; |
| 10984 |
path p[]; numeric tim[]; |
| 10985 |
shift=.5(w-W) if not monospace: + hair fi; |
| 10986 |
pos0(hair,180); pos0'(.9[stem,hair],90); pos1(stem,0); pos2(stem,0); |
| 10987 |
pos3(hair,90); pos4(aend,180); z4'=z4+.2aend*down+o*right; |
| 10988 |
z4''=z4+.5(aend-currentbreadth)*dir135; |
| 10989 |
rt x1r=W-u- if monospace: .25\\fi stem +shift; x2=x1; y1=stem+hair; y2=H-like_curve; |
| 10990 |
x0l=W if not monospace: -.75u fi +shift; y0=2/3(x0r-x1r); y0'l=0; x0'=.5[x0r,x1r]; |
| 10991 |
x3=.5[x1r,lft u+shift]; top y3r=H+o; |
| 10992 |
y4''=.5[y2,y3l]; lft x4r=u if not monospace:+o fi +shift; |
| 10993 |
z5l=z2l; z6l=z5l+like_hair*down; z7=(u+shift,y1); |
| 10994 |
pos6(hair,angle(z7-z6l)+90); |
| 10995 |
pos8(curve,30); lft x8l=if not monospace: u+ fi shift; y8r=y7-hair; |
| 10996 |
pos9(hair,120); x9r=x3; y9l=o; |
| 10997 |
pos10(hair,angle(z1-z9l)+90); z10l=z1; |
| 10998 |
pos11(hair,0); pos12(hair,90); pos13(hair,180); pos14(hair,270); |
| 10999 |
pos15(hair,0); |
| 11000 |
lft x13r=u; y13=bar_height; y15=if monospace: 0 else:.2bar_height fi; rt x15r=w-u; |
| 11001 |
top y12r=h+o; bot y14r=-d+o; x12=x14=.5w; |
| 11002 |
z11r=(z12r{right}..{dir(angle(z0'l-z0r)+10)}z0l) intersectionpoint |
| 11003 |
((.5w,y13)--(w,y13)); |
| 11004 |
p0=z0l{dir(angle(z0'l-z0r)+10)}..z0'l{left}..z1l---z2l..{left}z3l.. |
| 11005 |
{down}z4l..z4'..{up}z4r..z4''..{right}z3r...z2r---z1r.. |
| 11006 |
{right}z0'r..{dir(angle(z0r-z0'l)+10)}z0r..{up}z11l..{left}z12l..z13l.. |
| 11007 |
{right}z14l..{dir(angle(z0r-z0'l)+10)}z15l..z15r{dir(angle(z0'l-z0r)+10)} |
| 11008 |
..z14r{left}..z13r..{right}z12r..{down}z11r; |
| 11009 |
p1=z10l{z9l-z1}..z9l..z8l..{z6l-z7-hair*up}z6l; |
| 11010 |
p2=z10r{z9l-z1}..z9r..z8r..{z6r-z7-hair*up}z6r; |
| 11011 |
(tim1,tim2)=p0 intersectiontimes p1; |
| 11012 |
(tim3-2,tim4)=subpath(2,infinity) of p1 intersectiontimes p0; |
| 11013 |
(tim5,tim6)=p2 intersectiontimes p0; |
| 11014 |
(tim7-2,tim8)=subpath(2,infinity) of p2 intersectiontimes p0; |
| 11015 |
filldraw subpath(0,rundy(p0,tim1).zpet) of p0.. |
| 11016 |
subpath(rundy(p1,tim2),rundy(p1,tim3).zpet) of p1.. |
| 11017 |
subpath(rundy(p0,tim4),length p0) of p0..cycle; |
| 11018 |
if bold_face: oblu:=.5f_obl; fi |
| 11019 |
infill subpath(rundy(p2,tim5),rundy(p2,tim7).zpet) of p2.. |
| 11020 |
subpath(rundy(p0,tim8).zpet,rundy(p0,tim6)) of p0..cycle; |
| 11021 |
penlabels(0,0',1,2,3,4,5,6,8,9,10,11,12,13,14,15); labels(4',4'',7); |
| 11022 |
endchar; |