| 1 |
% ebrlwest.mf |
| 2 |
% [= exrlwest.mf, changed by Walter Schmidt, see (CMBR)] |
| 3 |
% |
| 4 |
% (c) Copyright 1995, 1996, 1997 J"org Knappen |
| 5 |
% (c) Copyright 1990, 1992 Norbert Schwarz |
| 6 |
% |
| 7 |
% This file is part of the EC Bright fonts version 1.0 |
| 8 |
% |
| 9 |
% Content: |
| 10 |
% |
| 11 |
% lowercase accented letters ("western part") |
| 12 |
% |
| 13 |
% oct"340" .. oct"377" |
| 14 |
% |
| 15 |
% oct"340" a with gravis |
| 16 |
% oct"341" a with acute |
| 17 |
% oct"342" a with circumflex |
| 18 |
% oct"343" a with tilde |
| 19 |
% oct"344" a with umlaut |
| 20 |
% oct"345" a with ring |
| 21 |
% oct"346" ae |
| 22 |
% oct"347" c with cedilla |
| 23 |
% |
| 24 |
% oct"350" e with gravis |
| 25 |
% oct"351" e with acute |
| 26 |
% oct"352" e with circumflex |
| 27 |
% oct"353" e with umlaut |
| 28 |
% oct"354" i with gravis |
| 29 |
% oct"355" i with acute |
| 30 |
% oct"356" i with circumflex |
| 31 |
% oct"357" i with umlaut |
| 32 |
% |
| 33 |
% oct"360" edh (icelandic) |
| 34 |
% oct"361" n with tilde |
| 35 |
% oct"362" o with gravis |
| 36 |
% oct"363" o with acute |
| 37 |
% oct"364" o with circumflex |
| 38 |
% oct"365" o with tilde |
| 39 |
% oct"366" o with umlaut |
| 40 |
% oct"367" oe |
| 41 |
% |
| 42 |
% oct"370" o with / |
| 43 |
% oct"371" u with gravis |
| 44 |
% oct"372" u with acute |
| 45 |
% oct"373" u with circumflex |
| 46 |
% oct"374" u with umlaut |
| 47 |
% oct"375" y with acute |
| 48 |
% oct"376" thorn |
| 49 |
% oct"377" sharp s |
| 50 |
|
| 51 |
version_check(1,0); % |version_check| was introduced in dc1.3 |
| 52 |
|
| 53 |
ecchar "The letter a with gravis"; |
| 54 |
beginchar_twice(oct"340",9u#,x_height#+acc_height#,0); |
| 55 |
bh#:=min(bar_height#,1.14x_height#-bar_height#); define_pixels(bh); |
| 56 |
italcorr 1/3[bh#,x_height#]*slant+.5stem#-serif_fit#-2u#; |
| 57 |
adjust_fit(0,serif_fit# if serifs: if hair#+.5stem#>1.5u#:-.25u# fi\\fi); |
| 58 |
pickup fine.nib; top y3r=x_height+vround 1.5oo; |
| 59 |
if serifs: pos1(flare,180); pos2(hair,180); |
| 60 |
pos3(vair,90); lft x1r=hround max(u,2.1u-.5flare); x3=.5w-.5u; |
| 61 |
y1=min(bh+.5flare+2vair+2,.9[bh,x_height]-.5flare); |
| 62 |
bulb(3,2,1); % bulb |
| 63 |
else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r; |
| 64 |
pos3(1/8[vair,thin_join],90); |
| 65 |
x3=.5w-.2u; top y1r=vround .82[bh,top y3r]; |
| 66 |
filldraw stroke term.e(3,1,left,.9,4); fi % terminal |
| 67 |
pos4(stem,0); rt x4r=hround(w-2.5u+.5stem); y4=1/3[bh,x_height]; |
| 68 |
pos5(stem,0); x5=x4; y5=max(.55bh,2vair); |
| 69 |
filldraw stroke super_arc.e(3,4)&z4e..z5e; % arc and stem |
| 70 |
pos6(.3[thin_join,vair],90); x6=x4; bot y6=bh; |
| 71 |
pos7(hround(curve-2stem_corr),180); |
| 72 |
lft x7r=hround max(.5u,1.5u-.5curve); y7=1/3[top y8l,top y6r]; |
| 73 |
pos8(vair,270); x8l=.5w-.75u; bot y8r=-oo; |
| 74 |
pos9(thin_join,360); z9l=z5l; |
| 75 |
(x,y8r)=whatever[z8l,z9l]; x8r:=max(x,x8-u); |
| 76 |
{{interim superness:=more_super; |
| 77 |
filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl |
| 78 |
if serifs: numeric shaved_stem; shaved_stem=hround(stem-3stem_corr); |
| 79 |
if hair#+.5stem#>1.5u#: pickup tiny.nib; |
| 80 |
pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; |
| 81 |
pos10(shaved_stem,0); x10=x5'; y10=.2[.5tiny,bh]; |
| 82 |
pos11(shaved_stem,0); rt x11r=hround(w-.25u); bot y11=0; |
| 83 |
pos12(shaved_stem,0); x11=x12; top y12=slab+eps; |
| 84 |
filldraw z5'l---z10l...z11l{right}--z11r |
| 85 |
--z12r{left}...z10r+.75(z12-z11)---z5'r--cycle; % foot |
| 86 |
else: pickup crisp.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; |
| 87 |
pos10(shaved_stem,0); x10=x5'; y10=1/3bh; |
| 88 |
pos11(.2[vair,stem],90); x11r=.5[x10r,x12r]; bot y11l=-vround .5oo; |
| 89 |
pos12(hair,180); rt x12l=hround(w-.1u); y12=max(y10,y11+vair); |
| 90 |
pos13(hair,180); x13=x12; top y13=max(vround .6bh,top y12); |
| 91 |
(x',y11l)=whatever[z11r,z12r]; x11l:=max(x',x10); |
| 92 |
filldraw stroke z5'e---z10e...z11e{right}...z12e---z13e; fi % hook |
| 93 |
else: numeric shaved_stem; shaved_stem=hround(stem-stem_corr); |
| 94 |
pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; |
| 95 |
pos10(shaved_stem,0); x10=x5'; bot y10=0; |
| 96 |
filldraw stroke z5'e--z10e; fi % base of stem |
| 97 |
hpos_corr=u; put_gravis; |
| 98 |
repeat_once; |
| 99 |
penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13); endchar; |
| 100 |
|
| 101 |
ecchar "The letter a with acute"; |
| 102 |
beginchar_twice(oct"341",9u#,x_height#+acc_height#,0); |
| 103 |
bh#:=min(bar_height#,1.14x_height#-bar_height#); define_pixels(bh); |
| 104 |
italcorr 1/3[bh#,x_height#]*slant+.5stem#-serif_fit#-2u#; |
| 105 |
adjust_fit(0,serif_fit# if serifs: if hair#+.5stem#>1.5u#:-.25u# fi\\fi); |
| 106 |
pickup fine.nib; top y3r=x_height+vround 1.5oo; |
| 107 |
if serifs: pos1(flare,180); pos2(hair,180); |
| 108 |
pos3(vair,90); lft x1r=hround max(u,2.1u-.5flare); x3=.5w-.5u; |
| 109 |
y1=min(bh+.5flare+2vair+2,.9[bh,x_height]-.5flare); |
| 110 |
bulb(3,2,1); % bulb |
| 111 |
else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r; |
| 112 |
pos3(1/8[vair,thin_join],90); |
| 113 |
x3=.5w-.2u; top y1r=vround .82[bh,top y3r]; |
| 114 |
filldraw stroke term.e(3,1,left,.9,4); fi % terminal |
| 115 |
pos4(stem,0); rt x4r=hround(w-2.5u+.5stem); y4=1/3[bh,x_height]; |
| 116 |
pos5(stem,0); x5=x4; y5=max(.55bh,2vair); |
| 117 |
filldraw stroke super_arc.e(3,4)&z4e..z5e; % arc and stem |
| 118 |
pos6(.3[thin_join,vair],90); x6=x4; bot y6=bh; |
| 119 |
pos7(hround(curve-2stem_corr),180); |
| 120 |
lft x7r=hround max(.5u,1.5u-.5curve); y7=1/3[top y8l,top y6r]; |
| 121 |
pos8(vair,270); x8l=.5w-.75u; bot y8r=-oo; |
| 122 |
pos9(thin_join,360); z9l=z5l; |
| 123 |
(x,y8r)=whatever[z8l,z9l]; x8r:=max(x,x8-u); |
| 124 |
{{interim superness:=more_super; |
| 125 |
filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl |
| 126 |
if serifs: numeric shaved_stem; shaved_stem=hround(stem-3stem_corr); |
| 127 |
if hair#+.5stem#>1.5u#: pickup tiny.nib; |
| 128 |
pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; |
| 129 |
pos10(shaved_stem,0); x10=x5'; y10=.2[.5tiny,bh]; |
| 130 |
pos11(shaved_stem,0); rt x11r=hround(w-.25u); bot y11=0; |
| 131 |
pos12(shaved_stem,0); x11=x12; top y12=slab+eps; |
| 132 |
filldraw z5'l---z10l...z11l{right}--z11r |
| 133 |
--z12r{left}...z10r+.75(z12-z11)---z5'r--cycle; % foot |
| 134 |
else: pickup crisp.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; |
| 135 |
pos10(shaved_stem,0); x10=x5'; y10=1/3bh; |
| 136 |
pos11(.2[vair,stem],90); x11r=.5[x10r,x12r]; bot y11l=-vround .5oo; |
| 137 |
pos12(hair,180); rt x12l=hround(w-.1u); y12=max(y10,y11+vair); |
| 138 |
pos13(hair,180); x13=x12; top y13=max(vround .6bh,top y12); |
| 139 |
(x',y11l)=whatever[z11r,z12r]; x11l:=max(x',x10); |
| 140 |
filldraw stroke z5'e---z10e...z11e{right}...z12e---z13e; fi % hook |
| 141 |
else: numeric shaved_stem; shaved_stem=hround(stem-stem_corr); |
| 142 |
pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; |
| 143 |
pos10(shaved_stem,0); x10=x5'; bot y10=0; |
| 144 |
filldraw stroke z5'e--z10e; fi % base of stem |
| 145 |
hpos_corr=-u; put_accent; |
| 146 |
repeat_once; |
| 147 |
penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13); endchar; |
| 148 |
|
| 149 |
ecchar "The letter a with circumflex"; |
| 150 |
beginchar(oct"342",9u#,x_height#+acc_height#,0); |
| 151 |
bh#:=min(bar_height#,1.14x_height#-bar_height#); define_pixels(bh); |
| 152 |
italcorr 1/3[bh#,x_height#]*slant+.5stem#-serif_fit#-2u#; |
| 153 |
adjust_fit(0,serif_fit# if serifs: if hair#+.5stem#>1.5u#:-.25u# fi\\fi); |
| 154 |
pickup fine.nib; top y3r=x_height+vround 1.5oo; |
| 155 |
if serifs: pos1(flare,180); pos2(hair,180); |
| 156 |
pos3(vair,90); lft x1r=hround max(u,2.1u-.5flare); x3=.5w-.5u; |
| 157 |
y1=min(bh+.5flare+2vair+2,.9[bh,x_height]-.5flare); |
| 158 |
bulb(3,2,1); % bulb |
| 159 |
else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r; |
| 160 |
pos3(1/8[vair,thin_join],90); |
| 161 |
x3=.5w-.2u; top y1r=vround .82[bh,top y3r]; |
| 162 |
filldraw stroke term.e(3,1,left,.9,4); fi % terminal |
| 163 |
pos4(stem,0); rt x4r=hround(w-2.5u+.5stem); y4=1/3[bh,x_height]; |
| 164 |
pos5(stem,0); x5=x4; y5=max(.55bh,2vair); |
| 165 |
filldraw stroke super_arc.e(3,4)&z4e..z5e; % arc and stem |
| 166 |
pos6(.3[thin_join,vair],90); x6=x4; bot y6=bh; |
| 167 |
pos7(hround(curve-2stem_corr),180); |
| 168 |
lft x7r=hround max(.5u,1.5u-.5curve); y7=1/3[top y8l,top y6r]; |
| 169 |
pos8(vair,270); x8l=.5w-.75u; bot y8r=-oo; |
| 170 |
pos9(thin_join,360); z9l=z5l; |
| 171 |
(x,y8r)=whatever[z8l,z9l]; x8r:=max(x,x8-u); |
| 172 |
{{interim superness:=more_super; |
| 173 |
filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl |
| 174 |
if serifs: numeric shaved_stem; shaved_stem=hround(stem-3stem_corr); |
| 175 |
if hair#+.5stem#>1.5u#: pickup tiny.nib; |
| 176 |
pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; |
| 177 |
pos10(shaved_stem,0); x10=x5'; y10=.2[.5tiny,bh]; |
| 178 |
pos11(shaved_stem,0); rt x11r=hround(w-.25u); bot y11=0; |
| 179 |
pos12(shaved_stem,0); x11=x12; top y12=slab+eps; |
| 180 |
filldraw z5'l---z10l...z11l{right}--z11r |
| 181 |
--z12r{left}...z10r+.75(z12-z11)---z5'r--cycle; % foot |
| 182 |
else: pickup crisp.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; |
| 183 |
pos10(shaved_stem,0); x10=x5'; y10=1/3bh; |
| 184 |
pos11(.2[vair,stem],90); x11r=.5[x10r,x12r]; bot y11l=-vround .5oo; |
| 185 |
pos12(hair,180); rt x12l=hround(w-.1u); y12=max(y10,y11+vair); |
| 186 |
pos13(hair,180); x13=x12; top y13=max(vround .6bh,top y12); |
| 187 |
(x',y11l)=whatever[z11r,z12r]; x11l:=max(x',x10); |
| 188 |
filldraw stroke z5'e---z10e...z11e{right}...z12e---z13e; fi % hook |
| 189 |
else: numeric shaved_stem; shaved_stem=hround(stem-stem_corr); |
| 190 |
pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; |
| 191 |
pos10(shaved_stem,0); x10=x5'; bot y10=0; |
| 192 |
filldraw stroke z5'e--z10e; fi % base of stem |
| 193 |
% the accent |
| 194 |
lowercase_hat(x3,oo,14,15,16,17,18); |
| 195 |
penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18); endchar; |
| 196 |
|
| 197 |
|
| 198 |
ecchar "The letter a with tilde"; |
| 199 |
beginchar(oct"343",9u#,x_height#+acc_height#,0); |
| 200 |
bh#:=min(bar_height#,1.14x_height#-bar_height#); define_pixels(bh); |
| 201 |
italcorr 1/3[bh#,x_height#]*slant+.5stem#-serif_fit#-2u#; |
| 202 |
adjust_fit(0,serif_fit# if serifs: if hair#+.5stem#>1.5u#:-.25u# fi\\fi); |
| 203 |
pickup fine.nib; top y3r=x_height+vround 1.5oo; |
| 204 |
if serifs: pos1(flare,180); pos2(hair,180); |
| 205 |
pos3(vair,90); lft x1r=hround max(u,2.1u-.5flare); x3=.5w-.5u; |
| 206 |
y1=min(bh+.5flare+2vair+2,.9[bh,x_height]-.5flare); |
| 207 |
bulb(3,2,1); % bulb |
| 208 |
else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r; |
| 209 |
pos3(1/8[vair,thin_join],90); |
| 210 |
x3=.5w-.2u; top y1r=vround .82[bh,top y3r]; |
| 211 |
filldraw stroke term.e(3,1,left,.9,4); fi % terminal |
| 212 |
pos4(stem,0); rt x4r=hround(w-2.5u+.5stem); y4=1/3[bh,x_height]; |
| 213 |
pos5(stem,0); x5=x4; y5=max(.55bh,2vair); |
| 214 |
filldraw stroke super_arc.e(3,4)&z4e..z5e; % arc and stem |
| 215 |
pos6(.3[thin_join,vair],90); x6=x4; bot y6=bh; |
| 216 |
pos7(hround(curve-2stem_corr),180); |
| 217 |
lft x7r=hround max(.5u,1.5u-.5curve); y7=1/3[top y8l,top y6r]; |
| 218 |
pos8(vair,270); x8l=.5w-.75u; bot y8r=-oo; |
| 219 |
pos9(thin_join,360); z9l=z5l; |
| 220 |
(x,y8r)=whatever[z8l,z9l]; x8r:=max(x,x8-u); |
| 221 |
{{interim superness:=more_super; |
| 222 |
filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl |
| 223 |
if serifs: numeric shaved_stem; shaved_stem=hround(stem-3stem_corr); |
| 224 |
if hair#+.5stem#>1.5u#: pickup tiny.nib; |
| 225 |
pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; |
| 226 |
pos10(shaved_stem,0); x10=x5'; y10=.2[.5tiny,bh]; |
| 227 |
pos11(shaved_stem,0); rt x11r=hround(w-.25u); bot y11=0; |
| 228 |
pos12(shaved_stem,0); x11=x12; top y12=slab+eps; |
| 229 |
filldraw z5'l---z10l...z11l{right}--z11r |
| 230 |
--z12r{left}...z10r+.75(z12-z11)---z5'r--cycle; % foot |
| 231 |
else: pickup crisp.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; |
| 232 |
pos10(shaved_stem,0); x10=x5'; y10=1/3bh; |
| 233 |
pos11(.2[vair,stem],90); x11r=.5[x10r,x12r]; bot y11l=-vround .5oo; |
| 234 |
pos12(hair,180); rt x12l=hround(w-.1u); y12=max(y10,y11+vair); |
| 235 |
pos13(hair,180); x13=x12; top y13=max(vround .6bh,top y12); |
| 236 |
(x',y11l)=whatever[z11r,z12r]; x11l:=max(x',x10); |
| 237 |
filldraw stroke z5'e---z10e...z11e{right}...z12e---z13e; fi % hook |
| 238 |
else: numeric shaved_stem; shaved_stem=hround(stem-stem_corr); |
| 239 |
pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; |
| 240 |
pos10(shaved_stem,0); x10=x5'; bot y10=0; |
| 241 |
filldraw stroke z5'e--z10e; fi % base of stem |
| 242 |
% the accent |
| 243 |
lowercase_tilde(0,0,14,15,16,17,18); |
| 244 |
penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18); endchar; |
| 245 |
|
| 246 |
|
| 247 |
|
| 248 |
ecchar "The letter a with umlaut"; |
| 249 |
beginchar(oct"344",9u#,lc_trema_height#,0); |
| 250 |
bh#:=min(bar_height#,1.14x_height#-bar_height#); define_pixels(bh); |
| 251 |
italcorr 1/3[bh#,x_height#]*slant+.5stem#-serif_fit#-2u#; |
| 252 |
adjust_fit(0,serif_fit# if serifs: if hair#+.5stem#>1.5u#:-.25u# fi\\fi); |
| 253 |
pickup fine.nib; top y3r=x_height+vround 1.5oo; |
| 254 |
if serifs: pos1(flare,180); pos2(hair,180); |
| 255 |
pos3(vair,90); lft x1r=hround max(u,2.1u-.5flare); x3=.5w-.5u; |
| 256 |
y1=min(bh+.5flare+2vair+2,.9[bh,x_height]-.5flare); |
| 257 |
bulb(3,2,1); % bulb |
| 258 |
else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r; |
| 259 |
pos3(1/8[vair,thin_join],90); |
| 260 |
x3=.5w-.2u; top y1r=vround .82[bh,top y3r]; |
| 261 |
filldraw stroke term.e(3,1,left,.9,4); fi % terminal |
| 262 |
pos4(stem,0); rt x4r=hround(w-2.5u+.5stem); y4=1/3[bh,x_height]; |
| 263 |
pos5(stem,0); x5=x4; y5=max(.55bh,2vair); |
| 264 |
filldraw stroke super_arc.e(3,4)&z4e..z5e; % arc and stem |
| 265 |
pos6(.3[thin_join,vair],90); x6=x4; bot y6=bh; |
| 266 |
pos7(hround(curve-2stem_corr),180); |
| 267 |
lft x7r=hround max(.5u,1.5u-.5curve); y7=1/3[top y8l,top y6r]; |
| 268 |
pos8(vair,270); x8l=.5w-.75u; bot y8r=-oo; |
| 269 |
pos9(thin_join,360); z9l=z5l; |
| 270 |
(x,y8r)=whatever[z8l,z9l]; x8r:=max(x,x8-u); |
| 271 |
{{interim superness:=more_super; |
| 272 |
filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl |
| 273 |
if serifs: numeric shaved_stem; shaved_stem=hround(stem-3stem_corr); |
| 274 |
if hair#+.5stem#>1.5u#: pickup tiny.nib; |
| 275 |
pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; |
| 276 |
pos10(shaved_stem,0); x10=x5'; y10=.2[.5tiny,bh]; |
| 277 |
pos11(shaved_stem,0); rt x11r=hround(w-.25u); bot y11=0; |
| 278 |
pos12(shaved_stem,0); x11=x12; top y12=slab+eps; |
| 279 |
filldraw z5'l---z10l...z11l{right}--z11r |
| 280 |
--z12r{left}...z10r+.75(z12-z11)---z5'r--cycle; % foot |
| 281 |
else: pickup crisp.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; |
| 282 |
pos10(shaved_stem,0); x10=x5'; y10=1/3bh; |
| 283 |
pos11(.2[vair,stem],90); x11r=.5[x10r,x12r]; bot y11l=-vround .5oo; |
| 284 |
pos12(hair,180); rt x12l=hround(w-.1u); y12=max(y10,y11+vair); |
| 285 |
pos13(hair,180); x13=x12; top y13=max(vround .6bh,top y12); |
| 286 |
(x',y11l)=whatever[z11r,z12r]; x11l:=max(x',x10); |
| 287 |
filldraw stroke z5'e---z10e...z11e{right}...z12e---z13e; fi % hook |
| 288 |
else: numeric shaved_stem; shaved_stem=hround(stem-stem_corr); |
| 289 |
pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; |
| 290 |
pos10(shaved_stem,0); x10=x5'; bot y10=0; |
| 291 |
filldraw stroke z5'e--z10e; fi % base of stem |
| 292 |
% the accent |
| 293 |
% lowercase_umlaut(0,0,14,15,16,17); |
| 294 |
lowercase_umlaut(-.3u,0,14,15,16,17); % (CMBR) |
| 295 |
penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17); endchar; |
| 296 |
|
| 297 |
ecchar "The letter a with ring"; |
| 298 |
beginchar(oct"345",9u#,x_height#+acc_height#,0); |
| 299 |
bh#:=min(bar_height#,1.14x_height#-bar_height#); define_pixels(bh); |
| 300 |
italcorr 1/3[bh#,x_height#]*slant+.5stem#-serif_fit#-2u#; |
| 301 |
adjust_fit(0,serif_fit# if serifs: if hair#+.5stem#>1.5u#:-.25u# fi\\fi); |
| 302 |
pickup fine.nib; top y3r=x_height+vround 1.5oo; |
| 303 |
if serifs: pos1(flare,180); pos2(hair,180); |
| 304 |
pos3(vair,90); lft x1r=hround max(u,2.1u-.5flare); x3=.5w-.5u; |
| 305 |
y1=min(bh+.5flare+2vair+2,.9[bh,x_height]-.5flare); |
| 306 |
bulb(3,2,1); % bulb |
| 307 |
else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r; |
| 308 |
pos3(1/8[vair,thin_join],90); |
| 309 |
x3=.5w-.2u; top y1r=vround .82[bh,top y3r]; |
| 310 |
filldraw stroke term.e(3,1,left,.9,4); fi % terminal |
| 311 |
pos4(stem,0); rt x4r=hround(w-2.5u+.5stem); y4=1/3[bh,x_height]; |
| 312 |
pos5(stem,0); x5=x4; y5=max(.55bh,2vair); |
| 313 |
filldraw stroke super_arc.e(3,4)&z4e..z5e; % arc and stem |
| 314 |
pos6(.3[thin_join,vair],90); x6=x4; bot y6=bh; |
| 315 |
pos7(hround(curve-2stem_corr),180); |
| 316 |
lft x7r=hround max(.5u,1.5u-.5curve); y7=1/3[top y8l,top y6r]; |
| 317 |
pos8(vair,270); x8l=.5w-.75u; bot y8r=-oo; |
| 318 |
pos9(thin_join,360); z9l=z5l; |
| 319 |
(x,y8r)=whatever[z8l,z9l]; x8r:=max(x,x8-u); |
| 320 |
{{interim superness:=more_super; |
| 321 |
filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl |
| 322 |
if serifs: numeric shaved_stem; shaved_stem=hround(stem-3stem_corr); |
| 323 |
if hair#+.5stem#>1.5u#: pickup tiny.nib; |
| 324 |
pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; |
| 325 |
pos10(shaved_stem,0); x10=x5'; y10=.2[.5tiny,bh]; |
| 326 |
pos11(shaved_stem,0); rt x11r=hround(w-.25u); bot y11=0; |
| 327 |
pos12(shaved_stem,0); x11=x12; top y12=slab+eps; |
| 328 |
filldraw z5'l---z10l...z11l{right}--z11r |
| 329 |
--z12r{left}...z10r+.75(z12-z11)---z5'r--cycle; % foot |
| 330 |
else: pickup crisp.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; |
| 331 |
pos10(shaved_stem,0); x10=x5'; y10=1/3bh; |
| 332 |
pos11(.2[vair,stem],90); x11r=.5[x10r,x12r]; bot y11l=-vround .5oo; |
| 333 |
pos12(hair,180); rt x12l=hround(w-.1u); y12=max(y10,y11+vair); |
| 334 |
pos13(hair,180); x13=x12; top y13=max(vround .6bh,top y12); |
| 335 |
(x',y11l)=whatever[z11r,z12r]; x11l:=max(x',x10); |
| 336 |
filldraw stroke z5'e---z10e...z11e{right}...z12e---z13e; fi % hook |
| 337 |
else: numeric shaved_stem; shaved_stem=hround(stem-stem_corr); |
| 338 |
pickup tiny.nib; pos5'(shaved_stem,0); rt x5'r=fine.rt x5r; y5'=y5; |
| 339 |
pos10(shaved_stem,0); x10=x5'; bot y10=0; |
| 340 |
filldraw stroke z5'e--z10e; fi % base of stem |
| 341 |
% the accent |
| 342 |
lowercase_circle(x3,(1/3[x_height,h]+apex_o),14,15,16,17); |
| 343 |
penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17); endchar; |
| 344 |
|
| 345 |
|
| 346 |
|
| 347 |
ecchar "The ligature ae"; |
| 348 |
beginchar(oct"346",13u#,x_height#,0); |
| 349 |
italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0); |
| 350 |
adjust_fit(0,0); |
| 351 |
numeric left_curve,right_curve; |
| 352 |
if monospace: right_curve=left_curve=fudged.stem; |
| 353 |
else: left_curve=max(tiny.breadth,hround(curve-2stem_corr)); |
| 354 |
right_curve=max(tiny.breadth,hround(curve-if serifs:6 |
| 355 |
else:8 fi\\stem_corr));fi |
| 356 |
pickup tiny.nib; pos11(right_curve,0); |
| 357 |
pos12(vair,90); pos13(mfudged.stem,180); |
| 358 |
y11=good.y bar_height; top y12r=h+vround 1.5oo; y10l=bot y11; |
| 359 |
rt x11r=hround min(w-.5u,w-u+.5right_curve); |
| 360 |
lft x13r=hround (.5w-.5mfudged.stem); x12=.55[x13,x11]; |
| 361 |
{{interim superness:=more_super; |
| 362 |
filldraw stroke super_arc.e(11,12)}}; % right bowl of e |
| 363 |
y13=.5[y12,y14]; bot y14r=-oo; x14=x12+.25u; |
| 364 |
if serifs: pos14(vair',270); pos15(mfudged.hair,360); |
| 365 |
y15=max(good.y(.5bar_height-.9),y14l+vair); x15r=x11r; |
| 366 |
(x,y14l)=whatever[z14r,z15]; x14l:=min(x,x14l+.5u); |
| 367 |
filldraw stroke pulled_arc.e(12,13) |
| 368 |
& pulled_super_arc.e(13,14)(.8superpull) |
| 369 |
...{x15-x14,5(y15-y14)}z15e; % left bowl, arc, and terminal of e |
| 370 |
else: pos14(vair,270); |
| 371 |
filldraw stroke super_arc.e(12,13) |
| 372 |
& super_arc.e(13,14); % left bowl and arc of e |
| 373 |
pickup fine.nib; pos14'(vair,270); z14=z14'; |
| 374 |
pos15(.5[vair,flare],275); rt x15r=hround(w-.6u); |
| 375 |
y15r=good.y(y15r+1/3bar_height-y15); y15l:=good.y |
| 376 |
y15l; x15l:=good.x x15l; |
| 377 |
filldraw stroke term.e(14',15,right,1,4); fi % right terminal |
| 378 |
y11'r=y10r=y10l+.6[thin_join,vair]; y11'l=y10l; |
| 379 |
x11'l=x11'r=x11; x10l=x10r=x13; |
| 380 |
fill stroke z10e--z11'e; % crossbar |
| 381 |
pickup fine.nib; top y3r=h+vround 1.5oo; |
| 382 |
if serifs: pos1(flare,180); pos2(mfudged.hair,180); |
| 383 |
pos3(vair,90); lft x1r=hround max(u,2.1u-.5flare); x3=4u; |
| 384 |
y1=min(bar_height+.5flare+2vair+2,.9[bar_height,h]-.5flare); |
| 385 |
bulb(3,2,1); % bulb |
| 386 |
else: pos1(5/7[vair,flare],95); x1l=good.x 1.5u; x1r:=good.x x1r; |
| 387 |
pos3(1/8[vair,thin_join],90); |
| 388 |
x3=4.3u; top y1r=vround .82[bar_height,top y3r]; |
| 389 |
filldraw stroke term.e(3,1,left,.9,4); fi % left terminal |
| 390 |
pos4(mfudged.stem,0); x4=x13; y4=1/3[bar_height,h]; |
| 391 |
pos5(mfudged.stem,0); x5=x4; y5=min(y4,y13); |
| 392 |
filldraw stroke super_arc.e(3,4)&z4e--z5e; % arc and stem |
| 393 |
pos6(.6[thin_join,vair],90); x6=x4; bot y6=y10l; |
| 394 |
pos7(left_curve,180); |
| 395 |
lft x7r=hround max(.5u,1.5u-.5left_curve); |
| 396 |
y7=1/3[top y8l,top y6r]; |
| 397 |
pos8(vair,270); x8l=3.75u; bot y8r=-oo; |
| 398 |
pos9(.5[vair,fudged.stem],360); x9=x5; y9=.55bar_height; |
| 399 |
(x',y8r)=whatever[z8l,z9l]; x8r:=max(x',x8-u); |
| 400 |
{{interim superness:=more_super; |
| 401 |
filldraw stroke z9e{down}...z8e{left}...{up}z7e&super_arc.e(7,6)}}; % bowl |
| 402 |
if y9<y5: |
| 403 |
filldraw stroke z5e{down}..{down}z9e; |
| 404 |
fi % link (usually hidden) |
| 405 |
penlabels(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15); |
| 406 |
endchar; |
| 407 |
|
| 408 |
|
| 409 |
ecchar "The letter cedilla c"; |
| 410 |
beginchar(oct"347",8u#,x_height#,0.875desc_depth#); |
| 411 |
italcorr x_height#*slant-.2u#; |
| 412 |
adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); |
| 413 |
pickup fine.nib; pos2(vair',90); pos4(vair',270); |
| 414 |
x2=x4=.5(w+u); top y2r=vround(x_height+1.5oo); bot y4r=-oo; |
| 415 |
pos3(curve,180); lft x3r=hround max(.6u,1.35u-.5curve); y3=.5x_height; |
| 416 |
if serifs: pos1(hair,0); pos0(flare,0); |
| 417 |
y1=min(bar_height+.5flare+2vair'+2,.9[bar_height,h]-.5flare); |
| 418 |
rt x1r=hround(w-.7u); bulb(2,1,0); % bulb |
| 419 |
pos5(hair,0); rt x5r=hround(w-.5u); |
| 420 |
y5=max(good.y(.5bar_height-.9),y4l+vair'); |
| 421 |
(x,y4l)=whatever[z4r,z5l]; x4l:=min(x,x4l+.5u); |
| 422 |
filldraw stroke pulled_super_arc.e(2,3)(.7superpull) |
| 423 |
& pulled_super_arc.e(3,4)(.5superpull) |
| 424 |
..tension .9 and 1..{x5-x4,5(y5-y4)}z5e; % arc and lower terminal |
| 425 |
else: pos1(4/7[vair',flare],80); |
| 426 |
rt x1r=hround(w-.6u); top y1r=vround .82[bar_height,top y2r]; |
| 427 |
filldraw stroke term.e(2,1,right,.8,4); % upper terminal |
| 428 |
pos5(.6[vair',flare],275); rt x5r=hround(w-.5u); |
| 429 |
y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; |
| 430 |
forsuffixes e=l,r: path p.e; p.e=z4e{right}..tension .9 and 1..z5e; |
| 431 |
if angle direction 1 of p.e>75: |
| 432 |
p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor |
| 433 |
filldraw stroke pulled_super_arc.e(2,3)(.7superpull) |
| 434 |
& pulled_super_arc.e(3,4)(.5superpull) & p.e; fi % arc and lower terminal |
| 435 |
% the accent |
| 436 |
lowercase_cedilla(x4,0,6,7,8,9,10); |
| 437 |
penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; |
| 438 |
|
| 439 |
|
| 440 |
ecchar "The letter e with gravis"; |
| 441 |
beginchar_twice(oct"350",7.25u#+max(.75u#,.5curve#),x_height#+acc_height#,0); |
| 442 |
italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0); |
| 443 |
adjust_fit(if monospace: .25u#,.5u# else: 0,0 fi); |
| 444 |
numeric left_curve,right_curve; |
| 445 |
left_curve=right_curve+6stem_corr=curve if not serifs: -3stem_corr fi; |
| 446 |
if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi |
| 447 |
if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi |
| 448 |
pickup tiny.nib; pos1(right_curve,0); |
| 449 |
pos2(vair,90); pos3(left_curve,180); |
| 450 |
y1=good.y bar_height; top y2r=x_height+vround 1.5oo; y0l=bot y1; |
| 451 |
rt x1r=hround min(w-.5u,w-u+.5right_curve); |
| 452 |
lft x3r=hround max(.5u,1.25u-.5left_curve); x2=.5w+.25u; |
| 453 |
{{interim superness:=more_super; |
| 454 |
filldraw stroke super_arc.e(1,2)}}; % right bowl |
| 455 |
y3=.5[y2,y4]; bot y4r=-oo; x4=x2+.25u; |
| 456 |
if serifs: pos4(vair',270); pos5(hair,360); |
| 457 |
y5=max(good.y(.5bar_height-.9),y4l+vair); x5r=x1r; |
| 458 |
(x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u); |
| 459 |
filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4) |
| 460 |
...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal |
| 461 |
else: pos4(vair,270); |
| 462 |
filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % left bowl and arc |
| 463 |
pickup fine.nib; pos4'(vair,270); z4=z4'; |
| 464 |
pos5(.5[vair,flare],275); rt x5r=hround(w-.6u); |
| 465 |
y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; |
| 466 |
filldraw stroke term.e(4',5,right,1,4); fi % terminal |
| 467 |
path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4); |
| 468 |
y1'r=y0r=y0l+.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=x1; |
| 469 |
forsuffixes $=l,r: |
| 470 |
x0$=xpart(((0,y0$)--(x1,y0$)) intersectionpoint testpath); endfor |
| 471 |
fill stroke z0e--z1'e; % crossbar |
| 472 |
hpos_corr=1.5u; put_gravis; |
| 473 |
repeat_once; |
| 474 |
penlabels(0,1,2,3,4,5,7,8); endchar; |
| 475 |
|
| 476 |
|
| 477 |
ecchar "The letter e with acute"; |
| 478 |
beginchar_twice(oct"351",7.25u#+max(.75u#,.5curve#),x_height#+acc_height#,0); |
| 479 |
italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0); |
| 480 |
adjust_fit(if monospace: .25u#,.5u# else: 0,0 fi); |
| 481 |
numeric left_curve,right_curve; |
| 482 |
left_curve=right_curve+6stem_corr=curve if not serifs: -3stem_corr fi; |
| 483 |
if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi |
| 484 |
if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi |
| 485 |
pickup tiny.nib; pos1(right_curve,0); |
| 486 |
pos2(vair,90); pos3(left_curve,180); |
| 487 |
y1=good.y bar_height; top y2r=x_height+vround 1.5oo; y0l=bot y1; |
| 488 |
rt x1r=hround min(w-.5u,w-u+.5right_curve); |
| 489 |
lft x3r=hround max(.5u,1.25u-.5left_curve); x2=.5w+.25u; |
| 490 |
{{interim superness:=more_super; |
| 491 |
filldraw stroke super_arc.e(1,2)}}; % right bowl |
| 492 |
y3=.5[y2,y4]; bot y4r=-oo; x4=x2+.25u; |
| 493 |
if serifs: pos4(vair',270); pos5(hair,360); |
| 494 |
y5=max(good.y(.5bar_height-.9),y4l+vair); x5r=x1r; |
| 495 |
(x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u); |
| 496 |
filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4) |
| 497 |
...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal |
| 498 |
else: pos4(vair,270); |
| 499 |
filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % left bowl and arc |
| 500 |
pickup fine.nib; pos4'(vair,270); z4=z4'; |
| 501 |
pos5(.5[vair,flare],275); rt x5r=hround(w-.6u); |
| 502 |
y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; |
| 503 |
filldraw stroke term.e(4',5,right,1,4); fi % terminal |
| 504 |
path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4); |
| 505 |
y1'r=y0r=y0l+.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=x1; |
| 506 |
forsuffixes $=l,r: |
| 507 |
x0$=xpart(((0,y0$)--(x1,y0$)) intersectionpoint testpath); endfor |
| 508 |
fill stroke z0e--z1'e; % crossbar |
| 509 |
hpos_corr=-u; put_accent; |
| 510 |
repeat_once; |
| 511 |
penlabels(0,1,2,3,4,5); endchar; |
| 512 |
|
| 513 |
ecchar "The letter circumflex e"; |
| 514 |
beginchar(oct"352",7.25u#+max(.75u#,.5curve#),x_height#+acc_height#,0); |
| 515 |
italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0); |
| 516 |
adjust_fit(if monospace: .25u#,.5u# else: 0,0 fi); |
| 517 |
numeric left_curve,right_curve; |
| 518 |
left_curve=right_curve+6stem_corr=curve if not serifs: -3stem_corr fi; |
| 519 |
if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi |
| 520 |
if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi |
| 521 |
pickup tiny.nib; pos1(right_curve,0); |
| 522 |
pos2(vair,90); pos3(left_curve,180); |
| 523 |
y1=good.y bar_height; top y2r=x_height+vround 1.5oo; y0l=bot y1; |
| 524 |
rt x1r=hround min(w-.5u,w-u+.5right_curve); |
| 525 |
lft x3r=hround max(.5u,1.25u-.5left_curve); x2=.5w+.25u; |
| 526 |
{{interim superness:=more_super; |
| 527 |
filldraw stroke super_arc.e(1,2)}}; % right bowl |
| 528 |
y3=.5[y2,y4]; bot y4r=-oo; x4=x2+.25u; |
| 529 |
if serifs: pos4(vair',270); pos5(hair,360); |
| 530 |
y5=max(good.y(.5bar_height-.9),y4l+vair); x5r=x1r; |
| 531 |
(x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u); |
| 532 |
filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4) |
| 533 |
...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal |
| 534 |
else: pos4(vair,270); |
| 535 |
filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % left bowl and arc |
| 536 |
pickup fine.nib; pos4'(vair,270); z4=z4'; |
| 537 |
pos5(.5[vair,flare],275); rt x5r=hround(w-.6u); |
| 538 |
y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; |
| 539 |
filldraw stroke term.e(4',5,right,1,4); fi % terminal |
| 540 |
path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4); |
| 541 |
y1'r=y0r=y0l+.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=x1; |
| 542 |
forsuffixes $=l,r: |
| 543 |
x0$=xpart(((0,y0$)--(x1,y0$)) intersectionpoint testpath); endfor |
| 544 |
fill stroke z0e--z1'e; % crossbar |
| 545 |
% the accent |
| 546 |
lowercase_hat(.5w,oo,7,8,9,10,11); |
| 547 |
penlabels(0,1,2,3,4,5,7,8); endchar; |
| 548 |
|
| 549 |
|
| 550 |
ecchar "The letter e with umlaut"; |
| 551 |
beginchar(oct"353",7.25u#+max(.75u#,.5curve#),lc_trema_height#,0); |
| 552 |
italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0); |
| 553 |
adjust_fit(if monospace: .25u#,.5u# else: 0,0 fi); |
| 554 |
numeric left_curve,right_curve; |
| 555 |
left_curve=right_curve+6stem_corr=curve if not serifs: -3stem_corr fi; |
| 556 |
if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi |
| 557 |
if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi |
| 558 |
pickup tiny.nib; pos1(right_curve,0); |
| 559 |
pos2(vair,90); pos3(left_curve,180); |
| 560 |
y1=good.y bar_height; top y2r=x_height+vround 1.5oo; y0l=bot y1; |
| 561 |
rt x1r=hround min(w-.5u,w-u+.5right_curve); |
| 562 |
lft x3r=hround max(.5u,1.25u-.5left_curve); x2=.5w+.25u; |
| 563 |
{{interim superness:=more_super; |
| 564 |
filldraw stroke super_arc.e(1,2)}}; % right bowl |
| 565 |
y3=.5[y2,y4]; bot y4r=-oo; x4=x2+.25u; |
| 566 |
if serifs: pos4(vair',270); pos5(hair,360); |
| 567 |
y5=max(good.y(.5bar_height-.9),y4l+vair); x5r=x1r; |
| 568 |
(x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u); |
| 569 |
filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4) |
| 570 |
...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal |
| 571 |
else: pos4(vair,270); |
| 572 |
filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % left bowl and arc |
| 573 |
pickup fine.nib; pos4'(vair,270); z4=z4'; |
| 574 |
pos5(.5[vair,flare],275); rt x5r=hround(w-.6u); |
| 575 |
y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; |
| 576 |
filldraw stroke term.e(4',5,right,1,4); fi % terminal |
| 577 |
path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4); |
| 578 |
y1'r=y0r=y0l+.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=x1; |
| 579 |
forsuffixes $=l,r: |
| 580 |
x0$=xpart(((0,y0$)--(x1,y0$)) intersectionpoint testpath); endfor |
| 581 |
fill stroke z0e--z1'e; % crossbar |
| 582 |
% the accent |
| 583 |
lowercase_umlaut(0,0,7,8,9,10); |
| 584 |
penlabels(0,1,2,3,4,5,7,8,9,10); endchar; |
| 585 |
|
| 586 |
ecchar "The letter i with gravis"; |
| 587 |
beginchar_twice(oct"354",5u#,x_height#+acc_height#,0); |
| 588 |
italcorr (x_height#+acc_height#)*slant-serif_fit#+.5stem#-2u#; |
| 589 |
adjust_fit(serif_fit#+stem_shift# |
| 590 |
if monospace:+.25u#fi,serif_fit#-stem_shift#); |
| 591 |
pickup tiny.nib; pos1(stem',0); pos2(stem',0); |
| 592 |
if odd(w-stem'): change_width; fi |
| 593 |
lft x1l=hround(.5w-.5stem'); x1=x2; |
| 594 |
top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=0; |
| 595 |
filldraw stroke z1e--z2e; % stem |
| 596 |
if serifs or monospace: |
| 597 |
sloped_serif.l(1,2,a,1/3,.95jut,serif_drop); % upper serif |
| 598 |
fi |
| 599 |
if serifs: dish_serif(2,1,b,1/3,jut,c,1/3,.9jut); fi % lower serif |
| 600 |
put_gravis; |
| 601 |
repeat_once; |
| 602 |
penlabels(1,2,3,4); endchar; |
| 603 |
|
| 604 |
|
| 605 |
ecchar "The letter i with acute"; |
| 606 |
beginchar_twice(oct"355",5u#,x_height#+acc_height#,0); |
| 607 |
italcorr (x_height#+acc_height#)*slant-serif_fit#+.5stem#-2u#; |
| 608 |
adjust_fit(serif_fit#+stem_shift# |
| 609 |
if monospace:+.25u#fi,serif_fit#-stem_shift#); |
| 610 |
pickup tiny.nib; pos1(stem',0); pos2(stem',0); |
| 611 |
if odd(w-stem'): change_width; fi |
| 612 |
lft x1l=hround(.5w-.5stem'); x1=x2; |
| 613 |
top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=0; |
| 614 |
filldraw stroke z1e--z2e; % stem |
| 615 |
if serifs or monospace: |
| 616 |
sloped_serif.l(1,2,a,1/3,.95jut,serif_drop); % upper serif |
| 617 |
fi |
| 618 |
if serifs: dish_serif(2,1,b,1/3,jut,c,1/3,.9jut); fi % lower serif |
| 619 |
% the accent |
| 620 |
if not monospace: hpos_corr = -.5u; fi |
| 621 |
put_accent; |
| 622 |
repeat_once; |
| 623 |
penlabels(1,2); endchar; |
| 624 |
|
| 625 |
|
| 626 |
ecchar "The letter circumflex i"; |
| 627 |
beginchar(oct"356",5u#,x_height#+acc_height#,0); |
| 628 |
italcorr (x_height#+acc_height#)*slant-serif_fit#+.5stem#-2u#; |
| 629 |
adjust_fit(serif_fit#+stem_shift# |
| 630 |
if monospace:+.25u#fi,serif_fit#-stem_shift#); |
| 631 |
pickup tiny.nib; pos1(stem',0); pos2(stem',0); |
| 632 |
if odd(w-stem'): change_width; fi |
| 633 |
lft x1l=hround(.5w-.5stem'); x1=x2; |
| 634 |
top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=0; |
| 635 |
filldraw stroke z1e--z2e; % stem |
| 636 |
if serifs or monospace: |
| 637 |
sloped_serif.l(1,2,a,1/3,.95jut,serif_drop); % upper serif |
| 638 |
fi |
| 639 |
if serifs: dish_serif(2,1,b,1/3,jut,c,1/3,.9jut); fi % lower serif |
| 640 |
% the accent |
| 641 |
lowercase_hat(x1,oo,3,4,5,6,7); |
| 642 |
penlabels(1,2,3,4,5,6,7); endchar; |
| 643 |
|
| 644 |
|
| 645 |
ecchar "The letter i with umlaut"; |
| 646 |
beginchar(oct"357",5u#,lc_trema_height#,0); |
| 647 |
italcorr (x_height#+acc_height#)*slant-serif_fit#+.5stem#-2u#; |
| 648 |
adjust_fit(0.5u#+serif_fit#+stem_shift# |
| 649 |
if monospace:+.25u#fi,0.5u#+serif_fit#-stem_shift#); |
| 650 |
pickup tiny.nib; pos1(stem',0); pos2(stem',0); |
| 651 |
if odd(w-stem'): change_width; fi |
| 652 |
lft x1l=hround(.5w-.5stem'); x1=x2; |
| 653 |
top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=0; |
| 654 |
filldraw stroke z1e--z2e; % stem |
| 655 |
if serifs or monospace: |
| 656 |
sloped_serif.l(1,2,a,1/3,.95jut,serif_drop); % upper serif |
| 657 |
fi |
| 658 |
if serifs: dish_serif(2,1,b,1/3,jut,c,1/3,.9jut); fi % lower serif |
| 659 |
% the accent |
| 660 |
lowercase_umlaut(0,0,3,4,5,6); |
| 661 |
penlabels(1,2,3,4,5,6); endchar; |
| 662 |
|
| 663 |
ecchar"The letter edh"; |
| 664 |
% Corrected version by Yannis |
| 665 |
beginchar(oct"360",9u#,asc_height#,0); |
| 666 |
italcorr .x_height#*slant; |
| 667 |
adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); |
| 668 |
oh := x_height; |
| 669 |
pickup fine.nib; |
| 670 |
pos1(vair,90); pos3(vair',-90); |
| 671 |
pos2(curve,180); pos4(curve,0); pos4'(hair,0) ; |
| 672 |
lft x2r=hround max(.5u,1.25u-.5curve); |
| 673 |
x4r=w-x2r; x1=x3=.5w; top y1r=oh + vround 1.5oo; bot y3r=-oo; |
| 674 |
y2=y4=.5oh-vair_corr; y2l:=y4l:=.52oh; |
| 675 |
x4'l = x4l ; y4 = y4' ; |
| 676 |
filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3) |
| 677 |
& pulled_arc.e(3,4) -- pulled_arc.e(4',1); % bowl |
| 678 |
pos5(.5[vair,hair],40) ; |
| 679 |
x5l = x2 ; top y5r = h ; x7r = x4r; y7 = .95[x4,x1]; |
| 680 |
pos7(curve,0); |
| 681 |
filldraw stroke z5e .. tension 1.1 and 1 .. z7e{down} .. z4e ; |
| 682 |
path p ; p = z5 .. tension 1.1 and 1 .. z7{down} ; |
| 683 |
z6 = ((0,if monospace:.6 else: .7 fi[x_height,asc_height]) -- |
| 684 |
(w,.6[x_height,asc_height])) |
| 685 |
intersectionpoint p ; |
| 686 |
pos6'(.5[vair,hair],-60) ; pos 6''(.5[vair,hair],-60) ; |
| 687 |
top y6''l = h ; z6'' = z6 + whatever*dir30; |
| 688 |
z6 = .5[z6',z6''] ; filldraw stroke z6'e -- z6''e ; |
| 689 |
penlabels(1,2,3,4,5,6,6',6''); endchar; |
| 690 |
|
| 691 |
ecchar "The letter n with tilde"; |
| 692 |
beginchar(oct"361",10u#,x_height#+acc_height#,0); |
| 693 |
italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; |
| 694 |
adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); |
| 695 |
pickup tiny.nib; pos1(stem,0); pos2(stem,0); |
| 696 |
numeric shaved_stem; shaved_stem=hround(stem-2stem_corr); |
| 697 |
pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(stem,0); |
| 698 |
lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; |
| 699 |
top y1=x_height+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2'; |
| 700 |
filldraw stroke z1'e--z2'e; % left stem |
| 701 |
h_stroke(2,a,3,4); % arch and right stem |
| 702 |
if serifs: sloped_serif.l(1',2',b,1/3,jut,serif_drop); % upper left serif |
| 703 |
numeric inner_jut; pickup tiny.nib; |
| 704 |
if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; |
| 705 |
else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi |
| 706 |
dish_serif(2,1,c,1/3,jut,d,1/3,jut); % lower left serif |
| 707 |
dish_serif(4,3,e,1/3,inner_jut,f,1/3,jut); fi % lower right serif |
| 708 |
% the accent |
| 709 |
lowercase_tilde(0,0,5,6,7,8,9); |
| 710 |
penlabels(1,2,3,4,5,6,7,8,9); endchar; |
| 711 |
|
| 712 |
|
| 713 |
ecchar "The letter o with gravis"; |
| 714 |
beginchar_twice(oct"362",9u#,x_height#+acc_height#,0); |
| 715 |
italcorr .7x_height#*slant; |
| 716 |
adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); |
| 717 |
penpos1(vair,90); penpos3(vair',-90); |
| 718 |
penpos2(curve,180); penpos4(curve,0); |
| 719 |
x2r=hround max(.5u,1.25u-.5curve); |
| 720 |
x4r=w-x2r; x1=x3=.5w; y1r=x_height+vround 1.5oo; y3r=-oo; |
| 721 |
y2=y4=.5x_height-vair_corr; y2l:=y4l:=.52x_height; |
| 722 |
penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) |
| 723 |
& pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl |
| 724 |
hpos_corr=u; put_gravis; |
| 725 |
repeat_once; |
| 726 |
penlabels(1,2,3,4); endchar; |
| 727 |
|
| 728 |
|
| 729 |
ecchar "The letter o with acute"; % from pl_ml (plfonts) |
| 730 |
beginchar_twice(oct"363",9u#,x_height#,0); |
| 731 |
italcorr .7x_height#*slant; |
| 732 |
adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); |
| 733 |
penpos1(vair,90); penpos3(vair',-90); |
| 734 |
penpos2(curve,180); penpos4(curve,0); |
| 735 |
x2r=hround max(.5u,1.25u-.5curve); |
| 736 |
x4r=w-x2r; x1=x3=.5w; y1r=h+vround 1.5oo; y3r=-oo; |
| 737 |
y2=y4=.5h-vair_corr; y2l:=y4l:=.52h; |
| 738 |
penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) |
| 739 |
& pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl |
| 740 |
penlabels(1,2,3,4); |
| 741 |
if serifs: hpos_corr=-u; fi put_accent; |
| 742 |
repeat_once; |
| 743 |
endchar; |
| 744 |
|
| 745 |
|
| 746 |
ecchar "The letter o with circumflex"; |
| 747 |
beginchar(oct"364",9u#,x_height#+acc_height#,0); |
| 748 |
italcorr .7x_height#*slant; |
| 749 |
adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); |
| 750 |
penpos1(vair,90); penpos3(vair',-90); |
| 751 |
penpos2(curve,180); penpos4(curve,0); |
| 752 |
x2r=hround max(.5u,1.25u-.5curve); |
| 753 |
x4r=w-x2r; x1=x3=.5w; y1r=x_height+vround 1.5oo; y3r=-oo; |
| 754 |
y2=y4=.5x_height-vair_corr; y2l:=y4l:=.52x_height; |
| 755 |
penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) |
| 756 |
& pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl |
| 757 |
% the accent |
| 758 |
lowercase_hat(x1,oo,5,6,7,8,9); |
| 759 |
penlabels(1,2,3,4,5,6,7,8,9); endchar; |
| 760 |
|
| 761 |
ecchar "The letter o with tilde"; |
| 762 |
beginchar(oct"365",9u#,x_height#+acc_height#,0); |
| 763 |
italcorr .7x_height#*slant; |
| 764 |
adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); |
| 765 |
penpos1(vair,90); penpos3(vair',-90); |
| 766 |
penpos2(curve,180); penpos4(curve,0); |
| 767 |
x2r=hround max(.5u,1.25u-.5curve); |
| 768 |
x4r=w-x2r; x1=x3=.5w; y1r=x_height+vround 1.5oo; y3r=-oo; |
| 769 |
y2=y4=.5x_height-vair_corr; y2l:=y4l:=.52x_height; |
| 770 |
penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) |
| 771 |
& pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl |
| 772 |
% the accent |
| 773 |
lowercase_tilde(0,0,5,6,7,8,9); |
| 774 |
penlabels(1,2,3,4,5,6,7,8,9);endchar; |
| 775 |
|
| 776 |
ecchar "The letter o with umlaut"; |
| 777 |
beginchar(oct"366",9u#,lc_trema_height#,0); |
| 778 |
italcorr .7x_height#*slant; |
| 779 |
adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); |
| 780 |
penpos1(vair,90); penpos3(vair',-90); |
| 781 |
penpos2(curve,180); penpos4(curve,0); |
| 782 |
x2r=hround max(.5u,1.25u-.5curve); |
| 783 |
x4r=w-x2r; x1=x3=.5w; y1r=x_height+vround 1.5oo; y3r=-oo; |
| 784 |
y2=y4=.5x_height-vair_corr; y2l:=y4l:=.52x_height; |
| 785 |
penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) |
| 786 |
& pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl |
| 787 |
% the accent |
| 788 |
lowercase_umlaut(0,0,5,6,7,8); |
| 789 |
penlabels(1,2,3,4,5,6,7,8); endchar; |
| 790 |
|
| 791 |
ecchar "The ligature oe"; |
| 792 |
beginchar(oct"367",14u#,x_height#,0); |
| 793 |
italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0); |
| 794 |
adjust_fit(0,0); |
| 795 |
numeric left_curve,right_curve; |
| 796 |
if monospace: right_curve=left_curve=fudged.stem; |
| 797 |
else: left_curve=max(fine.breadth,hround(curve-2stem_corr)); |
| 798 |
right_curve=max(tiny.breadth,hround(curve-if serifs:6 else:8 fi\\stem_corr));fi |
| 799 |
pickup tiny.nib; pos11(right_curve,0); |
| 800 |
pos12(vair,90); pos13(mfudged.stem,180); |
| 801 |
y11=good.y bar_height; top y12r=h+vround 1.5oo; y10l=bot y11; |
| 802 |
rt x11r=hround min(w-.5u,w-u+.5right_curve); |
| 803 |
lft x13r=hround (.5(w+u)-.5mfudged.stem); x12=.55[x13,x11]; |
| 804 |
{{interim superness:=more_super; |
| 805 |
filldraw stroke super_arc.e(11,12)}}; % right bowl of e |
| 806 |
y13=.5[y12,y14]; bot y14r=-oo; x14=x12+.25u; |
| 807 |
if serifs: pos14(vair',270); pos15(mfudged.hair,360); |
| 808 |
y15=max(good.y(.5bar_height-.9),y14l+vair); x15r=x11r; |
| 809 |
(x,y14l)=whatever[z14r,z15]; x14l:=min(x,x14l+.5u); |
| 810 |
filldraw stroke pulled_arc.e(12,13) |
| 811 |
& pulled_super_arc.e(13,14)(.8superpull) |
| 812 |
...{x15-x14,5(y15-y14)}z15e; % left bowl, arc, and terminal of e |
| 813 |
else: pos14(vair,270); |
| 814 |
filldraw stroke super_arc.e(12,13) |
| 815 |
& super_arc.e(13,14); % left bowl and arc of e |
| 816 |
pickup fine.nib; pos14'(vair,270); z14=z14'; |
| 817 |
pos15(.5[vair,flare],275); rt x15r=hround(w-.6u); |
| 818 |
y15r=good.y(y15r+1/3bar_height-y15); y15l:=good.y y15l; x15l:=good.x x15l; |
| 819 |
filldraw stroke term.e(14',15,right,1,4); fi % terminal |
| 820 |
y11'r=y10r=y10l+.6[thin_join,vair]; y11'l=y10l; x11'l=x11'r=x11; x10l=x10r=x13; |
| 821 |
fill stroke z10e--z11'e; % crossbar |
| 822 |
pickup fine.nib; pos1(vair,90); pos3(vair,-90); |
| 823 |
pos2(left_curve,180); pos4(mfudged.stem,0); |
| 824 |
lft x2r=hround max(.5u,1.25u-.5curve); |
| 825 |
z4=z13; x1=x3=.5[x2,x4]; top y1r=h+vround 1.5oo; bot y3r=-oo; |
| 826 |
y2=y4; y2l:=y4l:=.52h; |
| 827 |
filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3); % left half of left bowl |
| 828 |
filldraw stroke pulled_arc.e(3,4) & pulled_arc.e(4,1); % right half of left bowl |
| 829 |
penlabels(1,2,3,4,10,11,12,13,14,15); endchar; |
| 830 |
|
| 831 |
ecchar "Scandinavian letter o/slash"; |
| 832 |
beginchar(oct"370",9u#,x_height#+.5desc_depth#,.5desc_depth#); |
| 833 |
italcorr h#*slant-u#-max(.5fudge*stem#,.75u#)+.5vair#; |
| 834 |
adjust_fit(0,0); |
| 835 |
penpos1(vair,90); penpos3(vair,-90); |
| 836 |
penpos2(fudged.stem,180); penpos4(fudged.stem,0); |
| 837 |
x2r=hround max(.5u,1.25u-.5fudged.stem); |
| 838 |
x4r=w-x2r; x1=x3=.5w; |
| 839 |
y1r=x_height+vround 1.5oo; y2=y4=.5x_height-vair_corr; y3r=-oo; |
| 840 |
penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) |
| 841 |
& pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl |
| 842 |
x5=x4; x6=x2; y5=h; y6=-d; |
| 843 |
numeric theta; theta=angle(z5-z6)-90; |
| 844 |
pickup crisp.nib; pos5(vair,theta); pos6(vair,theta); |
| 845 |
filldraw stroke z5e--z6e; % diagonal |
| 846 |
penlabels(1,2,3,4,5,6); endchar; |
| 847 |
|
| 848 |
ecchar "The letter u with gravis"; |
| 849 |
beginchar_twice(oct"371",10u#,x_height#+acc_height#,0); |
| 850 |
italcorr x_height#*slant-serif_fit#+.5stem#-2u#; |
| 851 |
adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); |
| 852 |
numeric light_vair; light_vair=vair if hefty: -vround 2vair_corr fi; |
| 853 |
if light_vair<fine.breadth: light_vair:=fine.breadth; fi |
| 854 |
pickup tiny.nib; pos1(stem,0); pos2(stem,0); |
| 855 |
pos3(stem,0); pos4(stem',0); |
| 856 |
lft x1l=hround(2.5u-.5stem); x1=x2; x3=w-x1; x3r=x4r; |
| 857 |
if serifs: top y1=x_height+min(oo,serif_drop); bot y4=-min(oo,serif_drop); |
| 858 |
else: top y1=x_height; bot y4=0; fi |
| 859 |
pos0(stem,0); pos0'(stem',0); x0=x3; x0'=x4; y0=y0'; |
| 860 |
penpos2'(stem-fine,-180); z2'=z2; y3=y1; y2=.5bar_height; |
| 861 |
penpos5(max(eps,light_vair-fine),-90); penpos6(thin_join-fine,0); |
| 862 |
y6=y0=2/3bar_height; |
| 863 |
filldraw stroke z1e--z2e; % left stem |
| 864 |
filldraw stroke z3e..z0e--z0'e..z4e; % right stem |
| 865 |
pickup fine.nib; bot y5r=-oo; x5l=.5w-.25u; lft x6l=tiny.lft x0l; |
| 866 |
(x,y5r)=whatever[z5l,z6l]; x5r:=max(x,.5[x5,x2'r]); |
| 867 |
filldraw stroke {{interim superness:=hein_super; |
| 868 |
pulled_arc.e(2',5)}} & z5e{right}...{up}z6e; % arc |
| 869 |
if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper left serif |
| 870 |
sloped_serif.l(3,0,b,1/3,jut,serif_drop); % upper right serif |
| 871 |
sloped_serif.r(4,0',c,1/3,jut,min(oo,serif_drop)); fi % lower right serif |
| 872 |
hpos_corr=0.75u; put_gravis; |
| 873 |
repeat_once; |
| 874 |
penlabels(1,2,3,4,5,6); endchar; |
| 875 |
|
| 876 |
ecchar "The letter u with acute"; |
| 877 |
beginchar_twice(oct"372",10u#,x_height#+acc_height#,0); |
| 878 |
italcorr x_height#*slant-serif_fit#+.5stem#-2u#; |
| 879 |
adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); |
| 880 |
numeric light_vair; light_vair=vair if hefty: -vround 2vair_corr fi; |
| 881 |
if light_vair<fine.breadth: light_vair:=fine.breadth; fi |
| 882 |
pickup tiny.nib; pos1(stem,0); pos2(stem,0); |
| 883 |
pos3(stem,0); pos4(stem',0); |
| 884 |
lft x1l=hround(2.5u-.5stem); x1=x2; x3=w-x1; x3r=x4r; |
| 885 |
if serifs: top y1=x_height+min(oo,serif_drop); bot y4=-min(oo,serif_drop); |
| 886 |
else: top y1=x_height; bot y4=0; fi |
| 887 |
pos0(stem,0); pos0'(stem',0); x0=x3; x0'=x4; y0=y0'; |
| 888 |
penpos2'(stem-fine,-180); z2'=z2; y3=y1; y2=.5bar_height; |
| 889 |
penpos5(max(eps,light_vair-fine),-90); penpos6(thin_join-fine,0); |
| 890 |
y6=y0=2/3bar_height; |
| 891 |
filldraw stroke z1e--z2e; % left stem |
| 892 |
filldraw stroke z3e..z0e--z0'e..z4e; % right stem |
| 893 |
pickup fine.nib; bot y5r=-oo; x5l=.5w-.25u; lft x6l=tiny.lft x0l; |
| 894 |
(x,y5r)=whatever[z5l,z6l]; x5r:=max(x,.5[x5,x2'r]); |
| 895 |
filldraw stroke {{interim superness:=hein_super; |
| 896 |
pulled_arc.e(2',5)}} & z5e{right}...{up}z6e; % arc |
| 897 |
if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper left serif |
| 898 |
sloped_serif.l(3,0,b,1/3,jut,serif_drop); % upper right serif |
| 899 |
sloped_serif.r(4,0',c,1/3,jut,min(oo,serif_drop)); fi % lower right serif |
| 900 |
% the accent |
| 901 |
hpos_corr=-u; put_accent; |
| 902 |
repeat_once; |
| 903 |
penlabels(1,2,3,4,5,6,7,8,9,10); endchar; |
| 904 |
|
| 905 |
|
| 906 |
ecchar "The letter u with circumflex"; |
| 907 |
beginchar(oct"373",10u#,x_height#+acc_height#,0); |
| 908 |
italcorr x_height#*slant-serif_fit#+.5stem#-2u#; |
| 909 |
adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); |
| 910 |
numeric light_vair; light_vair=vair if hefty: -vround 2vair_corr fi; |
| 911 |
if light_vair<fine.breadth: light_vair:=fine.breadth; fi |
| 912 |
pickup tiny.nib; pos1(stem,0); pos2(stem,0); |
| 913 |
pos3(stem,0); pos4(stem',0); |
| 914 |
lft x1l=hround(2.5u-.5stem); x1=x2; x3=w-x1; x3r=x4r; |
| 915 |
if serifs: top y1=x_height+min(oo,serif_drop); bot y4=-min(oo,serif_drop); |
| 916 |
else: top y1=x_height; bot y4=0; fi |
| 917 |
pos0(stem,0); pos0'(stem',0); x0=x3; x0'=x4; y0=y0'; |
| 918 |
penpos2'(stem-fine,-180); z2'=z2; y3=y1; y2=.5bar_height; |
| 919 |
penpos5(max(eps,light_vair-fine),-90); penpos6(thin_join-fine,0); |
| 920 |
y6=y0=2/3bar_height; |
| 921 |
filldraw stroke z1e--z2e; % left stem |
| 922 |
filldraw stroke z3e..z0e--z0'e..z4e; % right stem |
| 923 |
pickup fine.nib; bot y5r=-oo; x5l=.5w-.25u; lft x6l=tiny.lft x0l; |
| 924 |
(x,y5r)=whatever[z5l,z6l]; x5r:=max(x,.5[x5,x2'r]); |
| 925 |
filldraw stroke {{interim superness:=hein_super; |
| 926 |
pulled_arc.e(2',5)}} & z5e{right}...{up}z6e; % arc |
| 927 |
if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper left serif |
| 928 |
sloped_serif.l(3,0,b,1/3,jut,serif_drop); % upper right serif |
| 929 |
sloped_serif.r(4,0',c,1/3,jut,min(oo,serif_drop)); fi % lower right serif |
| 930 |
% the accent |
| 931 |
lowercase_hat(.5[x1,x3],oo,7,8,9,10,11); |
| 932 |
penlabels(1,2,3,4,5,6,7,8,9,10,11); endchar; |
| 933 |
|
| 934 |
|
| 935 |
ecchar "The letter u with umlaut"; |
| 936 |
beginchar(oct"374",10u#,lc_trema_height#,0); |
| 937 |
italcorr x_height#*slant-serif_fit#+.5stem#-2u#; |
| 938 |
adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); |
| 939 |
numeric light_vair; light_vair=vair if hefty: -vround 2vair_corr fi; |
| 940 |
if light_vair<fine.breadth: light_vair:=fine.breadth; fi |
| 941 |
pickup tiny.nib; pos1(stem,0); pos2(stem,0); |
| 942 |
pos3(stem,0); pos4(stem',0); |
| 943 |
lft x1l=hround(2.5u-.5stem); x1=x2; x3=w-x1; x3r=x4r; |
| 944 |
if serifs: top y1=x_height+min(oo,serif_drop); bot y4=-min(oo,serif_drop); |
| 945 |
else: top y1=x_height; bot y4=0; fi |
| 946 |
pos0(stem,0); pos0'(stem',0); x0=x3; x0'=x4; y0=y0'; |
| 947 |
penpos2'(stem-fine,-180); z2'=z2; y3=y1; y2=.5bar_height; |
| 948 |
penpos5(max(eps,light_vair-fine),-90); penpos6(thin_join-fine,0); |
| 949 |
y6=y0=2/3bar_height; |
| 950 |
filldraw stroke z1e--z2e; % left stem |
| 951 |
filldraw stroke z3e..z0e--z0'e..z4e; % right stem |
| 952 |
pickup fine.nib; bot y5r=-oo; x5l=.5w-.25u; lft x6l=tiny.lft x0l; |
| 953 |
(x,y5r)=whatever[z5l,z6l]; x5r:=max(x,.5[x5,x2'r]); |
| 954 |
filldraw stroke {{interim superness:=hein_super; |
| 955 |
pulled_arc.e(2',5)}} & z5e{right}...{up}z6e; % arc |
| 956 |
if serifs: sloped_serif.l(1,2,a,1/3,jut,serif_drop); % upper left serif |
| 957 |
sloped_serif.l(3,0,b,1/3,jut,serif_drop); % upper right serif |
| 958 |
sloped_serif.r(4,0',c,1/3,jut,min(oo,serif_drop)); fi % lower right serif |
| 959 |
% the accent |
| 960 |
lowercase_umlaut(0,0,7,8,9,10); |
| 961 |
penlabels(1,2,3,4,5,6,7,8,9,10); endchar; |
| 962 |
|
| 963 |
ecchar "The letter y with acute"; |
| 964 |
beginchar_twice(oct"375",if serifs:9.5u# else:9u# fi, |
| 965 |
x_height#+acc_height#,desc_depth#); |
| 966 |
italcorr x_height#*slant+.25u#; |
| 967 |
adjust_fit(serif_fit# if monospace:+\\.5u#,.5u#+ else:,fi\\ serif_fit#); |
| 968 |
numeric left_stem,right_stem,bot_stem,bot_vair,outer_jut; |
| 969 |
left_stem=fudged.stem-stem_corr; |
| 970 |
right_stem=fudged.hair if hefty:-2stem_corr fi; |
| 971 |
bot_stem=fudged.hair if hefty:-8stem_corr fi; |
| 972 |
bot_vair=Vround(if serifs: vair else:.5[vair,bot_stem] fi); |
| 973 |
outer_jut=.75jut; |
| 974 |
x1l=w-x4r=l+letter_fit+outer_jut+.25u; y1=y4r=x_height; y2=y3=0; x2l=x3l; |
| 975 |
numeric alpha,alpha[]; x9=3u; y9=bot_vair-d-oo; |
| 976 |
alpha1=diag_ratio(2,bot_stem,y1-y3,x4r-x1l-apex_corr); |
| 977 |
alpha2=diag_ratio(1,bot_stem,y1-y9,x4r-x9); |
| 978 |
if alpha1<alpha2: x2l-x1l=x4r-x3r+apex_corr; alpha=alpha1; |
| 979 |
else: alpha=alpha2; z3l=whatever[z9,z4r-(alpha*bot_stem,0)]; fi |
| 980 |
penpos3(alpha*bot_stem,0); penpos4(alpha*right_stem,0); |
| 981 |
alpha3=(y1++(x2l-x1l))/y1; |
| 982 |
penpos1(alpha3*left_stem,0); penpos2(alpha3*left_stem,0); |
| 983 |
z0=whatever[z1r,z2r]=z4l+whatever*(z3r-z4r); |
| 984 |
if y0>notch_cut: y0:=notch_cut; |
| 985 |
fill z0+.5right{up}...{z4r-z3r}diag_end(0,4l,1,1,4r,3r) |
| 986 |
--z3r--z2l--diag_end(2l,1l,1,1,1r,2r){z2-z1} |
| 987 |
...{down}z0+.5left--cycle; % left and right diagonals |
| 988 |
else: fill z0--diag_end(0,4l,1,1,4r,3r)--z3r--z2l |
| 989 |
--diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals |
| 990 |
penpos5(alpha*bot_stem,0); z5r=whatever[z3r,z4r]; y5-.5vair=-.5d; |
| 991 |
if serifs: numeric light_bulb; light_bulb=hround 7/8[hair,flare]; clearpen; |
| 992 |
penpos6(vair,-90); penpos7(hair,-180); penpos8(light_bulb,-180); |
| 993 |
x6=2u; y6r=-d-oo; y8-.5light_bulb=-.85d; x8r=hround .35u; |
| 994 |
fill stroke z3e---z5e...{left}z6e; bulb(6,7,8); % arc and bulb |
| 995 |
numeric inner_jut; pickup tiny.nib; |
| 996 |
prime_points_inside(1,2); prime_points_inside(4,3); |
| 997 |
if rt x1'r+jut+.5u+1<=lft x4'l-jut: inner_jut=jut; |
| 998 |
else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi |
| 999 |
dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % left serif |
| 1000 |
dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); % right serif |
| 1001 |
else: penpos6(bot_vair,-90); x6=2.5u; y6r=-d-oo; |
| 1002 |
fill stroke z3e---z5e...{left}z6e; % arc |
| 1003 |
pickup fine.nib; pos6'(bot_vair,-90); z6'=z6; |
| 1004 |
pos7(2/3[bot_vair,flare],-85); |
| 1005 |
lft x7l=hround u; bot y7r=vround-.96d-oo; y7l:=good.y y7l; |
| 1006 |
filldraw stroke term.e(6',7,left,1,4); fi % arc and terminal |
| 1007 |
% the accent |
| 1008 |
put_accent; |
| 1009 |
repeat_once; |
| 1010 |
penlabels(0,1,2,3,4,5,6,7,8,9); endchar; |
| 1011 |
|
| 1012 |
iff fancy_thorn: |
| 1013 |
ecchar "The letter thorn"; % from cmman |
| 1014 |
beginchar(oct"376",10u#+serif_fit#,asc_height#,desc_depth#); |
| 1015 |
italcorr .5x_height#*slant+min(.5curve#-.85u#,-.1u#); |
| 1016 |
adjust_fit(serif_fit#,0); |
| 1017 |
pickup tiny.nib; pos1(stem',0); pos2(stem,0); |
| 1018 |
pos0'(stem',0); pos0(stem,0); z0l=z0'l; x0'=x1; x0=x2; |
| 1019 |
lft x1l=hround(2.5u-.5stem'); top y1=h; |
| 1020 |
numeric edge; edge=rt x2r; |
| 1021 |
pickup fine.nib; pos3(if hefty:thin_join else: hair fi,180); |
| 1022 |
pos4(vair',90); pos5(curve,0); pos6(vair,-90); |
| 1023 |
rt x3l=1/3[rt x2,edge]; y3=1/8[bar_height,x_height]; |
| 1024 |
x4l=w-.5(w-serif_fit)+.5u; top y4r=x_height+oo; |
| 1025 |
rt x5r=hround min(w-1.35u+.5curve,w-.6u); y5=.5x_height; |
| 1026 |
x6=x3; bot y6r=-oo; |
| 1027 |
(x,y4r)=whatever[z3l,z4l]; x4r:=min(x,.5[x5r,x4]); |
| 1028 |
filldraw stroke z3e{up}...{right}z4e&super_arc.e(4,5) |
| 1029 |
&z5e{down}...{5(x6-x5),y6-y5}z6e; % bowl |
| 1030 |
y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{right}z4l)); |
| 1031 |
pickup tiny.nib; bot y2=-d; |
| 1032 |
filldraw stroke z1e--z0'e--z0e--z2e; % stem |
| 1033 |
pickup crisp.nib; pos8(hair,0); pos7'(stem,0); |
| 1034 |
z7'=z2; x8l=x7'l; bot y8=0; |
| 1035 |
filldraw stroke z7'e--z8e; % point |
| 1036 |
if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif |
| 1037 |
dish_serif(2,0,b,1/3,jut,c,1/3,jut); fi % lower serif |
| 1038 |
penlabels(0,1,2,3,4,5,6,8); endchar; |
| 1039 |
|
| 1040 |
iff not fancy_thorn: |
| 1041 |
ecchar "The letter thorn"; % jk: Bowl as in `p' or `b' |
| 1042 |
beginchar(oct"376",10u#+serif_fit#,asc_height#,desc_depth#); |
| 1043 |
italcorr .5x_height#*slant+min(.5curve#-.85u#,-.1u#); |
| 1044 |
adjust_fit(serif_fit#,0); |
| 1045 |
pickup tiny.nib; pos1(stem',0); pos2(stem,0); |
| 1046 |
pos0'(stem',0); pos0(stem,0); z0l=z0'l; x0'=x1; x0=x2; |
| 1047 |
lft x1l=hround(2.5u-.5stem'); top y1=h if serifs: +min(oo,serif_drop) fi; |
| 1048 |
numeric edge; edge=rt x2r; |
| 1049 |
pickup fine.nib; pos3(if hefty:thin_join else: hair fi,180); |
| 1050 |
pos4(vair',90); pos5(curve,0); pos6(vair,-90); penpos7(x3l-x3r,-180); |
| 1051 |
rt x3l=max(rt x3l-(lft x3r-tiny.lft x2l), 1/3[rt x2,edge]); |
| 1052 |
y3=1/8[bar_height,x_height]; |
| 1053 |
x4l=w-.5(w-serif_fit)+.5u; top y4r=x_height+oo; |
| 1054 |
rt x5r=hround min(w-1.35u+.5curve,w-.6u); y5=.5x_height; |
| 1055 |
x6l=x4l-.2u; bot y6r=-oo; |
| 1056 |
x7=x3; y7=min(y3,y6+y4-y3+.6vair); |
| 1057 |
(x,y4r)=whatever[z3l,z4l]; x4r:=min(x,.5[x5r,x4]); |
| 1058 |
(x',y6r)=whatever[z7l,z6l]; x6r:=min(x',.5[x5r,x6]); |
| 1059 |
filldraw stroke z3e{up}...{right}z4e&super_arc.e(4,5) |
| 1060 |
&super_arc.e(5,6)&z6e{left}...{up}z7e; % bowl |
| 1061 |
y0=ypart(((edge,h)--(edge,0))intersectionpoint(z3l{up}...{right}z4l)); |
| 1062 |
pickup tiny.nib; bot y2=-d; |
| 1063 |
filldraw stroke z1e--z0'e--z0e--z2e; % stem |
| 1064 |
pickup crisp.nib; pos8(hair,0); pos7'(stem,0); |
| 1065 |
z7'=z2; x8l=x7'l; bot y8=0; |
| 1066 |
filldraw stroke z7'e--z8e; % point |
| 1067 |
if serifs: sloped_serif.l(1,0',a,1/3,jut,serif_drop); % upper serif |
| 1068 |
dish_serif(2,0,b,1/3,jut,c,1/3,jut); fi % lower serif |
| 1069 |
penlabels(0,1,2,3,4,5,6,7,8); endchar; |
| 1070 |
|
| 1071 |
|
| 1072 |
iff classic_sharp_s: |
| 1073 |
ecchar "German letter sharp s"; |
| 1074 |
beginchar(oct"377",4.5u#+max(4.5u#,.5stem#+flare#+curve#),asc_height#,0); |
| 1075 |
italcorr asc_height#*slant-u#; |
| 1076 |
adjust_fit(serif_fit#,0); |
| 1077 |
pickup tiny.nib; pos1(stem',0); pos2(stem',0); |
| 1078 |
lft x1l=lft x2l=hround(2.5u-.5stem'); bot y1=0; y2=y4=.5[x_height,y3]; |
| 1079 |
penpos3(vair-fine,90); fine.top y3r=h+oo; |
| 1080 |
filldraw stroke z1e--z2e; % stem |
| 1081 |
numeric stem_edge,curve'; stem_edge=rt x1r; curve'=hround .5[stem',curve]; |
| 1082 |
pickup fine.nib; pos4(curve',0); pos5(vair,-90); |
| 1083 |
pos2'(stem',180); z2'=z2; x3=.5[x2,x4]; rt x4r=hround(w-u); |
| 1084 |
top y5l=x_height; lft x5=min(lft x4l,hround(stem_edge+u)); |
| 1085 |
filldraw stroke pulled_super_arc.e(2',3)(.5superpull) |
| 1086 |
& pulled_super_arc.e(3,4)(.5superpull) |
| 1087 |
& pulled_super_arc.e(4,5)(.5superpull); % upper bowl |
| 1088 |
pos5'(vair,90); z5'=z5; pos6(curve',0); pos7(vair,-90); |
| 1089 |
rt x6r=hround(w-.5u)+3eps; y6=.4x_height; bot y7r=-oo; |
| 1090 |
if serifs: pos8(hair,-180) else: pos8(vair,-110) fi; |
| 1091 |
lft x8r=min(hround(stem_edge+.5u+1),lft x8r+x6r-2eps-x8l); |
| 1092 |
x7=max(x8l+eps,.4[lft x8r,x6]); |
| 1093 |
filldraw stroke pulled_super_arc.e(5',6)(.5superpull) |
| 1094 |
& pulled_super_arc.e(6,7)(.5superpull); % lower bowl |
| 1095 |
if serifs: pos9(5/7[vair,flare],-180); |
| 1096 |
y9-(x9-lft x9r)=vround .07x_height; bulb(7,8,9); % bulb |
| 1097 |
penpos0(stem'-tiny,0); x0=x1; tiny.top y0=x_height; |
| 1098 |
serif(0,1,a,0,-jut); % bar |
| 1099 |
dish_serif(1,2,b,1/3,jut,c,0,epsilon); % serif |
| 1100 |
else: bot y8r=vround .01h; x8l:=good.x x8l; y8l:=good.y(y8l+.5); |
| 1101 |
filldraw stroke term.e(7,8,left,1,4); fi % terminal |
| 1102 |
penlabels(0,1,2,3,4,5,6,7,8,9); endchar; |
| 1103 |
|
| 1104 |
iff not classic_sharp_s: |
| 1105 |
ecchar "German letter scharfes s"; |
| 1106 |
% completely remade to exhibit the long s-short s ligature % jk |
| 1107 |
beginchar(oct"377",4.5u#+max(4.5u#,.5stem#+flare#+curve#),asc_height#,0); |
| 1108 |
italcorr asc_height#*slant-u#; |
| 1109 |
adjust_fit(serif_fit#,0); |
| 1110 |
pickup tiny.nib; pos1(stem',0); pos2(stem',0); |
| 1111 |
lft x1l=lft x2l=hround(2.5u-.5stem'); bot y1=0; y2=y4=.5[x_height,y3]; |
| 1112 |
penpos3(vair-fine,90); fine.top y3r=h+oo; |
| 1113 |
filldraw stroke z1e--z2e; % stem |
| 1114 |
numeric stem_edge,curve'; stem_edge=rt x1r; curve'=hround .5[stem',curve]; |
| 1115 |
numeric s_slab; s_slab=if serifs:vair else:Vround .1[vair,stem] fi; |
| 1116 |
numeric ess'; ess'=max(fine.breadth,ess); |
| 1117 |
pickup fine.nib; pos4(hair,0); |
| 1118 |
pos2'(stem',180); z2'=z2; x3=.5[x2,x4]; |
| 1119 |
rt x4r=hround(w-if not hefty: 2 fi\\u); |
| 1120 |
numeric xx; xx=min(x3, hround(stem_edge+u)); |
| 1121 |
numeric theta; |
| 1122 |
theta=90-angle(40u,x_height); slope:=-x_height/40u; % angle at middle |
| 1123 |
pos5(max(fine.breadth,s_slab-vround vair_corr),-100); |
| 1124 |
pos22(ess',theta); pos10(s_slab,-90); |
| 1125 |
x5l=hround(.5[xx,w-u]); |
| 1126 |
%if x5l+1<x4l: x5l:=x4l-1; fi |
| 1127 |
x5l=x22=x10; |
| 1128 |
top y5l=x_height+vround 1.5oo; bot y10r=-oo; |
| 1129 |
y22-.5ess'=y10l+if serifs:.54 else: .52 fi\\(y5r-y10l-ess'); |
| 1130 |
lft x6l=xx; rt x9r=hround(w-.6u); |
| 1131 |
x6r-x6l=x9r-x9l=hround .5[s_slab,ess']-fine; |
| 1132 |
ellipse_set(5l,6l,7l,22l); ellipse_set(5r,6r,7r,22r); y6=y6r; |
| 1133 |
ellipse_set(10l,9l,8l,22l); ellipse_set(10r,9r,8r,22r); y9=y9r; |
| 1134 |
interim superness:=more_super; |
| 1135 |
filldraw stroke pulled_super_arc.e(2',3)(.5superpull) |
| 1136 |
& pulled_super_arc.e(3,4)(.5superpull) |
| 1137 |
& pulled_super_arc.e(4,5)(.5superpull) % upper bowl |
| 1138 |
..super_arc.e(5,6) & z6e{down} |
| 1139 |
..z7e---z8e..z9e{down} & super_arc.e(9,10); % main s stroke |
| 1140 |
if serifs: pos21(hair,180); pos11(hair,180); |
| 1141 |
rt x21l=hround(w-1.05u); lft x11r=xx; |
| 1142 |
bot y21=min(bot y5r,vround 1/5[top y8r,x_height]); |
| 1143 |
top y11=max(top y10l,vround 5/6 bot y7l); |
| 1144 |
filldraw stroke z10e{left}....{x11-x10,5(y11-y10)}z11e; % lower arc |
| 1145 |
path upper_arc, lower_arc; |
| 1146 |
upper_arc=z21{up}....{left}z5; lower_arc=z10{left}....{x11-x10,5(y11-y10)}z11; |
| 1147 |
pos20(.3[fine.breadth,cap_hair],0); pos12(.3[fine.breadth,cap_hair],0); |
| 1148 |
x20r=x21l; top y20=top y5l; x12l=x11r; bot y12=bot y10r; |
| 1149 |
x21l-x21'=x11'-x11r=1.6cap_curve-fine; y21'=y21; y11'=y11; |
| 1150 |
t:=xpart(lower_arc intersectiontimes(z12r--z11')); |
| 1151 |
filldraw z11r--z12l--z12r--subpath(t,1) of lower_arc--cycle; % lower barb |
| 1152 |
else: pos21(4/7[s_slab,flare],-100); pos11(flare,-100); |
| 1153 |
x21l=good.x(x21l+w-u-rt x21); lft x11r=xx; |
| 1154 |
top y21l=vround(.93x_height+1.5oo); bot y11r=vround .1x_height-oo; |
| 1155 |
filldraw stroke term.e(10,11,left,1,4); fi % lower arc and terminal |
| 1156 |
if serifs: |
| 1157 |
penpos0(stem'-tiny,0); x0=x1; tiny.top y0=x_height; |
| 1158 |
serif(0,1,a,0,-jut); % bar |
| 1159 |
dish_serif(1,2,b,1/3,jut,c,0,epsilon); % serif |
| 1160 |
fi |
| 1161 |
penlabels(0,1,2,3,4,5,6,7,8,9,10.11.11',12,20,21,21',22); endchar; |
| 1162 |
|
| 1163 |
endinput; |