| 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 |
% eirl.mf: Irish lower case (minuscules) |
| 6 |
|
| 7 |
def gen_letter = |
| 8 |
adjust_fit(serif_fit#-2stem_shift# if monospace:-.5u# fi, |
| 9 |
serif_fit#-2stem_shift# if monospace:-.5u# fi); |
| 10 |
numeric left_stem,right_stem,alpha,beta; |
| 11 |
right_stem=curve-stem_corr; |
| 12 |
left_stem=min(hair if hefty: -3stem_corr fi,right_stem); |
| 13 |
x1l=w-x4r=l+letter_fit+.5u; y4=0; |
| 14 |
y1=.1bar_height; |
| 15 |
x2-x1=x4-x3+1.5u; x3r=x2r+apex_corr; y2=y3=x_height+apex_o+apex_oo; |
| 16 |
alpha=diag_ratio(2,left_stem,y2-y1,x4r-x1l-apex_corr); |
| 17 |
penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); |
| 18 |
penpos3(alpha*right_stem,0); penpos4(alpha*left_stem,0); |
| 19 |
z0=whatever[z1r,z2r]=whatever[z3l,z4l]; |
| 20 |
if y0<x_height-notch_cut: y0:=x_height-notch_cut; |
| 21 |
fill z0+.5right{z4l-z3l}...{z4-z3}diag_end(3l,4l,1,1,4r,3r) |
| 22 |
--diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1} |
| 23 |
...{up}z0+.5left--cycle; % left and right diagonals |
| 24 |
else: fill z0{z4r-z3r}..diag_end(0,4l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l) |
| 25 |
--diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals |
| 26 |
beta=angle(z1-z2); |
| 27 |
penpos5(stem,beta); z5=whatever[z1,z2]; |
| 28 |
penpos6(vair',angle(z4-z3)); z6=whatever[z3,z4]; |
| 29 |
y5=.4[y1,y0]; y6=.4[y4,y0]; |
| 30 |
penpos7(stem,beta); x7r=.5(w-u); bot y7r=-oo; |
| 31 |
filldraw stroke z5e{z7r-z5l} ... z7e .. {z6l-z7r}z6e; |
| 32 |
penlabels(0,1,2,3,4,5,6,7); enddef; |
| 33 |
|
| 34 |
guta_beag ("ailm", 10u#, 2); |
| 35 |
|
| 36 |
def gen_letter = |
| 37 |
italcorr .7x_height#*slant+.5curve#-u#; |
| 38 |
adjust_fit(serif_fit#,0); |
| 39 |
pickup tiny.nib; |
| 40 |
pos1(stem,0); pos2(stem,0); x1=x2; |
| 41 |
lft x1l=hround(2.5u-.5stem); top y1=h; y2=.5x_height; |
| 42 |
filldraw stroke z1e--z2e; % stem |
| 43 |
if serifs: trasnawn(1,a,jut); fi % serif |
| 44 |
pickup fine.nib; pos2'(stem,-180); pos3(vair,-90); |
| 45 |
pos4(curve,0); pos5(vair,90); pos0(hair,180); |
| 46 |
z0=z2=z2'; x3=x5=.5[x2,x4]; rt x4r=hround min(w-1.35u+.5curve,w-.6u); |
| 47 |
bot y3r=-oo; top y5r=x_height+oo; y4=y2; |
| 48 |
filldraw stroke pulled_arc.e(2',3) & pulled_arc.e(3,4) |
| 49 |
& pulled_arc.e(4,5) & super_arc.e(5,0); % bowl |
| 50 |
penlabels(0,1,2,3,4,5); enddef; |
| 51 |
|
| 52 |
cmchar "beith"; beginchar("b",10u#+serif_fit#,asc_height#,0); |
| 53 |
gen_letter; endchar; |
| 54 |
|
| 55 |
cmchar "beith-h"; |
| 56 |
beginchar(beith_h,10u#+serif_fit#,min(old_asc_height#,10/7x_height#+.5dot_diam#),0); |
| 57 |
gen_letter; aspirate(5); endchar; |
| 58 |
|
| 59 |
def gen_letter = |
| 60 |
italcorr x_height#*slant-.2u#; |
| 61 |
adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); |
| 62 |
pickup fine.nib; pos2(vair',90); pos4(vair',270); |
| 63 |
x2=x4=.5(w+u); top y2r=vround(x_height+1.5oo); bot y4r=-oo; |
| 64 |
pos1(4/7[vair',flare],if serifs: 40 else: 80 fi); |
| 65 |
rt x1r=hround(w-.6u); top y1r=vround .82[bar_height,top y2r]; |
| 66 |
filldraw stroke term.e(2,1,right,.8,4); % upper terminal |
| 67 |
pos3(curve,180); lft x3r=hround max(.6u,1.35u-.5curve); y3=.5x_height; |
| 68 |
if serifs: |
| 69 |
pos5(hair,-40); rt x5r=hround(w-.5u); |
| 70 |
y5=max(good.y(.5bar_height-.9),y4l+vair'); |
| 71 |
(x,y4l)=whatever[z4r,z5l]; |
| 72 |
filldraw stroke pulled_super_arc.e(2,3)(.7superpull) |
| 73 |
& pulled_super_arc.e(3,4)(.5superpull) |
| 74 |
& term.e(4,5,right,.8,4); % arc and lower terminal |
| 75 |
else: |
| 76 |
pos5(.6[vair',flare],275); rt x5r=hround(w-.5u); |
| 77 |
y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; |
| 78 |
forsuffixes e=l,r: path p.e; p.e=z4e{right}..tension .9 and 1..z5e; |
| 79 |
if angle direction 1 of p.e>75: |
| 80 |
p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor |
| 81 |
filldraw stroke pulled_super_arc.e(2,3)(.7superpull) |
| 82 |
& pulled_super_arc.e(3,4)(.5superpull) & p.e; fi % arc and lower terminal |
| 83 |
penlabels(1,2,3,4,5); enddef; |
| 84 |
|
| 85 |
consan_beag ("coll", if serifs: 8.5u# else: 8u# fi, 0, 4); |
| 86 |
|
| 87 |
def gen_letter = |
| 88 |
italcorr x_height#*slant+.5stem#-u#; |
| 89 |
adjust_fit(0,if monospace: .5u# else: 0 fi); |
| 90 |
pickup fine.nib; |
| 91 |
pos1(vair,90); pos2(curve,0); pos3(vair,-90); pos4(curve,-180); |
| 92 |
x1=x3=.5[x2,x4]; w-rt x2r=hround max(.5u,1.25u-.5curve); |
| 93 |
lft x4r=hround 2u; |
| 94 |
y1r=x_height+vround 1.5oo; y2=y4=.5[y1,y3]; y3r=-oo; |
| 95 |
filldraw circ_stroke pulled_arc.e(1,4) & pulled_arc.e(4,3) |
| 96 |
& pulled_arc.e(3,2) & pulled_arc.e(2,1); % bowl |
| 97 |
if serifs: pos8(hair,210); lft x8r=hround u; y8=x_height+apex_oo; |
| 98 |
path arc; arc=z1l{left}..{z8-z2}z8r; |
| 99 |
pos9(slab,-60); lft x9l=.5u; y9r=.8x_height; |
| 100 |
filldraw z8r{down}..z9l--z9r{z1-z9}..subpath(.4,0) of arc |
| 101 |
--z1r{left}..{z8-z2}z8l--cycle; % lower barb |
| 102 |
else: pos6(vstem,80); x6=.5u; top y6r=top y1r+oo; |
| 103 |
filldraw stroke z6e{z2l-z6r} .. {right}z1e; fi % ear |
| 104 |
penlabels(1,2,3,4,6,8,9); enddef; |
| 105 |
|
| 106 |
consan_beag ("dair", 11u#, 0, 1); |
| 107 |
|
| 108 |
def gen_letter = |
| 109 |
italcorr .5[bar_height#,x_height#]*slant+.5min(curve#-1.5u#,0); |
| 110 |
adjust_fit(if monospace: .25u#,.5u# else: 0,0 fi); |
| 111 |
numeric left_curve,right_curve; |
| 112 |
left_curve=right_curve+6stem_corr=curve if not serifs: -3stem_corr fi; |
| 113 |
if right_curve<tiny.breadth: right_curve:=tiny.breadth; fi |
| 114 |
if left_curve<tiny.breadth: left_curve:=tiny.breadth; fi |
| 115 |
pickup tiny.nib; pos1(right_curve,0); |
| 116 |
pos2(vair,90); pos3(left_curve,180); |
| 117 |
y1=good.y bar_height; top y2r=x_height+vround 1.5oo; y0l=bot y1; |
| 118 |
rt x1r=hround min(w-1.5u,w-2u+.5right_curve); |
| 119 |
lft x3r=hround max(.5u,1.25u-.5left_curve); x2=.5[x3l,x1l]; |
| 120 |
{{interim superness:=more_super; |
| 121 |
filldraw stroke super_arc.e(1,2)}}; % right bowl |
| 122 |
y3=.5[y2,y4]; bot y4r=-oo; |
| 123 |
if serifs: pos4(vair',270); pos5(hair,360); x4=x2; |
| 124 |
y5=max(good.y(.5bar_height-.9),y4l+vair); x5r=x1r; |
| 125 |
(x,y4l)=whatever[z4r,z5]; x4l:=min(x,x4l+.5u); |
| 126 |
filldraw stroke pulled_arc.e(2,3) & pulled_arc.e(3,4) |
| 127 |
...{x5-x4,5(y5-y4)}z5e; % left bowl, arc, and terminal |
| 128 |
else: pos4(vair,270); x4=.5w+.5u; |
| 129 |
filldraw stroke super_arc.e(2,3) & super_arc.e(3,4); % left bowl and arc |
| 130 |
pickup fine.nib; pos4'(vair,270); z4=z4'; |
| 131 |
pos5(.5[vair,flare],275); rt x5r=hround(w-1.6u); |
| 132 |
y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; |
| 133 |
filldraw stroke term.e(4',5,right,1,4); fi % terminal |
| 134 |
path testpath; testpath=super_arc.r(2,3) & super_arc.r(3,4); |
| 135 |
y1'r=y0r=y0l+.6[thin_join,vair]; y1'l=y0l; x1'l=x1'r=w-.5u; |
| 136 |
forsuffixes $=l,r: |
| 137 |
x0$=xpart(((0,y0$)--(x1,y0$)) intersectionpoint testpath); endfor |
| 138 |
fill stroke z0e--z1'e; % crossbar |
| 139 |
penlabels(0,1,1',2,3,4,5); enddef; |
| 140 |
|
| 141 |
guta_beag ("eabhadh", 9u#, 2); |
| 142 |
|
| 143 |
def gen_sail = |
| 144 |
italcorr x_height#*slant if not serifs:+.25u# fi; |
| 145 |
adjust_fit(serif_fit#+stem_shift#,0); |
| 146 |
pickup tiny.nib; pos1(stem,0); pos2(stem,0); |
| 147 |
numeric shaved_stem; shaved_stem=hround(stem-2stem_corr); |
| 148 |
pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(4/7[vair',flare],40); |
| 149 |
lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; rt x3r=hround(w-.6u); |
| 150 |
top y1=x_height+min(oo,serif_drop); bot y2=-d; y1=y1'; y2=y2'; |
| 151 |
filldraw stroke z1'e--z2'e; % left stem |
| 152 |
y3=1/2[bar_height,x_height]; |
| 153 |
penpos2''(x2r-x2l,0); x2''=x2; y2''=1/8[bar_height,x_height]; |
| 154 |
filldraw stroke z2''e--z2e; % thicken the lower left stem |
| 155 |
penpos.a0(min(rt x2r-lft x2l,thin_join)-fine,180); pickup fine.nib; |
| 156 |
rt x.a0l=tiny.rt x2r; y.a0=y2''; |
| 157 |
pos.a1(vair,90); pos3'(4/7[vair',flare]+tiny,40); z3'=z3; |
| 158 |
x.a1=.5[rt x.a0l,rt x3'r]; top y.a1r=x_height+oo; |
| 159 |
(x.a,y.a1l)=whatever[z.a1r,z.a0l]; x.a1l:=x.a; |
| 160 |
filldraw stroke z.a0e{up}...{right}z.a1e |
| 161 |
&{{interim superness:=hein_super; super_arc.e(a1,3')}}; % arch |
| 162 |
if serifs: trasnawn(1',b,jut); fi % upper left serif |
| 163 |
labels(a0); penlabels(a1,1,2,3,4); enddef; |
| 164 |
|
| 165 |
def gen_letter = |
| 166 |
numeric arm_thickness; arm_thickness=hround .9[vair,.85stem]; |
| 167 |
gen_sail; |
| 168 |
pickup crisp.nib; bot y13l=bot y14l=.25bar_height; |
| 169 |
pos13(arm_thickness,90); pos14(arm_thickness,90); |
| 170 |
lft x13=x1; rt x14=x3l; filldraw stroke z13e--z14e; % bar |
| 171 |
penlabels(13,14); enddef; |
| 172 |
|
| 173 |
consan_beag ("fearn", 10u#, desc_depth#, a1); |
| 174 |
|
| 175 |
def gen_letter = |
| 176 |
italcorr x_height#*slant+.25u#; |
| 177 |
adjust_fit(0,0); |
| 178 |
numeric arm_thickness; arm_thickness=hround .9[vair,.85stem]; |
| 179 |
numeric s_slab; s_slab=if serifs:vair else:Vround .1[vair,stem] fi; |
| 180 |
numeric ess'; ess'=max(fine.breadth,ess); |
| 181 |
pickup crisp.nib; pos17(arm_thickness,90); pos18(arm_thickness,90); |
| 182 |
top y17r=top y18r=x_height; rt x17=hround(w-.8u); lft x18r=hround .9u; |
| 183 |
filldraw stroke z17e--z18e; |
| 184 |
numeric theta; theta=90-angle(40u,x_height); |
| 185 |
slope:=-x_height/40u; % angle at middle |
| 186 |
pickup fine.nib; pos0(ess',theta); pos7(s_slab,-90); x0=x7=.5w; |
| 187 |
bot y7r=-d-oo; |
| 188 |
pos2(s_slab,-90); z2=(x17-u,y17); |
| 189 |
lft x3l=hround 2u; rt x6r=hround(w-1.4u); |
| 190 |
x3r-x3l=x6r-x6l=hround .5[s_slab,ess']-fine; |
| 191 |
pos12(s_slab,-90); z12=.5[z17l,z18l]; |
| 192 |
y0=.5[y7l,y12r]; |
| 193 |
ellipse_set(12l,3l,4l,0l); ellipse_set(12r,3r,4r,0r); y3=y3r; |
| 194 |
ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r; |
| 195 |
interim superness:=more_super; |
| 196 |
filldraw stroke super_arc.e(2,3) & z3e{down} |
| 197 |
..z4e---z5e..z6e{down} & super_arc.e(6,7); % main stroke |
| 198 |
if serifs: |
| 199 |
pos9(slab,-70); lft x9l=hround 1.25u; bot y9r=good.y-5/6d; |
| 200 |
pos8(hair,180); x8=x9+u; y8=apex_oo; |
| 201 |
path arc; arc=z7r{left}....{up}z8r; |
| 202 |
filldraw z8r{down}..z9l--z9r...subpath(.3,0) of arc |
| 203 |
--z7l{left}....{up}z8l--cycle; % barb |
| 204 |
else: pos8(.5[vair,flare],-100); |
| 205 |
lft x8r=hround 1.25u; bot y8r=good.y-5/6d; |
| 206 |
filldraw stroke term.e(7,8,left,1,4); fi % arc and terminal |
| 207 |
penlabels(0,2,3,4,5,6,7,8,9,10,12,17,18); enddef; |
| 208 |
|
| 209 |
consan_beag ("gort", 11u#, desc_depth#, 12); |
| 210 |
|
| 211 |
cmchar "uath"; |
| 212 |
beginchar("h",10.5u#,asc_height#,0); |
| 213 |
italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; |
| 214 |
adjust_fit(serif_fit#+stem_shift#, |
| 215 |
serif_fit#-2stem_shift# if monospace:-.5u# fi); |
| 216 |
pickup tiny.nib; pos1(stem,0); pos2(stem,0); |
| 217 |
pos1'(stem',0); pos2'(stem',0); pos3(stem,0); |
| 218 |
lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; |
| 219 |
top y1=h; bot y2=0; y1=y1'; y2=y2'; |
| 220 |
filldraw stroke z1'e--z2'e; % left stem |
| 221 |
h_stroke(2,a,3,4); % arch and right stem |
| 222 |
if serifs: trasnawn(1',b,jut); % upper left serif |
| 223 |
numeric inner_jut; pickup tiny.nib; |
| 224 |
if rt x2r+jut+.5u+1<=lft x4l-jut: inner_jut=jut; |
| 225 |
else: rt x2r+jut+.5u+1=lft x4l-inner_jut; fi fi |
| 226 |
penlabels(1,2,3,4); endchar; |
| 227 |
|
| 228 |
def gen_letter = |
| 229 |
italcorr h#*slant-serif_fit#-2u#; |
| 230 |
adjust_fit(serif_fit#+stem_shift# if monospace:+.25u#fi, |
| 231 |
serif_fit#-2stem_shift# if monospace:-.5u# fi); |
| 232 |
pickup tiny.nib; pos1(stem',0); pos2(stem',0); |
| 233 |
if odd(w-stem'): change_width; fi |
| 234 |
lft x1l=hround(.5w-.5stem'); x1=x2; |
| 235 |
top y1=x_height if serifs: +min(oo,serif_drop) fi; bot y2=0; |
| 236 |
filldraw stroke z1e--z2e; % stem |
| 237 |
if serifs: trasnawn(1,a,jut); fi % upper serif |
| 238 |
penlabels(1,2,3,4); enddef; |
| 239 |
|
| 240 |
guta_beag ("iodha", 5u#, 1); |
| 241 |
|
| 242 |
cmchar "luis"; |
| 243 |
beginchar("l",7.5u#,asc_height#,0); |
| 244 |
italcorr x_height#*slant if serifs: -.9u# else: -.4u# fi; |
| 245 |
adjust_fit(serif_fit#+stem_shift#,if serifs: 0 else: -.5u# fi); |
| 246 |
pickup tiny.nib; pos1(stem',180); pos2(stem',180); |
| 247 |
lft x1r=lft x2r=hround(2.5u-.5stem); |
| 248 |
top y1=h; y2=max(.5bar_height,2vair); |
| 249 |
filldraw stroke z1e--z2e; |
| 250 |
pickup fine.nib; interim superness:=more_super; |
| 251 |
pos3(stem',180); z3=z2; |
| 252 |
pos4(vair',-90); bot y4r=-oo; rt x5r=hround(w-u); |
| 253 |
if serifs: pos5(hair,0); y5=y3; x4l=.5[x3l,x5l]; |
| 254 |
(x,y4r)=whatever[z4l,z5l]; x4r:=max(x,.5[x3r,x4]); |
| 255 |
filldraw stroke super_arc.e(3,4)...{up}z5e; % stem and hook |
| 256 |
else: pos5(vair,-75); top y5l=vround .2[top y4l,bar_height]; |
| 257 |
x5l:=good.x x5l; x4l=1/3[x3l,x5l]; x4r:=1/3[x3r,x5r]; y3l:=y3l+.2vair; |
| 258 |
filldraw stroke z3e..super_arc.e(3,4); % stem and hook |
| 259 |
path p; p=stroke z4e{right}..tension .9 and atleast 1..z5e; % terminal |
| 260 |
if (xpart(z5l-precontrol 1 of p)<0) or (xpart(z5r-postcontrol 2 of p)<0): |
| 261 |
filldraw stroke z4e{right}...{up}z5e; |
| 262 |
else: filldraw p; fi fi; |
| 263 |
if serifs: z1l=z1'r; z1r=z1'l; trasnawn(1',a,jut); fi % upper serif |
| 264 |
penlabels(1,2,3,4,5); endchar; |
| 265 |
|
| 266 |
def gen_letter = |
| 267 |
italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; |
| 268 |
adjust_fit(serif_fit#+stem_shift#, |
| 269 |
serif_fit#-2stem_shift# if monospace:-.5u# fi); |
| 270 |
numeric shaved_stem; shaved_stem=hround(mfudged.stem-2stem_corr); |
| 271 |
pickup tiny.nib; pos1(mfudged.stem,0); pos2(mfudged.stem,0); |
| 272 |
pos1'(shaved_stem,0); pos2'(shaved_stem,0); |
| 273 |
pos3(mfudged.stem,0); pos5(mfudged.stem,0); |
| 274 |
lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; |
| 275 |
lft x3l=hround(.5w-.5stem); x5-x3=x3-x1; |
| 276 |
%if not monospace: r:=hround(x5+x1)+l; fi % change width for better fit |
| 277 |
top y1=x_height+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2'; |
| 278 |
filldraw stroke z1'e--z2'e; % left stem |
| 279 |
h_stroke(2,a,3,4); % left arch and middle stem |
| 280 |
h_stroke(4,b,5,6); % right arch and right stem |
| 281 |
if serifs: trasnawn(1',c,jut); fi % upper left serif |
| 282 |
penlabels(1,2,3,4,5,6); enddef; |
| 283 |
|
| 284 |
consan_beag ("muin", 15u#, 0, 3); |
| 285 |
|
| 286 |
cmchar "nuin"; |
| 287 |
beginchar("n",10.5u#,x_height#,0); |
| 288 |
italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; |
| 289 |
adjust_fit(serif_fit#+stem_shift#, |
| 290 |
serif_fit#-2stem_shift# if monospace:-.5u# fi); |
| 291 |
pickup tiny.nib; pos1(stem,0); pos2(stem,0); |
| 292 |
numeric shaved_stem; shaved_stem=hround(stem-2stem_corr); |
| 293 |
pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(stem,0); |
| 294 |
lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; x3=w-x1; |
| 295 |
top y1=h+min(oo,serif_drop); bot y2=0; y1=y1'; y2=y2'; |
| 296 |
filldraw stroke z1'e--z2'e; % left stem |
| 297 |
h_stroke(2,a,3,4); % arch and right stem |
| 298 |
if serifs: trasnawn(1',b,jut); fi % upper left serif |
| 299 |
penlabels(1,2,3,4); endchar; |
| 300 |
|
| 301 |
def gen_letter = |
| 302 |
italcorr .7x_height#*slant; |
| 303 |
adjust_fit(if monospace: .5u#,.5u# else: 0,0 fi); |
| 304 |
penpos1(vair,90); penpos3(vair',-90); |
| 305 |
penpos2(curve,180); penpos4(curve,0); |
| 306 |
x2r=hround max(.5u,1.25u-.5curve); |
| 307 |
x4r=w-x2r; x1=x3=.5w; y1r=x_height+vround 1.5oo; y3r=-oo; |
| 308 |
y2=y4=.5x_height-vair_corr; y2l:=y4l:=.52x_height; |
| 309 |
penstroke pulled_arc.e(1,2) & pulled_arc.e(2,3) |
| 310 |
& pulled_arc.e(3,4) & pulled_arc.e(4,1) & cycle; % bowl |
| 311 |
penlabels(1,2,3,4); enddef; |
| 312 |
|
| 313 |
guta_beag ("oir", 9u#, 1); |
| 314 |
|
| 315 |
def gen_letter = |
| 316 |
italcorr .5x_height#*slant+min(.5curve#-.85u#,-.1u#); |
| 317 |
adjust_fit(serif_fit#,0); |
| 318 |
pickup tiny.nib; pos1(stem',0); pos2(stem,0); |
| 319 |
pos0'(stem',0); pos0(stem,0); z0l=z0'l; x0'=x1; x0=x2; |
| 320 |
lft x1l=hround(2.5u-.5stem'); |
| 321 |
top y1=x_height if serifs: +min(oo,serif_drop) fi; |
| 322 |
numeric edge; edge=rt x2r; |
| 323 |
pickup fine.nib; pos3(if hefty:thin_join else: hair fi,180); |
| 324 |
pos4(vair',90); pos5(curve,0); pos6(vair,-90); |
| 325 |
rt x3l=hround(2.5u-.5stem')+stem'; y0=y3; top y3=bar_height; |
| 326 |
x4l=w-.5(w-serif_fit)+.5u; top y4r=x_height+oo; |
| 327 |
rt x5r=hround min(w-1.35u+.5curve,w-.6u); y5=.5x_height; |
| 328 |
x6l=x4l+u; bot y6r=-oo; |
| 329 |
(x,y4r)=whatever[z3l,z4l]; x4r:=min(x,.5[x5r,x4]); |
| 330 |
%(x',y6r)=whatever[z7l,z6l]; x6r:=min(x',.5[x5r,x6]); |
| 331 |
%x6r:=x6r-x4r+x4l; |
| 332 |
filldraw stroke z3e{up}...{right}z4e&super_arc.e(4,5) |
| 333 |
&super_arc.e(5,6)&z6e{left}; % bowl |
| 334 |
if serifs: |
| 335 |
pos9(slab,-70); lft x9l=rt x3l+.5u; y9r=.05x_height; |
| 336 |
pos8(hair,180); x8=x9+u; top y8=vround .3x_height-1; |
| 337 |
path arc; arc=z6r{left}....{up}z8r; |
| 338 |
filldraw z8r{down}..z9l--z9r...subpath(.3,0) of arc |
| 339 |
--z6l{left}....{up}z8l--cycle; % barb |
| 340 |
else: pos8(1.2flare,-100); |
| 341 |
lft x8r=rt x3l+hround .5u; bot y8r=vround .1x_height-o; |
| 342 |
filldraw stroke term.e(6,8,left,1,4); fi % arc and terminal |
| 343 |
pickup tiny.nib; bot y2=-d; |
| 344 |
filldraw stroke z1e--z0'e--z0e--z2e; % stem |
| 345 |
if serifs: trasnawn(1,a,jut); fi % upper serif |
| 346 |
penlabels(0,1,2,3,4,5,6,8,9); enddef; |
| 347 |
|
| 348 |
consan_beag ("peith_bhog", 10.5u#+serif_fit#, desc_depth#, 4); |
| 349 |
|
| 350 |
cmchar "ruis"; |
| 351 |
beginchar("r",9u#,x_height#,desc_depth#); |
| 352 |
italcorr .5[bar_height#,x_height#]*slant-serif_fit#+.5stem#-2u#; |
| 353 |
adjust_fit(serif_fit#+stem_shift#,serif_fit#-stem_shift#); |
| 354 |
pickup tiny.nib; pos1(stem,0); pos2(stem,0); |
| 355 |
numeric shaved_stem; shaved_stem=hround(stem-2stem_corr); |
| 356 |
pos1'(shaved_stem,0); pos2'(shaved_stem,0); pos3(vair,0); |
| 357 |
lft x1l=hround(2.5u-.5stem); x1l=x1'l=x2l=x2'l; rt x3r=w-u; y3=0; |
| 358 |
top y1=h+min(oo,serif_drop); bot y2=-d; y1=y1'; y2=y2'; |
| 359 |
filldraw stroke z1'e--z2'e; % left stem |
| 360 |
penpos2''(x2r-x2l,0); x2''=x2; y2''=bar_height; |
| 361 |
filldraw stroke z2''e--z2e; % thicken the lower left stem |
| 362 |
penpos5(min(rt x2r-lft x2l,thin_join)-fine,180); pickup fine.nib; |
| 363 |
rt x5l=tiny.rt x2r; y5=y2''; |
| 364 |
pos6(vair,90); x6=.8[rt x5l,rt x3r]; top y6r=x_height+oo; |
| 365 |
pos4(stem,angle(z6-z5)); z4r=z6r; |
| 366 |
filldraw stroke z5e--z6e--z4e..z4e-(0,x_height-bar_height)...z3e; |
| 367 |
if serifs: trasnawn(1',b,jut); fi % upper left serif |
| 368 |
penlabels(1,2,3,4,5,6); endchar; |
| 369 |
|
| 370 |
let gen_letter = gen_sail; |
| 371 |
consan_beag ("sail", 10u#, desc_depth#, a1); |
| 372 |
|
| 373 |
def gen_letter = |
| 374 |
italcorr .8x_height#*slant-.4u#; |
| 375 |
adjust_fit(0,0); |
| 376 |
numeric arm_thickness, hair_vair; arm_thickness=hround .9[vair,.85stem]; |
| 377 |
hair_vair=min(.25[vair,hair],arm_thickness); |
| 378 |
pickup crisp.nib; pos7(arm_thickness,90); pos8(arm_thickness,90); |
| 379 |
top y7r=top y8r=x_height; rt x7=hround(w-.8u); lft x8r=hround .9u; |
| 380 |
filldraw stroke z7e--z8e; |
| 381 |
pickup fine.nib; pos2(min(vair',arm_thickness),90); pos4(vair',270); |
| 382 |
x2=x4=.5(w+u); bot y2l=crisp.bot y7l; bot y4r=-oo; |
| 383 |
pos3(curve,180); lft x3r=w-rt x5r+.5u=hround 2.1u; y3=.5[y2l,y4l]; |
| 384 |
if serifs: |
| 385 |
pos5(hair,-40); |
| 386 |
y5=max(good.y(.5bar_height-.9),y4l+vair'); |
| 387 |
(x,y4l)=whatever[z4r,z5l]; |
| 388 |
filldraw stroke pulled_super_arc.e(2,3)(.7superpull) |
| 389 |
& pulled_super_arc.e(3,4)(.5superpull) |
| 390 |
& term.e(4,5,right,.8,4); % arc and lower terminal |
| 391 |
else: |
| 392 |
pos5(.6[vair',flare],275); |
| 393 |
y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; |
| 394 |
forsuffixes e=l,r: path p.e; p.e=z4e{right}..tension .9 and 1..z5e; |
| 395 |
if angle direction 1 of p.e>75: |
| 396 |
p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor |
| 397 |
filldraw stroke pulled_super_arc.e(2,3)(.7superpull) |
| 398 |
& pulled_super_arc.e(3,4)(.5superpull) & p.e; fi % arc and lower terminal |
| 399 |
penlabels(2,3,4,5,7,8); enddef; |
| 400 |
|
| 401 |
consan_beag ("teine", 10.5u#, 0, 4); |
| 402 |
|
| 403 |
def gen_letter = |
| 404 |
italcorr x_height#*slant-serif_fit#+.5stem#-2u#; |
| 405 |
adjust_fit(serif_fit#+stem_shift#, |
| 406 |
serif_fit#-2stem_shift# if monospace:-.5u# fi); |
| 407 |
numeric light_vair; light_vair=vair if hefty: -vround 2vair_corr fi; |
| 408 |
if light_vair<fine.breadth: light_vair:=fine.breadth; fi |
| 409 |
pickup tiny.nib; pos1(stem,0); pos2(stem,0); |
| 410 |
pos3(stem,0); pos4(stem',0); |
| 411 |
lft x1l=hround(2.5u-.5stem); x1=x2; x3=w-x1; x3r=x4r; |
| 412 |
if serifs: top y1=x_height+min(oo,serif_drop); bot y4=-min(oo,serif_drop); |
| 413 |
else: top y1=x_height; bot y4=0; fi |
| 414 |
pos0(stem,0); pos0'(stem',0); x0=x3; x0'=x4; y0=y0'; |
| 415 |
penpos2'(stem-fine,-180); z2'=z2; y3=y1; y2=.5bar_height; |
| 416 |
penpos5(max(eps,light_vair-fine),-90); penpos6(thin_join-fine,0); |
| 417 |
y6=y0=bar_height; %2/3bar_height; |
| 418 |
filldraw stroke z1e--z2e; % left stem |
| 419 |
filldraw stroke z3e..z0e--z0'e..z4e; % right stem |
| 420 |
pickup fine.nib; bot y5r=-oo; x5l=.5w-.25u; lft x6l=tiny.lft x0l; |
| 421 |
(x,y5r)=whatever[z5l,z6l]; x5r:=max(x,.5[x5,x2'r]); |
| 422 |
filldraw stroke {{interim superness:=hein_super; |
| 423 |
pulled_arc.e(2',5)}} & z5e{right}...{up}z6e; % arc |
| 424 |
if serifs: trasnawn(1,a,jut); % upper left serif |
| 425 |
pickup tiny.nib; trasnawn(3,b,jut); fi % upper right serif |
| 426 |
penlabels(1,2,3,4,5); labels(6); enddef; |
| 427 |
|
| 428 |
guta_beag ("uwr", 10.5u#, 5); |