| 1 |
%% This file is public domain. |
| 2 |
%% Originally written 1998, Ivan A Derzhanski. |
| 3 |
%% Notice added by Clea F. Rees 2009/01/06. |
| 4 |
%% |
| 5 |
% eiru.mf: Irish upper case (majuscules) |
| 6 |
|
| 7 |
def cap_h_stroke(suffix $,@,@@,$$) = |
| 8 |
penpos$$(x@@r-x@@l,0); x$$=x@@; bot y$$=0; |
| 9 |
y@@=1/3[x_height,cap_height]; |
| 10 |
penpos$''(x$r-x$l,0); x$''=x$; y$''=x_height; |
| 11 |
filldraw stroke z$''e--z$e; % thicken the lower left stem |
| 12 |
penpos@0(min(rt x$r-lft x$l,thin_join)-fine,180); pickup fine.nib; |
| 13 |
rt x@0l=tiny.rt x$r; y@0=y$''; |
| 14 |
pos@1(vair,90); pos@@'(x@@r-x@@l+tiny,0); z@@'=z@@; |
| 15 |
x@1=.5[rt x@0l,rt x@@'r]; top y@1r=cap_height+oo; |
| 16 |
(x@,y@1l)=whatever[z@1r,z@0l]; x@1l:=x@; |
| 17 |
filldraw stroke z@0e{x@1-x@0,1.5(y@1-y@0)}...{right}z@1e |
| 18 |
&{{interim superness:=hein_super; super_arc.e(@1,@@')}}; % arch |
| 19 |
pickup tiny.nib; filldraw stroke z@@e--z$$e; % right stem |
| 20 |
labels(@0); penlabels(@1); enddef; |
| 21 |
|
| 22 |
def saillipse_set(suffix $,@,@@,$$) = |
| 23 |
alpha_:=slope*(x@-x$); beta_:=y$$-y$-slope*(x$$-x$); |
| 24 |
gamma_:=alpha_/beta_; |
| 25 |
x@@-x$=-2gamma_*(x@-x$)/(1+gamma_*gamma_); |
| 26 |
y@@-y$$=slope*(x@@-x$$) enddef; |
| 27 |
|
| 28 |
def gen_letter = |
| 29 |
adjust_fit(cap_serif_fit#-2stem_shift# if monospace:-.5u# fi, |
| 30 |
cap_serif_fit#-2stem_shift# if monospace:-.5u# fi); |
| 31 |
numeric left_stem,right_stem,outer_jut,alpha,beta; |
| 32 |
right_stem=cap_curve-stem_corr; |
| 33 |
left_stem=min(cap_hair if hefty: -3stem_corr fi,right_stem); |
| 34 |
outer_jut=.8cap_jut; x1l=w-x4r=l+letter_fit+.5u; y4=0; |
| 35 |
y1=.1x_height; |
| 36 |
x2-x1=x4-x3+2.5u; x3r=x2r+apex_corr; y2=y3=cap_height+apex_o+apex_oo; |
| 37 |
alpha=diag_ratio(2,left_stem,y2-y1,x4r-x1l-apex_corr); |
| 38 |
penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); |
| 39 |
penpos3(alpha*right_stem,0); penpos4(alpha*left_stem,0); |
| 40 |
z0=whatever[z1r,z2r]=whatever[z3l,z4l]; |
| 41 |
if y0<cap_height-cap_notch_cut: y0:=cap_height-cap_notch_cut; |
| 42 |
fill z0+.5right{z4l-z3l}...{z4-z3}diag_end(3l,4l,1,1,4r,3r) |
| 43 |
--diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1} |
| 44 |
...{up}z0+.5left--cycle; % left and right diagonals |
| 45 |
else: fill z0{z4r-z3r}..diag_end(0,4l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l) |
| 46 |
--diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals |
| 47 |
beta=angle(z1-z2); |
| 48 |
penpos5(cap_stem,beta); z5=whatever[z1,z2]; |
| 49 |
penpos6(cap_band,angle(z4-z3)); z6=whatever[z3,z4]; |
| 50 |
y5=.4[y1,y0]; y6=.4[y4,y0]; |
| 51 |
penpos7(cap_stem,beta); x7r=.5(w-u); bot y7r=-oo; |
| 52 |
filldraw stroke z5e{z7r-z5l} ... z7e .. {z6l-z7r}z6e; |
| 53 |
penlabels(0,1,2,3,4,5,6,7); enddef; |
| 54 |
|
| 55 |
guta_mowr ("Ailm", 14u#, 2); |
| 56 |
|
| 57 |
def gen_letter = |
| 58 |
italcorr .7cap_height#*slant+.5curve#-u#; |
| 59 |
adjust_fit(cap_serif_fit#,0); pickup tiny.nib; |
| 60 |
pos1(cap_stem,0); pos2(cap_stem,0); x1=x2; |
| 61 |
lft x1l=hround 2.5u-.5cap_stem; |
| 62 |
top y1=h; y2=bar_height; y4=.5cap_height; |
| 63 |
filldraw stroke z1e--z2e; % stem |
| 64 |
if serifs: trasnawn(1,a,cap_jut); fi % serif |
| 65 |
pickup fine.nib; pos2'(cap_stem,-180); pos3(vair,-90); |
| 66 |
pos4(cap_curve,0); pos5(vair,90); pos0(hair,180); |
| 67 |
z0=z2=z2'; x3=x5-.5u=.5[x2,x4]; rt x4r=hround min(w-1.35u+.5curve,w-.6u); |
| 68 |
bot y3r=-oo; top y5r=cap_height+oo; |
| 69 |
filldraw stroke pulled_arc.e(2',3) & pulled_arc.e(3,4) |
| 70 |
& pulled_arc.e(4,5) & super_arc.e(5,0); % bowl |
| 71 |
penlabels(0,1,2,3,4,5); enddef; |
| 72 |
|
| 73 |
cmchar "Beith"; |
| 74 |
beginchar("B",12.5u#,cap_asc_height#,0); gen_letter; endchar; |
| 75 |
|
| 76 |
cmchar "Beith-h"; |
| 77 |
beginchar(Beith_h,12.5u#,cap_asc_height#,0); |
| 78 |
gen_letter; aspirate(5); endchar; |
| 79 |
|
| 80 |
def gen_letter = |
| 81 |
italcorr cap_height#*slant-.5u#; |
| 82 |
adjust_fit(0,0); pickup fine.nib; |
| 83 |
pos3(cap_curve,180); y3=.5cap_height; |
| 84 |
if serifs: |
| 85 |
pos1(1.2flare,40); pos2(vair',90); |
| 86 |
pos4(vair',270); pos5(hair,-40); |
| 87 |
x2=x4=.5(w+u); top y2r=vround(cap_height+1.5oo); bot y4r=-oo; |
| 88 |
rt x1r=hround(w-.6u); top y1r=vround .7[bar_height,top y2r]; |
| 89 |
filldraw stroke term.e(2,1,right,.8,4); % upper terminal |
| 90 |
lft x3r=hround u; |
| 91 |
rt x5r=hround(w-.5u); |
| 92 |
y5=max(good.y .95(cap_height-y1),y4l+eps); |
| 93 |
(x,y4l)=whatever[z4r,z5l]; |
| 94 |
filldraw stroke pulled_super_arc.e(2,3)(.7superpull) |
| 95 |
& pulled_super_arc.e(3,4)(.5superpull) & term.e(4,5,right,.8,4); |
| 96 |
else: |
| 97 |
pos1(1.2flare,80); pos2(slab,90); |
| 98 |
pos4(slab,270); pos5(flare,275); |
| 99 |
rt x1r=hround(w-1.1u); x2=x4=.5w+1.25u; |
| 100 |
lft x3r=hround max(u,2u-.5cap_curve); rt x5r=hround(w-.9u); |
| 101 |
top y1r=vround .95cap_height+o; top y2r=cap_height+o; bot y4r=-o; |
| 102 |
bot y5r=vround .08cap_height-o; y5l:=good.y y5l; x5l:=good.x x5l; |
| 103 |
filldraw stroke rterm.e(2,1,right,.9,4) & super_arc.e(2,3) |
| 104 |
& super_arc.e(3,4) & term.e(4,5,right,.8,4); fi % arc and terminals |
| 105 |
penlabels(1,2,3,4,5); enddef; |
| 106 |
|
| 107 |
consan_mowr ("Coll", 11.5u#, 0, 4); |
| 108 |
|
| 109 |
def gen_letter = |
| 110 |
italcorr cap_height#*slant+.5cap_stem#-u#; |
| 111 |
adjust_fit(0,0); pickup fine.nib; |
| 112 |
pos1(vair,90); pos2(cap_curve,0); pos3(vair,-90); pos4(cap_curve,-180); |
| 113 |
x1=x3=.5[x2,x4]; w-rt x2r=hround if monospace: 1.5u else: u fi; |
| 114 |
lft x4r=hround 2.5u; |
| 115 |
y1r=cap_height+o; y2=y4=.5[y1,y3]; y3r=-o; |
| 116 |
filldraw circ_stroke pulled_arc.e(1,4) & pulled_arc.e(4,3) |
| 117 |
& pulled_arc.e(3,2) & pulled_arc.e(2,1); % bowl |
| 118 |
if serifs: pos8(hair,210); lft x8r=hround u; y8=cap_height+apex_o; |
| 119 |
path arc; arc=z1l{left}..{z8-z2}z8r; |
| 120 |
pos9(slab,-60); lft x9l=.5u; y9r=.8cap_height; |
| 121 |
filldraw z8r{down}..z9l--z9r{z1-z9}..subpath(.4,0) of arc |
| 122 |
--z1r{left}..{z8-z2}z8l--cycle; % lower barb |
| 123 |
else: pos6(cap_vstem,80); x6=.5u; top y6r=top y1r+oo; |
| 124 |
filldraw stroke z6e{z2l-z6r} .. {right}z1e; fi % ear |
| 125 |
penlabels(1,2,3,4,6,8,9); enddef; |
| 126 |
|
| 127 |
consan_mowr ("Dair", 14u#, 0, 1); |
| 128 |
|
| 129 |
def gen_letter = |
| 130 |
italcorr .5[x_height#,cap_height#]*slant+.5min(cap_curve#-1.5u#,0); |
| 131 |
adjust_fit(0,0); |
| 132 |
numeric left_curve,right_curve; |
| 133 |
left_curve=right_curve+6stem_corr=cap_curve if not serifs: -3stem_corr fi; |
| 134 |
if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi |
| 135 |
if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi |
| 136 |
pickup fine.nib; pos1(right_curve,0); |
| 137 |
pos2(vair,90); pos3(left_curve,180); |
| 138 |
y1=vround .52cap_height; |
| 139 |
top y2r=cap_height+vround 1.5oo; y0l=bot y1l; |
| 140 |
lft x3r=hround hround u; |
| 141 |
rt x1r=hround min(w-1.5u,w-2u+.5right_curve); x2=.5[x3l,x1l]; |
| 142 |
{{interim superness:=more_super; |
| 143 |
filldraw stroke super_arc.e(1,2)}}; % right bowl |
| 144 |
y3=.5[y2,y4]; bot y4r=-oo; |
| 145 |
if serifs: pos4(vair',270); pos5(hair,360); x4=x2; |
| 146 |
y5=max(good.y(.26cap_height-.9),y4l+vair); x5r=x1r; |
| 147 |
(x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u); |
| 148 |
filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4) |
| 149 |
...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal |
| 150 |
else: pos4(slab,270); x4=.5w+.5u; |
| 151 |
filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % left bowl and arc |
| 152 |
pos5(flare,275); rt x5r=hround(w-1.6u); |
| 153 |
bot y5r=vround .08cap_height-o; |
| 154 |
filldraw stroke term.e(4,5,right,1,4); fi % terminal |
| 155 |
path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4); |
| 156 |
y1'r=y0r=y0l+cap_bar; y1'l=y0l; x1'l=x1'r=w-.5u; |
| 157 |
forsuffixes $=l,r: |
| 158 |
x0$=xpart(((0,y0$)--(x1,y0$)) intersectionpoint testpath); endfor |
| 159 |
fill stroke z0e--z1'e; % crossbar |
| 160 |
penlabels(0,1,1',2,3,4,5); enddef; |
| 161 |
|
| 162 |
guta_mowr ("Eabhadh", 12u#, 2); |
| 163 |
|
| 164 |
def gen_letter = |
| 165 |
italcorr cap_height#*slant if not serifs:+.25u# fi; |
| 166 |
adjust_fit(cap_serif_fit#,0); |
| 167 |
numeric arm_thickness; arm_thickness=hround .9[vair,.85cap_stem]; |
| 168 |
pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); |
| 169 |
numeric shaved_stem; shaved_stem=hround(cap_stem-2stem_corr); |
| 170 |
pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(1.2flare,40); |
| 171 |
lft x1l=hround(2.5u-.5cap_stem); x1l=x1'l=x2l=x2'l; rt x3r=hround(w-1.1u); |
| 172 |
top y1=cap_height+min(oo,serif_drop); bot y2=-d; y1=y1'; y2=y2'; |
| 173 |
filldraw stroke z1'e--z2'e; % left stem |
| 174 |
top y3r=vround .3[x_height,cap_height]; |
| 175 |
penpos2''(x2r-x2l,0); x2''=x2; y2''=x_height; |
| 176 |
filldraw stroke z2''e--z2e; % thicken the lower left stem |
| 177 |
penpos.a0(min(rt x2r-lft x2l,thin_join)-fine,180); pickup fine.nib; |
| 178 |
rt x.a0l=tiny.rt x2r; y.a0=y2''; |
| 179 |
pos.a1(vair,90); pos3'(1.2flare+tiny,40); z3'=z3; |
| 180 |
x.a1=.5[rt x.a0l,rt x3'r]; top y.a1r=cap_height+oo; |
| 181 |
(x.a,y.a1l)=whatever[z.a1r,z.a0l]; x.a1l:=x.a; |
| 182 |
filldraw stroke z.a0e{x.a1-x.a0,1.5(y.a1-y.a0)}...{right}z.a1e |
| 183 |
&{{interim superness:=hein_super; super_arc.e(a1,3')}}; % arch |
| 184 |
if serifs: trasnawn(1',b,cap_jut); fi % upper left serif |
| 185 |
pickup crisp.nib; pos13(arm_thickness,90); pos14(arm_thickness,90); |
| 186 |
bot y13l=bot y14l=.25x_height; lft x13=x1; |
| 187 |
rt x14=x3l; filldraw stroke z13e--z14e; % bar |
| 188 |
labels(a0); penlabels(a1,1,2,3,4,13,14); enddef; |
| 189 |
|
| 190 |
consan_mowr ("Fearn", 13u#+.5width_adj#, desc_depth#, a1); |
| 191 |
|
| 192 |
def gen_letter = |
| 193 |
italcorr cap_height#*slant+.25u#; |
| 194 |
adjust_fit(0,0); |
| 195 |
numeric arm_thickness; arm_thickness=hround .9[vair,.85cap_stem]; |
| 196 |
numeric s_slab; s_slab=if serifs:slab else:vround .2[slab,cap_stem] fi; |
| 197 |
numeric ess'; ess'=max(fine.breadth,cap_ess); |
| 198 |
pickup crisp.nib; pos17(arm_thickness,90); pos18(arm_thickness,90); |
| 199 |
top y17r=top y18r=cap_height; rt x17=hround(w-.8u); lft x18r=hround .9u; |
| 200 |
filldraw stroke z17e--z18e; |
| 201 |
numeric theta; theta=90-angle(50u,cap_height); |
| 202 |
slope:=-cap_height/50u; % angle at middle |
| 203 |
pickup fine.nib; |
| 204 |
pos0(ess',theta); pos7(s_slab,-90); |
| 205 |
2x0=w; x7-.5w=if serifs: u else: 0 fi; bot y7r=-d-o; |
| 206 |
pos2(max(fine.breadth,s_slab-vround vair_corr),-90); z2=(x17-u,y17); |
| 207 |
y0=.5[y7l,y12r]; |
| 208 |
lft x3l=hround 2.5u; rt x6r=hround(w-1.4u); |
| 209 |
x3r-x3l=x6r-x6l=hround .5[s_slab,ess']-fine; |
| 210 |
pos12(s_slab,-90); z12=.5[z17l,z18l]; |
| 211 |
ellipse_set(12l,3l,4l,0l); ellipse_set(12r,3r,4r,0r); y3=y3r; |
| 212 |
ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r; |
| 213 |
filldraw stroke super_arc.e(2,3) & z3e{down} |
| 214 |
..z4e---z5e..z6e{down} & super_arc.e(6,7); % main stroke |
| 215 |
if serifs: |
| 216 |
pos9(slab,-70); lft x9l=hround 1.25u; bot y9r=good.y-5/6d; |
| 217 |
pos8(hair,180); x8=x9+1.5u; y8=apex_o; |
| 218 |
path arc; arc=z7r{left}....{up}z8r; |
| 219 |
filldraw z8r{down}..z9l--z9r...subpath(.3,0) of arc |
| 220 |
--z7l{left}....{up}z8l--cycle; % barb |
| 221 |
else: pos8(1.2flare,-100); |
| 222 |
lft x8r=hround 1.25u; bot y8r=good.y-5/6d; |
| 223 |
filldraw stroke term.e(7,8,left,1,4); fi % arc and terminal |
| 224 |
penlabels(0,2,3,4,5,6,7,8,9,10,12,17,18); enddef; |
| 225 |
|
| 226 |
consan_mowr ("Gort", 13u#, desc_depth#, 12); |
| 227 |
|
| 228 |
cmchar "Uath"; |
| 229 |
beginchar("H",13u#+.5width_adj#,cap_asc_height#,0); |
| 230 |
italcorr .5[x_height#,cap_height#]*slant-cap_serif_fit#+.5cap_stem#-2u#; |
| 231 |
adjust_fit(cap_serif_fit#, |
| 232 |
cap_serif_fit#-2stem_shift# if monospace:-.5u# fi); |
| 233 |
pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); |
| 234 |
numeric shaved_stem; shaved_stem=hround(cap_stem-2stem_corr); |
| 235 |
pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(cap_stem,0); |
| 236 |
lft x1l=hround(2.5u-.5cap_stem); x1l=x1'l=x2l=x2'l; x3=w-x1; |
| 237 |
top y1=h+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2'; |
| 238 |
filldraw stroke z1'e--z2'e; % left stem |
| 239 |
cap_h_stroke(2,a,3,4); % arch and right stem |
| 240 |
if serifs: trasnawn(1',b,cap_jut); fi % upper left serif |
| 241 |
penlabels(1,2,3,4); endchar; |
| 242 |
|
| 243 |
def gen_letter = |
| 244 |
italcorr cap_height#*slant-.25u#; |
| 245 |
adjust_fit(cap_serif_fit#, |
| 246 |
cap_serif_fit#-2stem_shift# if monospace:-.5u# fi); |
| 247 |
pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); |
| 248 |
lft x1l=lft x2l=hround(.5w-.5cap_stem); top y1=cap_height; bot y2=0; |
| 249 |
filldraw stroke z1e--z2e; % stem |
| 250 |
if serifs: trasnawn(1,a,cap_jut); fi % upper serif |
| 251 |
penlabels(1,2); enddef; |
| 252 |
|
| 253 |
guta_mowr ("Iodha", max(6u#,4u#+cap_stem#), 1); |
| 254 |
|
| 255 |
cmchar "Luis"; |
| 256 |
beginchar("L",10u#,cap_asc_height#,0); |
| 257 |
italcorr x_height#*slant if serifs: -.9u# else: -.4u# fi; |
| 258 |
adjust_fit(cap_serif_fit#,if serifs: 0 else: -.5u# fi); |
| 259 |
pickup tiny.nib; pos1(cap_stem,180); pos2(cap_stem,180); |
| 260 |
lft x1r=lft x2r=hround max(2u,3u-.5cap_stem); |
| 261 |
top y1=h; y2=max(.5bar_height,2vair); |
| 262 |
filldraw stroke z1e--z2e; |
| 263 |
pickup fine.nib; interim superness:=more_super; |
| 264 |
pos3(cap_stem,180); z3=z2; |
| 265 |
pos4(vair',-90); bot y4r=-o; rt x5r=hround(w-u); |
| 266 |
if serifs: pos5(hair,0); y5=y3; x4l=.5[x3l,x5l]; |
| 267 |
(x,y4r)=whatever[z4l,z5l]; x4r:=max(x,.5[x3r,x4]); |
| 268 |
filldraw stroke super_arc.e(3,4)...{up}z5e; % stem and hook |
| 269 |
else: pos5(vair,-75); top y5l=vround .2[top y4l,bar_height]; |
| 270 |
x5l:=good.x x5l; x4l=1/3[x3l,x5l]; x4r:=1/3[x3r,x5r]; y3l:=y3l+.2vair; |
| 271 |
filldraw stroke z3e..super_arc.e(3,4); % stem and hook |
| 272 |
path p; p=stroke z4e{right}..tension .9 and atleast 1..z5e; % terminal |
| 273 |
if (xpart(z5l-precontrol 1 of p)<0) or (xpart(z5r-postcontrol 2 of p)<0): |
| 274 |
filldraw stroke z4e{right}...{up}z5e; |
| 275 |
else: filldraw p; fi fi; |
| 276 |
if serifs: |
| 277 |
z1l=z1'r; z1r=z1'l; trasnawn(1',a,jut); fi % upper serif |
| 278 |
penlabels(1,2,3,4,5); endchar; |
| 279 |
|
| 280 |
def gen_letter = |
| 281 |
italcorr .5[x_height#,cap_height]*slant-cap_serif_fit#+.5cap_stem#-2u#; |
| 282 |
adjust_fit(cap_serif_fit#, |
| 283 |
cap_serif_fit#-2stem_shift# if monospace:-.5u# fi); |
| 284 |
numeric mfudged_stem; mfudged_stem=hround(cap_stem-stem_corr); |
| 285 |
numeric shaved_stem; shaved_stem=hround(cap_stem-stem_corr); |
| 286 |
pickup tiny.nib; pos1(mfudged_stem,0); pos2(mfudged_stem,0); |
| 287 |
pos1'(shaved_stem,0); pos2'(shaved_stem,0); |
| 288 |
pos3(mfudged_stem,0); pos5(mfudged_stem,0); |
| 289 |
lft x1l=hround(2.5u-.5cap_stem); x1l=x1'l=x2l=x2'l; |
| 290 |
lft x3l=hround(.5w-.5cap_stem); x5-x3=x3-x1; |
| 291 |
%if not monospace: r:=hround(x5+x1)+l; fi % change width for better fit |
| 292 |
top y1=cap_height+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2'; |
| 293 |
filldraw stroke z1'e--z2'e; % left stem |
| 294 |
cap_h_stroke(2,a,3,4); % left arch and middle stem |
| 295 |
cap_h_stroke(4,b,5,6); % right arch and right stem |
| 296 |
if serifs: trasnawn(1',c,cap_jut); fi % upper left serif |
| 297 |
penlabels(1,2,3,4,5,6); enddef; |
| 298 |
|
| 299 |
consan_mowr ("Muin", 17u#, 0, 3); |
| 300 |
|
| 301 |
cmchar "Nuin"; |
| 302 |
beginchar("N",13u#+.5width_adj#,cap_height#,0); |
| 303 |
italcorr .5[x_height#,cap_height#]*slant-cap_serif_fit#+.5cap_stem#-2u#; |
| 304 |
adjust_fit(cap_serif_fit#, |
| 305 |
cap_serif_fit#-2stem_shift# if monospace:-.5u# fi); |
| 306 |
pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); |
| 307 |
numeric shaved_stem; shaved_stem=hround(cap_stem-2stem_corr); |
| 308 |
pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(cap_stem,0); |
| 309 |
lft x1l=hround(2.5u-.5cap_stem); x1l=x1'l=x2l=x2'l; x3=w-x1; |
| 310 |
top y1=h+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2'; |
| 311 |
filldraw stroke z1'e--z2'e; % left stem |
| 312 |
cap_h_stroke(2,a,3,4); % arch and right stem |
| 313 |
if serifs: trasnawn(1',b,cap_jut); fi % upper left serif |
| 314 |
penlabels(1,2,3,4); endchar; |
| 315 |
|
| 316 |
def gen_letter = |
| 317 |
italcorr .7cap_height#*slant-.5u#; |
| 318 |
adjust_fit(0,0); |
| 319 |
penpos1(vair',90); penpos3(vround(vair+1.5vair_corr),-90); |
| 320 |
penpos2(cap_curve,180); penpos4(cap_curve,0); |
| 321 |
if monospace: x2r=hround 1.5u; |
| 322 |
interim superness:=sqrt superness; % make |"O"|, not |"0"| |
| 323 |
else: x2r=hround u; fi |
| 324 |
x4r=w-x2r; x1=x3=.5w; y1r=cap_height+o; y3r=-o; |
| 325 |
y2=y4=.5cap_height-vair_corr; y2l:=y4l:=.52cap_height; |
| 326 |
penstroke pulled_super_arc.e(1,2)(.5superpull) |
| 327 |
& pulled_super_arc.e(2,3)(.5superpull) |
| 328 |
& pulled_super_arc.e(3,4)(.5superpull) |
| 329 |
& pulled_super_arc.e(4,1)(.5superpull) & cycle; % bowl |
| 330 |
penlabels(1,2,3,4); enddef; |
| 331 |
|
| 332 |
guta_mowr ("Oir", 13u#-width_adj#, 1); |
| 333 |
|
| 334 |
def gen_letter = |
| 335 |
italcorr .5cap_height#*slant+min(.5curve#-.85u#,-.1u#); |
| 336 |
adjust_fit(cap_serif_fit#,0); |
| 337 |
pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem,0); |
| 338 |
pos0'(cap_stem',0); pos0(cap_stem,0); z0l=z0'l; x0'=x1; |
| 339 |
lft x1l=lft x2l=hround max(2u,3u-.5cap_stem'); top y1=cap_height; bot y2=-d; |
| 340 |
numeric edge; edge=rt x2r; |
| 341 |
pickup fine.nib; pos3(if hefty:thin_join else: hair fi,180); |
| 342 |
pos4(vair',90); pos5(cap_curve,0); pos6(vair,-90); |
| 343 |
rt x3l=hround max(2u,3u-.5cap_stem')+cap_stem'; |
| 344 |
y0=y3=.58cap_height; |
| 345 |
x4l=w-.5(w-serif_fit)+.5u; top y4r=cap_height+oo; |
| 346 |
rt x5r=hround min(w-1.35u+.5curve,w-.6u); y5=.5[y4l,y6l]; |
| 347 |
x6l=x4l+u; bot y6=-oo; |
| 348 |
(x,y4r)=whatever[z3l,z4l]; x4r:=min(x,.5[x5r,x4]); |
| 349 |
filldraw stroke z3e{up}...{right}z4e&super_arc.e(4,5) |
| 350 |
&super_arc.e(5,6)&z6e{left}; % bowl |
| 351 |
if serifs: |
| 352 |
pos9(slab,-70); lft x9l=rt x3l+.8u; y9r=.05cap_height; |
| 353 |
pos8(hair,180); x8=x9+1.5u; top y8=vround .3cap_height-1; |
| 354 |
path arc; arc=z6r{left}....{up}z8r; |
| 355 |
filldraw z8r{down}..z9l--z9r...subpath(.3,0) of arc |
| 356 |
--z6l{left}....{up}z8l--cycle; % barb |
| 357 |
else: pos8(1.2flare,-100); |
| 358 |
lft x8r=rt x3l+hround .8u; bot y8r=vround .1cap_height-o; |
| 359 |
filldraw stroke term.e(6,8,left,1,4); fi % arc and terminal |
| 360 |
pickup tiny.nib; |
| 361 |
filldraw stroke z1e--z0e--z0'e--z2e; % stem |
| 362 |
if serifs: trasnawn(1,a,cap_jut); fi % upper serif |
| 363 |
penlabels(0,1,2,3,4,5,6,8,9); enddef; |
| 364 |
|
| 365 |
consan_mowr ("Peith_Bhog", 12.5u#+.5max(2u#,cap_curve#), desc_depth#, 4); |
| 366 |
|
| 367 |
cmchar "Ruis"; |
| 368 |
beginchar("R",if serifs: 12u#+.5max(2u#,cap_curve#) |
| 369 |
else:12.5u#-.5width_adj# fi,cap_height#,0); |
| 370 |
italcorr .75cap_height#*slant- if serifs: 1.75 else: .5 fi\\ u#; |
| 371 |
adjust_fit(cap_serif_fit#,0); |
| 372 |
pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0); |
| 373 |
lft x1l=lft x2l=hround max(2u,3u-.5cap_stem'); top y1=h; bot y2=0; |
| 374 |
numeric edge; edge=rt x2r; |
| 375 |
pickup fine.nib; pos3(if hefty:thin_join else: hair fi,180); |
| 376 |
rt x3l=max(rt x3l-(lft x3r-tiny.lft x2l), 1/3[rt x2,edge]); |
| 377 |
y3=.7cap_height; |
| 378 |
pos4(vair',90); pos5(cap_curve if hefty:-3stem_corr fi,0); |
| 379 |
pos6(vair,-90); |
| 380 |
top y4r=cap_height+oo; |
| 381 |
if serifs: x4=.5w-.5u; x5r=hround(w-2.25u); |
| 382 |
else: x4=.5w+.5u; x5r=hround(w-u); fi |
| 383 |
y5=.4[y4l,y6l]; |
| 384 |
x6=x3+2.5u; y6=vround(.5h-.5vair); |
| 385 |
(x,y4r)=whatever[z3l,z4l]; x4r:=min(x,.5[x5r,x4]); |
| 386 |
filldraw stroke z3e{up}...{right}z4e&super_arc.e(4,5)&pulled_arc.e(5,6); |
| 387 |
pickup tiny.nib; filldraw stroke z1e--z2e; % stem |
| 388 |
if serifs: pos6'(vair,-90); pos0(cap_stem,180); |
| 389 |
pos8(cap_curve,180); pos9(vair,-90); pos10(hair,0); |
| 390 |
z6'=z6; lft x0r=lft x8r-.1u=hround(x5-.5cap_curve); |
| 391 |
y8=1/3[y2,y6]; y0=3/5[y2,y6]; x9=.5[x8l,x10r]; |
| 392 |
bot y9r=-o; rt x10r=hround(w+.2u); y10=1/10[y2,y6]; |
| 393 |
filldraw stroke z6'e{right}..z0e---z8e....z9e{right}..z10e{up}; % tail |
| 394 |
trasnawn(1,a,cap_jut); % upper serif |
| 395 |
else: penpos8(cap_stem-2stem_corr,0); penpos9(cap_stem,0); |
| 396 |
x8l=x6+.5u; y8=y6; x9r=hround(w-.5u); y9=0; |
| 397 |
fill z8l--diag_end(8l,9l,.5,1,9r,8r)--z8r--cycle; fi % tail |
| 398 |
penlabels(0,1,2,3,4,5,6,8,9,10); endchar; |
| 399 |
|
| 400 |
def gen_letter = |
| 401 |
italcorr cap_height#*slant-u#; |
| 402 |
adjust_fit(0,0); |
| 403 |
numeric theta; theta=90-angle(50u,cap_height); |
| 404 |
slope:=-cap_height/50u; % angle at middle |
| 405 |
numeric s_slab; s_slab=if serifs:slab else:vround .2[slab,cap_stem] fi; |
| 406 |
numeric ess'; ess'=max(fine.breadth,cap_ess); |
| 407 |
pickup fine.nib; pos2(max(fine.breadth,s_slab-vround vair_corr),-90); |
| 408 |
pos0(s_slab,theta); pos7(s_slab,-90); |
| 409 |
x2+x7=2x0=w; x7-x2=if serifs: u else: 0 fi; top y2l=cap_height+o; bot y7r=-o; |
| 410 |
y0=.52cap_height; lft x3l=hround u; rt x6r=hround(w-u); |
| 411 |
pos3(cap_curve,slope); pos6(cap_curve,slope); |
| 412 |
ellipse_set(2l,3l,4l,0l); saillipse_set(2r,3r,4r,0r); |
| 413 |
ellipse_set(7l,6l,5l,0l); saillipse_set(7r,6r,5r,0r); |
| 414 |
filldraw stroke super_arc.e(2,3) & z3e{down}..z4e---z5e..z6e{down}; |
| 415 |
filldraw stroke super_arc.e(7,6); % main stroke |
| 416 |
if serifs: pos1(hair,180); pos8(hair,180); |
| 417 |
rt x1l=hround(w-2u); lft x8r=hround 2u; |
| 418 |
bot y1=vround .7cap_height+1; top y8=vround .3cap_height-1; |
| 419 |
path upper_arc, lower_arc; |
| 420 |
upper_arc=z1l{x2l-x1l,10(y2l-y1l)}....{left}z2l; |
| 421 |
lower_arc=z7r{left}....{up}z8r; |
| 422 |
pos10(slab,-70); pos9(slab,-70); |
| 423 |
x10r=x6r; y10l=.95cap_height; x9l=x3l; y9r=.05cap_height; |
| 424 |
filldraw z1l{up}..z10r--z10l..subpath(.6,1) of upper_arc |
| 425 |
--z2r{right}....{x1-x2,10(y1-y2)}z1r--cycle; % upper barb |
| 426 |
filldraw z8r{down}..z9l--z9r..subpath(.4,0) of lower_arc |
| 427 |
--z7l{left}....{up}z8l--cycle; % lower barb |
| 428 |
else: pos1(1.2flare,-100); pos8(1.2flare,-100); |
| 429 |
x1l=good.x(x1l+w-1.75u-rt x1); lft x8r=hround .8u; |
| 430 |
top y1l=vround .93cap_height+o; bot y8r=vround .1cap_height-o; |
| 431 |
filldraw stroke term.e(2,1,right,.9,4); % upper arc and terminal |
| 432 |
filldraw stroke term.e(7,8,left,1,4); fi % lower arc and terminal |
| 433 |
penlabels(0,1,2,3,4,5,6,7,8,9,10); enddef; |
| 434 |
|
| 435 |
consan_mowr ("Sail", 11u#, 0, 2); |
| 436 |
|
| 437 |
def gen_letter = |
| 438 |
italcorr .8cap_height#*slant-.4u#; |
| 439 |
adjust_fit(0,0); |
| 440 |
numeric arm_thickness, hair_vair; arm_thickness=hround .9[vair,.85cap_stem]; |
| 441 |
hair_vair=min(.25[vair,hair],arm_thickness); |
| 442 |
pickup crisp.nib; pos7(arm_thickness,90); pos8(arm_thickness,90); |
| 443 |
top y7r=top y8r=cap_height; rt x7=hround(w-.8u); lft x8r=hround .9u; |
| 444 |
filldraw stroke z7e--z8e; |
| 445 |
pickup fine.nib; pos2(min(vair',arm_thickness),90); |
| 446 |
x2=x4=.5(w+u); bot y2l=crisp.bot y7l; bot y4r=-oo; |
| 447 |
pos3(cap_curve,180); |
| 448 |
if serifs: pos4(vair',270); pos5(hair,-40); |
| 449 |
y5=max(good.y(.3x_height-.9),y4l+vair'); |
| 450 |
else: pos4(slab,270); pos5(flare,275); |
| 451 |
bot y5r=vround .08cap_height-o; fi |
| 452 |
lft x3r=w-rt x5r=hround 1.9u; y3=.5[y2l,y4l]; |
| 453 |
(x,y4l)=whatever[z4r,z5l]; |
| 454 |
filldraw stroke pulled_super_arc.e(2,3)(.7superpull) |
| 455 |
& pulled_super_arc.e(3,4)(.5superpull) & term.e(4,5,right,.8,4); |
| 456 |
penlabels(2,3,4,5,7,8); enddef; |
| 457 |
|
| 458 |
consan_mowr ("Teine", 13.5u#, 0, 4); |
| 459 |
|
| 460 |
def gen_letter = |
| 461 |
italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#); |
| 462 |
adjust_fit(cap_serif_fit#, |
| 463 |
cap_serif_fit#-2stem_shift# if monospace:-.5u# fi); |
| 464 |
numeric light_vair; light_vair=vair if hefty: -vround 2vair_corr fi; |
| 465 |
if light_vair<fine.breadth: light_vair:=fine.breadth; fi |
| 466 |
pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); |
| 467 |
pos3(cap_stem,0); pos4(cap_stem',0); |
| 468 |
lft x1l=hround(2.5u-.5cap_stem); x1=x2; x3=w-x1; x3r=x4r; |
| 469 |
if serifs: top y1=cap_height+min(oo,serif_drop); bot y4=-min(oo,serif_drop); |
| 470 |
else: top y1=cap_height; bot y4=0; fi |
| 471 |
pos0(cap_stem,0); pos0'(cap_stem',0); x0=x3; x0'=x4; y0=y0'; |
| 472 |
penpos2'(cap_stem-fine,-180); z2'=z2; y3=y1; y2=.5x_height; |
| 473 |
penpos5(max(eps,light_vair-fine),-90); penpos6(thin_join-fine,0); |
| 474 |
y6=y0=bar_height; |
| 475 |
filldraw stroke z1e--z2e; % left stem |
| 476 |
filldraw stroke z3e..z0e--z0'e..z4e; % right stem |
| 477 |
pickup fine.nib; bot y5r=-oo; x5l=.5w-.25u; lft x6l=tiny.lft x0l; |
| 478 |
(x,y5r)=whatever[z5l,z6l]; x5r:=max(x,.5[x5,x2'r]); |
| 479 |
filldraw stroke {{interim superness:=hein_super; |
| 480 |
pulled_arc.e(2',5)}} & z5e{right}...{up}z6e; % arc |
| 481 |
if serifs: trasnawn(1,a,cap_jut); % upper left serif |
| 482 |
pickup tiny.nib; trasnawn(3,b,cap_jut); fi % upper right serif |
| 483 |
penlabels(1,2,3,4,5); labels(6); enddef; |
| 484 |
|
| 485 |
guta_mowr ("Uwr", 13u#+.5width_adj#, 5); |