| 1 |
% Old Latin ligatures part 2 oromligs.mf (part 1 is oromlig.mf) |
| 2 |
% This file describes five roman ligatures |
| 3 |
% that begin with ``langes Es'' or end with ``t'' |
| 4 |
% and puts them in code positions \0213--. |
| 5 |
|
| 6 |
% This file should be read just after ``oromlig.mf'', |
| 7 |
% because the next two lines are in oromlig.mf: |
| 8 |
% > numeric itc#; % modified italic correction on `f' and `ff' |
| 9 |
% > itc#=if serifs: max(0,flare#-.25u#) else: 1.25u# fi; |
| 10 |
|
| 11 |
ligtable "s": "i"=:oct"214", "f"=:oct"213", "l"=:oct"215", |
| 12 |
"s"=:oct"253", ":"=:oct"363", "t"=:oct"334", |
| 13 |
"'" kern itc#, "?" kern itc#, "!" kern itc#, ")" kern itc#, "]" kern itc#; |
| 14 |
ligtable oct"213": "i"=:oct"216", "l"=:oct"217", |
| 15 |
% "t"=:oct"336", % ligature of sft, which should not be used in old text |
| 16 |
"'" kern itc#, "?" kern itc#, "!" kern itc#, ")" kern itc#, "]" kern itc#; |
| 17 |
ligtable oct"253": "i"=:oct"256", "l"=:oct"257", "t"=:oct"376", |
| 18 |
"'" kern itc#, "?" kern itc#, "!" kern itc#, ")" kern itc#, "]" kern itc#; |
| 19 |
|
| 20 |
% Combinations "langes Es" and "f" |
| 21 |
|
| 22 |
cmchar "The ligature langes sf"; |
| 23 |
beginchar(oct"213",10.5u#+2letter_fit#,asc_height#,0); |
| 24 |
italcorr asc_height#*slant+if serifs:flare#-.25u# else: 1.25u# fi; |
| 25 |
adjust_fit(0,0); |
| 26 |
pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); |
| 27 |
pos11(stem',0); rt x11r=hround(w-3u+.5stem'); |
| 28 |
pickup fine.nib; numeric bulb_diam, inner_jut; |
| 29 |
if serifs: bulb_diam=hround .8[stem,flare]; |
| 30 |
pos2(bulb_diam,0); pos12(bulb_diam,0); |
| 31 |
rt x2r=hround(rt x11r-stem_corr); lft x12l=hround(w-.75u+.5); |
| 32 |
y2+.5bulb_diam=.85[x_height,h+oo]; y12+.5bulb_diam=.9[x_height,h+oo]; |
| 33 |
if rt x1r+jut+.5u+2<=lft x11l-jut: inner_jut=jut; |
| 34 |
else: rt x1r+inner_jut+.5u+2=lft x11l-inner_jut; fi |
| 35 |
else: pos2(5/7[vair,flare],90); top y2r=h; rt x2=hround 6.25u; |
| 36 |
pos12(5/7[vair,flare],90); y12=y2; rt x12=hround(w+.75u); fi |
| 37 |
f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif |
| 38 |
f_stroke(11,12,d,e,f,inner_jut,1.25jut); % right stem, arc, terminal, serif |
| 39 |
pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround .5u-1; |
| 40 |
pos3(bar,90); pos4(bar,90); |
| 41 |
rt x4=hround(w-1/3u); |
| 42 |
pos3'(bar,90); x3'=x1; y3'=y3; |
| 43 |
pos4'(bar,90); x4'-x11=x3-x1; y4'=y4; |
| 44 |
filldraw stroke z3e--z3'e; filldraw stroke z4'e--z4e; % bars |
| 45 |
penlabels(1,2,3,4,11,12); endchar; |
| 46 |
|
| 47 |
cmchar "The ligature langes si"; |
| 48 |
beginchar(oct"214",10u#+2letter_fit#,asc_height#,0); |
| 49 |
italcorr asc_height#*slant-serif_fit#+.5if serifs:stem# else:dot_size# fi-2u#; |
| 50 |
adjust_fit(0,serif_fit#); |
| 51 |
pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); |
| 52 |
pos11(stem',0); rt x11r=hround(w-2.5u+.5stem'); |
| 53 |
pos12(stem',0); x11=x12; bot y12=0; |
| 54 |
pickup fine.nib; numeric bulb_diam, inner_jut; |
| 55 |
if serifs: bulb_diam=hround 1/4[.8[stem,flare],dot_size]; |
| 56 |
pos2(bulb_diam,0); x2r=x12r; |
| 57 |
y2+.5bulb_diam=.8[x_height,h+oo]; top y11=x_height+min(oo,serif_drop); |
| 58 |
if rt x1r+jut+.5u+2<=lft x11l-jut: inner_jut=jut; |
| 59 |
else: rt x1r+inner_jut+.5u+2=lft x11l-inner_jut; fi |
| 60 |
else: bulb_diam=max(stem,dot_size); |
| 61 |
pos2(6/7[vair,flare],90); top y2r=h; rt x2=hround 5.3u; |
| 62 |
pickup tiny.nib; pos13(bulb_diam,0); pos14(bulb_diam,90); |
| 63 |
x13=x11-.5; top y14r=min(2x_height,h+1); top y11=x_height; |
| 64 |
if bot y14l-x_height<tiny: y14l:=min(y14r-eps,y11+2tiny); fi |
| 65 |
x13=x14; y13=.5[y14l,y14r]; dot(13,14); % dot |
| 66 |
fi; % this is the ligature we're drawing |
| 67 |
f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif |
| 68 |
pickup tiny.nib; filldraw stroke z11e--z12e; % right stem |
| 69 |
pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround .5u-1; |
| 70 |
pos3(bar,90); pos4(bar,90); |
| 71 |
if serifs: x4=x1; |
| 72 |
sloped_serif.l(11,12,d,1/3,jut,min(oo,serif_drop)); % upper right serif |
| 73 |
dish_serif(12,11,e,1/3,inner_jut,f,1/3,jut); % lower right serif |
| 74 |
else: rt x4=x1; fi |
| 75 |
pickup crisp.nib; filldraw stroke z3e--z4e; % bar |
| 76 |
penlabels(1,2,3,4,11,12,13,14); endchar; |
| 77 |
|
| 78 |
cmchar "The ligature langes sl"; |
| 79 |
beginchar(oct"215",10u#+2letter_fit#,asc_height#,0); |
| 80 |
italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; |
| 81 |
adjust_fit(0,serif_fit#); |
| 82 |
pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); |
| 83 |
pos11(stem',0); rt x11r=hround(w-2.5u+.5stem'); |
| 84 |
pos12(stem',0); x11=x12; bot y12=0; top y11=h; |
| 85 |
filldraw stroke z11e--z12e; % right stem |
| 86 |
pickup fine.nib; numeric bulb_diam, inner_jut; |
| 87 |
if serifs: bulb_diam=hround .8[stem,flare]; |
| 88 |
pos2(bulb_diam,0); x2r=x11r-stem_corr; |
| 89 |
y2+.5bulb_diam=.9[x_height,h+oo]; |
| 90 |
sloped_serif.l(11,12,d,1/3,eps,max(serif_drop,oo)); % erase excess at top |
| 91 |
if rt x1r+jut+.5u+2<=lft x11l-jut: inner_jut=jut; |
| 92 |
else: rt x1r+inner_jut+.5u+2=lft x11l-inner_jut; fi |
| 93 |
else: pos2(5/7[vair,flare],90); top y2r=h; rt x2=hround 5.3u; fi |
| 94 |
f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif |
| 95 |
pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround .5u-1; |
| 96 |
pos3(bar,90); pos4(bar,90); |
| 97 |
if serifs: x4=x1; |
| 98 |
dish_serif(12,11,e,1/3,inner_jut,f,1/3,jut); % lower right serif |
| 99 |
else: rt x4=x1; fi |
| 100 |
pickup crisp.nib; filldraw stroke z3e--z4e; % bar |
| 101 |
penlabels(1,2,3,4,11,12); endchar; |
| 102 |
|
| 103 |
cmchar "The ligature langes sfi"; |
| 104 |
beginchar(oct"216",15u#+4letter_fit#,asc_height#,0); |
| 105 |
italcorr asc_height#*slant-serif_fit#+.5if serifs:stem# else:dot_size# fi-2u#; |
| 106 |
adjust_fit(0,serif_fit#); |
| 107 |
pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); |
| 108 |
pos11(stem',0); lft x11l=hround(.5w-.5stem'); |
| 109 |
pos21(stem',0); rt x21r=hround(w-2.5u+.5stem'); |
| 110 |
pos22(stem',0); x21=x22; bot y22=0; |
| 111 |
pickup fine.nib; numeric bulb_diam, inner_jut; |
| 112 |
if serifs: bulb_diam=hround 1/4[.8[stem,flare],dot_size]; |
| 113 |
pos2(bulb_diam,0); x2r=x11r-stem_corr; |
| 114 |
pos12(bulb_diam,0); x12r=x21r; |
| 115 |
top y21=x_height+min(oo,serif_drop); |
| 116 |
y2+.5bulb_diam=.8[x_height,h+oo]; y12=y2; |
| 117 |
if rt x1r+jut+.5u+2<=lft x11l-jut: inner_jut=jut; |
| 118 |
else: rt x1r+inner_jut+.5u+2=lft x11l-inner_jut; fi |
| 119 |
else: bulb_diam=max(stem,dot_size); |
| 120 |
pos2(5/7[vair,flare],90); top y2r=h; rt x2=hround 5.75u; |
| 121 |
pos12(6/7[vair,flare],90); y12=y2; rt x12=hround(.5w+2.8u); |
| 122 |
pickup tiny.nib; pos23(bulb_diam,0); pos24(bulb_diam,90); |
| 123 |
x23=x21-.5; top y24r=min(10/7x_height+.5bulb_diam,h)+1; top y21=x_height; |
| 124 |
if bot y24l-x_height<tiny: y24l:=min(y24r-eps,y21+2tiny); fi |
| 125 |
x23=x24; y23=.5[y24l,y24r]; dot(23,24); fi % dot |
| 126 |
f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif |
| 127 |
f_stroke(11,12,d,e,f,inner_jut,inner_jut); % middle ditto |
| 128 |
pickup tiny.nib; filldraw stroke z21e--z22e; % right stem |
| 129 |
pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround.5u-1; |
| 130 |
pos3(bar,90); pos4(bar,90); |
| 131 |
if serifs: x4=x21; % bar will overlap upper right serif |
| 132 |
sloped_serif.l(21,22,g,1/3,jut,min(oo,serif_drop)); % upper right serif |
| 133 |
dish_serif(22,21,h,1/3,inner_jut,i,1/3,jut); % lower right serif |
| 134 |
else: rt x4=hround(.5w+2.8u); fi |
| 135 |
pickup crisp.nib; |
| 136 |
pos3'(bar,90); x3'=x1; y3'=y3; |
| 137 |
pos4'(bar,90); x4'-x11=x3-x1; y4'=y4; |
| 138 |
filldraw stroke z3e--z3'e; filldraw stroke z4'e--z4e; % bars |
| 139 |
penlabels(1,2,3,4,11,12,21,22,23,24); endchar; |
| 140 |
|
| 141 |
cmchar "The ligature langes sfl"; |
| 142 |
beginchar(oct"217",15u#+4letter_fit#,asc_height#,0); |
| 143 |
italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; |
| 144 |
adjust_fit(0,serif_fit#); |
| 145 |
pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); |
| 146 |
pos11(stem',0); lft x11l=hround(.5w-.5stem'); |
| 147 |
pos21(stem',0); rt x21r=hround(w-2.5u+.5stem'); |
| 148 |
pos22(stem',0); x21=x22; bot y22=0; top y21=h; |
| 149 |
filldraw stroke z21e--z22e; % right stem |
| 150 |
pickup fine.nib; numeric bulb_diam, inner_jut; |
| 151 |
if serifs: bulb_diam=hround .8[stem,flare]; |
| 152 |
pos2(bulb_diam,0); x2r=x11r-stem_corr; |
| 153 |
pos12(bulb_diam,0); x12r=x21r-stem_corr; |
| 154 |
y2+.5bulb_diam=.85[x_height,h+oo]; y12+.5bulb_diam=.9[x_height,h+oo]; |
| 155 |
sloped_serif.l(21,22,g,1/3,eps,max(serif_drop,oo)); % erase excess at top |
| 156 |
if rt x1r+jut+.5u+2<=lft x11l-jut: inner_jut=jut; |
| 157 |
else: rt x1r+inner_jut+.5u+2=lft x11l-inner_jut; fi |
| 158 |
else: pos2(5/7[vair,flare],90); top y2r=h; rt x2=hround 5.75u; |
| 159 |
pos12(5/7[vair,flare],90); y12=y2; rt x12=hround(.5w+2.8u); fi |
| 160 |
f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif |
| 161 |
f_stroke(11,12,d,e,f,inner_jut,inner_jut); % middle ditto |
| 162 |
pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround.5u-1; |
| 163 |
pos3(bar,90); pos4(bar,90); |
| 164 |
if serifs: dish_serif(22,21,h,1/3,inner_jut,i,1/3,jut); % lower right serif |
| 165 |
pickup crisp.nib; x4=x21; |
| 166 |
else: rt x4=hround(.5w+2.8u); fi |
| 167 |
pos3'(bar,90); x3'=x1; y3'=y3; |
| 168 |
pos4'(bar,90); x4'-x11=x3-x1; y4'=y4; |
| 169 |
filldraw stroke z3e--z3'e; filldraw stroke z4'e--z4e; % bars |
| 170 |
penlabels(1,2,3,4,11,12,21,22); endchar; |
| 171 |
|
| 172 |
% Combinations "f" and "langes Es" |
| 173 |
|
| 174 |
cmchar "The ligature langes fs"; |
| 175 |
beginchar(oct"233",10.5u#+2letter_fit#,asc_height#,0); |
| 176 |
italcorr asc_height#*slant+if serifs:flare#-.25u# else: 1.25u# fi; |
| 177 |
adjust_fit(0,0); |
| 178 |
pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); |
| 179 |
pos11(stem',0); rt x11r=hround(w-3u+.5stem'); |
| 180 |
pickup fine.nib; numeric bulb_diam, inner_jut; |
| 181 |
if serifs: bulb_diam=hround .8[stem,flare]; |
| 182 |
pos2(bulb_diam,0); pos12(bulb_diam,0); |
| 183 |
rt x2r=hround(rt x11r-stem_corr); lft x12l=hround(w-.75u+.5); |
| 184 |
y2+.5bulb_diam=.85[x_height,h+oo]; y12+.5bulb_diam=.9[x_height,h+oo]; |
| 185 |
if rt x1r+jut+.5u+2<=lft x11l-jut: inner_jut=jut; |
| 186 |
else: rt x1r+inner_jut+.5u+2=lft x11l-inner_jut; fi |
| 187 |
else: pos2(5/7[vair,flare],90); top y2r=h; rt x2=hround 6.25u; |
| 188 |
pos12(5/7[vair,flare],90); y12=y2; rt x12=hround(w+.75u); fi |
| 189 |
f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif |
| 190 |
f_stroke(11,12,d,e,f,inner_jut,1.25jut); % right stem, arc, terminal, serif |
| 191 |
pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround .5u-1; |
| 192 |
pos3(bar,90); pos4(bar,90); |
| 193 |
rt x4=hround(w-1/3u); |
| 194 |
pos4'(bar,90); x4'=x11; y4'=y4; |
| 195 |
filldraw stroke z3e--z4'e; % bar |
| 196 |
penlabels(1,2,3,4,11,12); endchar; |
| 197 |
|
| 198 |
cmchar "The ligature langes fsi"; |
| 199 |
beginchar(oct"236",15u#+4letter_fit#,asc_height#,0); |
| 200 |
italcorr asc_height#*slant-serif_fit#+.5if serifs:stem# else:dot_size# fi-2u#; |
| 201 |
adjust_fit(0,serif_fit#); |
| 202 |
pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); |
| 203 |
pos11(stem',0); lft x11l=hround(.5w-.5stem'); |
| 204 |
pos21(stem',0); rt x21r=hround(w-2.5u+.5stem'); |
| 205 |
pos22(stem',0); x21=x22; bot y22=0; |
| 206 |
pickup fine.nib; numeric bulb_diam, inner_jut; |
| 207 |
if serifs: bulb_diam=hround 1/4[.8[stem,flare],dot_size]; |
| 208 |
pos2(bulb_diam,0); x2r=x11r-stem_corr; |
| 209 |
pos12(bulb_diam,0); x12r=x21r; |
| 210 |
top y21=x_height+min(oo,serif_drop); |
| 211 |
y2+.5bulb_diam=.8[x_height,h+oo]; y12=y2; |
| 212 |
if rt x1r+jut+.5u+2<=lft x11l-jut: inner_jut=jut; |
| 213 |
else: rt x1r+inner_jut+.5u+2=lft x11l-inner_jut; fi |
| 214 |
else: bulb_diam=max(stem,dot_size); |
| 215 |
pos2(5/7[vair,flare],90); top y2r=h; rt x2=hround 5.75u; |
| 216 |
pos12(6/7[vair,flare],90); y12=y2; rt x12=hround(.5w+2.8u); |
| 217 |
pickup tiny.nib; pos23(bulb_diam,0); pos24(bulb_diam,90); |
| 218 |
x23=x21-.5; top y24r=min(10/7x_height+.5bulb_diam,h)+1; top y21=x_height; |
| 219 |
if bot y24l-x_height<tiny: y24l:=min(y24r-eps,y21+2tiny); fi |
| 220 |
x23=x24; y23=.5[y24l,y24r]; dot(23,24); fi % dot |
| 221 |
f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif |
| 222 |
f_stroke(11,12,d,e,f,inner_jut,inner_jut); % middle ditto |
| 223 |
pickup tiny.nib; filldraw stroke z21e--z22e; % right stem |
| 224 |
pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround.5u-1; |
| 225 |
pos3(bar,90); pos4(bar,90); |
| 226 |
if serifs: x4=x21; % bar will overlap upper right serif |
| 227 |
sloped_serif.l(21,22,g,1/3,jut,min(oo,serif_drop)); % upper right serif |
| 228 |
dish_serif(22,21,h,1/3,inner_jut,i,1/3,jut); % lower right serif |
| 229 |
else: rt x4=hround(.5w+2.8u); fi |
| 230 |
pickup crisp.nib; |
| 231 |
pos4'(bar,90); x4'=x11; y4'=y4; |
| 232 |
filldraw stroke z3e--z4'e; % bar |
| 233 |
penlabels(1,2,3,4,11,12,21,22,23,24); endchar; |
| 234 |
|
| 235 |
cmchar "The ligature langes fsl"; |
| 236 |
beginchar(oct"237",15u#+4letter_fit#,asc_height#,0); |
| 237 |
italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; |
| 238 |
adjust_fit(0,serif_fit#); |
| 239 |
pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); |
| 240 |
pos11(stem',0); lft x11l=hround(.5w-.5stem'); |
| 241 |
pos21(stem',0); rt x21r=hround(w-2.5u+.5stem'); |
| 242 |
pos22(stem',0); x21=x22; bot y22=0; top y21=h; |
| 243 |
filldraw stroke z21e--z22e; % right stem |
| 244 |
pickup fine.nib; numeric bulb_diam, inner_jut; |
| 245 |
if serifs: bulb_diam=hround .8[stem,flare]; |
| 246 |
pos2(bulb_diam,0); x2r=x11r-stem_corr; |
| 247 |
pos12(bulb_diam,0); x12r=x21r-stem_corr; |
| 248 |
y2+.5bulb_diam=.85[x_height,h+oo]; y12+.5bulb_diam=.9[x_height,h+oo]; |
| 249 |
sloped_serif.l(21,22,g,1/3,eps,max(serif_drop,oo)); % erase excess at top |
| 250 |
if rt x1r+jut+.5u+2<=lft x11l-jut: inner_jut=jut; |
| 251 |
else: rt x1r+inner_jut+.5u+2=lft x11l-inner_jut; fi |
| 252 |
else: pos2(5/7[vair,flare],90); top y2r=h; rt x2=hround 5.75u; |
| 253 |
pos12(5/7[vair,flare],90); y12=y2; rt x12=hround(.5w+2.8u); fi |
| 254 |
f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif |
| 255 |
f_stroke(11,12,d,e,f,inner_jut,inner_jut); % middle ditto |
| 256 |
pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround.5u-1; |
| 257 |
pos3(bar,90); pos4(bar,90); |
| 258 |
if serifs: dish_serif(22,21,h,1/3,inner_jut,i,1/3,jut); % lower right serif |
| 259 |
pickup crisp.nib; x4=x21; |
| 260 |
else: rt x4=hround(.5w+2.8u); fi |
| 261 |
pos4'(bar,90); x4'=x11; y4'=y4; |
| 262 |
filldraw stroke z3e--z4'e; % bar |
| 263 |
penlabels(1,2,3,4,11,12,21,22); endchar; |
| 264 |
|
| 265 |
% Combinations "langes Es" and "langes Es" |
| 266 |
|
| 267 |
cmchar "The ligature lange ss"; |
| 268 |
beginchar(oct"253",10.5u#+2letter_fit#,asc_height#,0); |
| 269 |
italcorr asc_height#*slant+if serifs:flare#-.25u# else: 1.25u# fi; |
| 270 |
adjust_fit(0,0); |
| 271 |
pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); |
| 272 |
pos11(stem',0); rt x11r=hround(w-3u+.5stem'); |
| 273 |
pickup fine.nib; numeric bulb_diam, inner_jut; |
| 274 |
if serifs: bulb_diam=hround .8[stem,flare]; |
| 275 |
pos2(bulb_diam,0); pos12(bulb_diam,0); |
| 276 |
rt x2r=hround(rt x11r-stem_corr); lft x12l=hround(w-.75u+.5); |
| 277 |
y2+.5bulb_diam=.85[x_height,h+oo]; y12+.5bulb_diam=.9[x_height,h+oo]; |
| 278 |
if rt x1r+jut+.5u+2<=lft x11l-jut: inner_jut=jut; |
| 279 |
else: rt x1r+inner_jut+.5u+2=lft x11l-inner_jut; fi |
| 280 |
else: pos2(5/7[vair,flare],90); top y2r=h; rt x2=hround 6.25u; |
| 281 |
pos12(5/7[vair,flare],90); y12=y2; rt x12=hround(w+.75u); fi |
| 282 |
f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif |
| 283 |
f_stroke(11,12,d,e,f,inner_jut,1.25jut); % right stem, arc, terminal, serif |
| 284 |
pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround .5u-1; |
| 285 |
pos3(bar,90); pos4(bar,90); |
| 286 |
rt x4=x11; |
| 287 |
pos3'(bar,90); x3'=x1; y3'=y3; |
| 288 |
pos4'(bar,90); x4'-x11=x3-x1; y4'=y4; |
| 289 |
filldraw stroke z3e--z3'e; filldraw stroke z4'e--z4e; % bars |
| 290 |
penlabels(1,2,3,4,11,12); endchar; |
| 291 |
|
| 292 |
cmchar "The ligature lange ssi"; |
| 293 |
beginchar(oct"256",15u#+4letter_fit#,asc_height#,0); |
| 294 |
italcorr asc_height#*slant-serif_fit#+.5if serifs:stem# else:dot_size# fi-2u#; |
| 295 |
adjust_fit(0,serif_fit#); |
| 296 |
pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); |
| 297 |
pos11(stem',0); lft x11l=hround(.5w-.5stem'); |
| 298 |
pos21(stem',0); rt x21r=hround(w-2.5u+.5stem'); |
| 299 |
pos22(stem',0); x21=x22; bot y22=0; |
| 300 |
pickup fine.nib; numeric bulb_diam, inner_jut; |
| 301 |
if serifs: bulb_diam=hround 1/4[.8[stem,flare],dot_size]; |
| 302 |
pos2(bulb_diam,0); x2r=x11r-stem_corr; |
| 303 |
pos12(bulb_diam,0); x12r=x21r; |
| 304 |
top y21=x_height+min(oo,serif_drop); |
| 305 |
y2+.5bulb_diam=.8[x_height,h+oo]; y12=y2; |
| 306 |
if rt x1r+jut+.5u+2<=lft x11l-jut: inner_jut=jut; |
| 307 |
else: rt x1r+inner_jut+.5u+2=lft x11l-inner_jut; fi |
| 308 |
else: bulb_diam=max(stem,dot_size); |
| 309 |
pos2(5/7[vair,flare],90); top y2r=h; rt x2=hround 5.75u; |
| 310 |
pos12(6/7[vair,flare],90); y12=y2; rt x12=hround(.5w+2.8u); |
| 311 |
pickup tiny.nib; pos23(bulb_diam,0); pos24(bulb_diam,90); |
| 312 |
x23=x21-.5; top y24r=min(10/7x_height+.5bulb_diam,h)+1; top y21=x_height; |
| 313 |
if bot y24l-x_height<tiny: y24l:=min(y24r-eps,y21+2tiny); fi |
| 314 |
x23=x24; y23=.5[y24l,y24r]; dot(23,24); fi % dot |
| 315 |
f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif |
| 316 |
f_stroke(11,12,d,e,f,inner_jut,inner_jut); % middle ditto |
| 317 |
pickup tiny.nib; filldraw stroke z21e--z22e; % right stem |
| 318 |
pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround.5u-1; |
| 319 |
pos3(bar,90); pos4(bar,90); |
| 320 |
if serifs: x4=x11; % bar will overlap upper right serif |
| 321 |
sloped_serif.l(21,22,g,1/3,jut,min(oo,serif_drop)); % upper right serif |
| 322 |
dish_serif(22,21,h,1/3,inner_jut,i,1/3,jut); % lower right serif |
| 323 |
else: rt x4=x11; fi |
| 324 |
pickup crisp.nib; |
| 325 |
pos3'(bar,90); x3'=x1; y3'=y3; |
| 326 |
pos4'(bar,90); x4'-x11=x3-x1; y4'=y4; |
| 327 |
filldraw stroke z3e--z3'e; filldraw stroke z4'e--z4e; % bars |
| 328 |
penlabels(1,2,3,4,11,12,21,22,23,24); endchar; |
| 329 |
|
| 330 |
cmchar "The ligature lange ssl"; |
| 331 |
beginchar(oct"257",15u#+4letter_fit#,asc_height#,0); |
| 332 |
italcorr asc_height#*slant-serif_fit#+.5stem#-2u#; |
| 333 |
adjust_fit(0,serif_fit#); |
| 334 |
pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); |
| 335 |
pos11(stem',0); lft x11l=hround(.5w-.5stem'); |
| 336 |
pos21(stem',0); rt x21r=hround(w-2.5u+.5stem'); |
| 337 |
pos22(stem',0); x21=x22; bot y22=0; top y21=h; |
| 338 |
filldraw stroke z21e--z22e; % right stem |
| 339 |
pickup fine.nib; numeric bulb_diam, inner_jut; |
| 340 |
if serifs: bulb_diam=hround .8[stem,flare]; |
| 341 |
pos2(bulb_diam,0); x2r=x11r-stem_corr; |
| 342 |
pos12(bulb_diam,0); x12r=x21r-stem_corr; |
| 343 |
y2+.5bulb_diam=.85[x_height,h+oo]; y12+.5bulb_diam=.9[x_height,h+oo]; |
| 344 |
sloped_serif.l(21,22,g,1/3,eps,max(serif_drop,oo)); % erase excess at top |
| 345 |
if rt x1r+jut+.5u+2<=lft x11l-jut: inner_jut=jut; |
| 346 |
else: rt x1r+inner_jut+.5u+2=lft x11l-inner_jut; fi |
| 347 |
else: pos2(5/7[vair,flare],90); top y2r=h; rt x2=hround 5.75u; |
| 348 |
pos12(5/7[vair,flare],90); y12=y2; rt x12=hround(.5w+2.8u); fi |
| 349 |
f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif |
| 350 |
f_stroke(11,12,d,e,f,inner_jut,inner_jut); % middle ditto |
| 351 |
pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround.5u-1; |
| 352 |
pos3(bar,90); pos4(bar,90); |
| 353 |
if serifs: dish_serif(22,21,h,1/3,inner_jut,i,1/3,jut); % lower right serif |
| 354 |
pickup crisp.nib; x4=x11; |
| 355 |
else: rt x4=x11; fi |
| 356 |
pos3'(bar,90); x3'=x1; y3'=y3; |
| 357 |
pos4'(bar,90); x4'-x11=x3-x1; y4'=y4; |
| 358 |
filldraw stroke z3e--z3'e; filldraw stroke z4'e--z4e; % bars |
| 359 |
penlabels(1,2,3,4,11,12,21,22); endchar; |
| 360 |
|
| 361 |
% Combinations "f" and "t" |
| 362 |
|
| 363 |
cmchar "The ligature ft"; |
| 364 |
beginchar(oct"314",12u#+2letter_fit#,asc_height#,0); |
| 365 |
italcorr x_height#*slant if serifs: -.9u# else: -.4u# fi; |
| 366 |
adjust_fit(0,if serifs: 0 else: -.5u# fi); |
| 367 |
pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); |
| 368 |
pos11(stem',0); rt x11r=hround(w-4.5u+.5stem'); |
| 369 |
pos12(stem',0); x11=x12; bot y12=0; |
| 370 |
pickup fine.nib; numeric bulb_diam, inner_jut; |
| 371 |
if serifs: bulb_diam=hround 1/4[.8[stem,flare],dot_size]; |
| 372 |
pos2(hround(shaved_stem-stem_corr),0); x2=x12; |
| 373 |
y2+.5bulb_diam=.8[x_height,h+oo]; top y11=x_height+min(oo,serif_drop); |
| 374 |
if rt x1r+jut+.5u+2<=lft x11l-jut: inner_jut=jut; |
| 375 |
else: rt x1r+inner_jut+.5u+2=lft x11l-inner_jut; fi |
| 376 |
else: bulb_diam=max(stem,dot_size); |
| 377 |
pos2(6/7[vair,flare],90); top y2r=h; rt x2=hround 5.3u; |
| 378 |
fi; % this is the ligature we're drawing |
| 379 |
f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif |
| 380 |
pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround .5u-1; |
| 381 |
pos3(bar,90); pos4(bar,90); |
| 382 |
if serifs: x4=x11; % bar will overlap upper right serif |
| 383 |
else: x4=x11; fi |
| 384 |
pickup crisp.nib; filldraw stroke z3e--z4e; % bar |
| 385 |
numeric shaved_stem; shaved_stem=hround(stem if hefty:-\\2stem_corr fi); |
| 386 |
pickup fine.nib; pos22(shaved_stem,180);pos23(shaved_stem,180); |
| 387 |
x22=x23=x11; |
| 388 |
y22=y28; y23=max(.5bar_height,2vair); |
| 389 |
pickup crisp.nib; pos28(bar,90); |
| 390 |
rt x28=hround(w-1.3u); top y28r=x_height; x27-x22=x3-x1; y27l=y28l; |
| 391 |
pos27(bar,90); |
| 392 |
filldraw stroke z27e--z28e; % crossbar |
| 393 |
pickup tiny.nib; pos21(hround(shaved_stem-stem_corr),0); |
| 394 |
rt x21r=fine.rt x22l; top if serifs: y21=y2 else: y21=9/7x_height fi; |
| 395 |
penpos22'(x21r-x21l,0); x22'=x21; y22'=y22; |
| 396 |
filldraw stroke z21e--z22'e; % upper terminal |
| 397 |
pickup fine.nib; interim superness:=more_super; |
| 398 |
pos24(vair',-90); bot y24r=-oo; rt x25r=hround(w-u); |
| 399 |
if serifs: pos25(hair,0); y25=y23; x24l=.5[x23l,x25l]; |
| 400 |
(x,y24r)=whatever[z24l,z25l]; x24r:=max(x,.5[x23r,x24]); |
| 401 |
filldraw stroke z22e..super_arc.e(23,24)...{up}z25e; % stem and hook |
| 402 |
pickup crisp.nib; pos26(hair,0); pos25'(hair,0); |
| 403 |
x26=x25=x25'; top y26=max(vround .75bar_height,top y25); y25=y25'; |
| 404 |
filldraw stroke z25'e--z26e; % terminal |
| 405 |
else: pos25(vair,-75); top y25l=vround .2[top y24l,bar_height]; |
| 406 |
x25l:=good.x x25l; x24l=1/3[x23l,x25l]; x24r:=1/3[x23r,x25r]; |
| 407 |
y23l:=y23l+.2vair; |
| 408 |
filldraw stroke z22e..super_arc.e(23,24); % stem and hook |
| 409 |
path p; p=stroke z24e{right}..tension .9 and atleast 1..z25e; % terminal |
| 410 |
if (xpart(z25l-precontrol 1 of p)<0) or (xpart(z25r-postcontrol 2 of p)<0): |
| 411 |
filldraw stroke z24e{right}...{up}z25e; |
| 412 |
else: filldraw p; fi fi; |
| 413 |
penlabels(1,2,3,4,11,12,13,14,21,22,23,24,25,26,27,28); endchar; |
| 414 |
|
| 415 |
cmchar "The ligature fft"; |
| 416 |
beginchar(oct"316",17u#+4letter_fit#,asc_height#,0); |
| 417 |
italcorr x_height#*slant if serifs: -.9u# else: -.4u# fi; |
| 418 |
adjust_fit(0,if serifs: 0 else: -.5u# fi); |
| 419 |
pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); |
| 420 |
pos11(stem',0); x11=7.5u; |
| 421 |
pos21(stem',0); rt x21r=hround(w-4.5u+.5stem'); |
| 422 |
pos22(stem',0); x21=x22; bot y22=0; |
| 423 |
pickup fine.nib; numeric bulb_diam, inner_jut; |
| 424 |
if serifs: bulb_diam=hround 1/4[.8[stem,flare],dot_size]; |
| 425 |
pos2(bulb_diam,0); x2r=x11r-stem_corr; |
| 426 |
pos12(hround(shaved_stem-stem_corr),0); x12=x21; |
| 427 |
top y21=x_height+min(oo,serif_drop); |
| 428 |
y2+.5bulb_diam=.8[x_height,h+oo]; y12=y2; |
| 429 |
if rt x1r+jut+.5u+2<=lft x11l-jut: inner_jut=jut; |
| 430 |
else: rt x1r+inner_jut+.5u+2=lft x11l-inner_jut; fi |
| 431 |
else: bulb_diam=max(stem,dot_size); |
| 432 |
pos2(5/7[vair,flare],90); top y2r=h; rt x2=hround 5.75u; |
| 433 |
pos12(6/7[vair,flare],90); y12=y2; rt x12=hround(.5w+2.8u); fi |
| 434 |
f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif |
| 435 |
f_stroke(11,12,d,e,f,inner_jut,inner_jut); % middle ditto |
| 436 |
pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround.5u-1; |
| 437 |
pos3(bar,90); pos4(bar,90); |
| 438 |
if serifs: x4=x21; % bar will overlap upper right serif |
| 439 |
else: rt x4=hround(.5w+2.8u); fi |
| 440 |
pickup crisp.nib; |
| 441 |
if hefty: pos3'(bar,90); x3'-x1=.8(x2-x1); y3'=y3; |
| 442 |
pos4'(bar,90); x4'=x11; y4'=y4; |
| 443 |
filldraw stroke z3e--z3'e; filldraw stroke z4'e--z4e; % bars |
| 444 |
else: filldraw stroke z3e--z4e; fi % bar |
| 445 |
numeric shaved_stem; shaved_stem=hround(stem if hefty:-\\2stem_corr fi); |
| 446 |
pickup fine.nib; pos32(shaved_stem,180);pos33(shaved_stem,180); |
| 447 |
x32=x33=x21; |
| 448 |
y32=y38; y33=max(.5bar_height,2vair); |
| 449 |
pickup crisp.nib; pos38(bar,90); |
| 450 |
rt x38=hround(w-1.3u); top y38r=x_height; x37-x32=x3-x1; y37l=y38l; |
| 451 |
pos37(bar,90); |
| 452 |
filldraw stroke z37e--z38e; % crossbar |
| 453 |
pickup tiny.nib; pos31(hround(shaved_stem-stem_corr),0); |
| 454 |
rt x31r=fine.rt x32l; top if serifs: y31=y2 else: y31=9/7x_height fi; |
| 455 |
penpos32'(x31r-x31l,0); x32'=x31; y32'=y32; |
| 456 |
filldraw stroke z31e--z32'e; % upper terminal |
| 457 |
pickup fine.nib; interim superness:=more_super; |
| 458 |
pos34(vair',-90); bot y34r=-oo; rt x35r=hround(w-u); |
| 459 |
if serifs: pos35(hair,0); y35=y33; x34l=.5[x33l,x35l]; |
| 460 |
(x,y34r)=whatever[z34l,z35l]; x34r:=max(x,.5[x33r,x34]); |
| 461 |
filldraw stroke z32e..super_arc.e(33,34)...{up}z35e; % stem and hook |
| 462 |
pickup crisp.nib; pos36(hair,0); pos35'(hair,0); |
| 463 |
x36=x35=x35'; top y36=max(vround .75bar_height,top y35); y35=y35'; |
| 464 |
filldraw stroke z35'e--z36e; % terminal |
| 465 |
else: pos35(vair,-75); top y35l=vround .2[top y34l,bar_height]; |
| 466 |
x35l:=good.x x35l; x34l=1/3[x33l,x35l]; x34r:=1/3[x33r,x35r]; |
| 467 |
y33l:=y33l+.2vair; |
| 468 |
filldraw stroke z32e..super_arc.e(33,34); % stem and hook |
| 469 |
path p; p=stroke z34e{right}..tension .9 and atleast 1..z35e; % terminal |
| 470 |
if (xpart(z35l-precontrol 1 of p)<0) or (xpart(z35r-postcontrol 2 of p)<0): |
| 471 |
filldraw stroke z34e{right}...{up}z35e; |
| 472 |
else: filldraw p; fi fi; |
| 473 |
penlabels(1,2,3,4,11,12,21,22,23,24,31,32,33,34,35,36,37,38); endchar; |
| 474 |
|
| 475 |
% Combinations "langes Es" and ("t" or "ft") |
| 476 |
|
| 477 |
cmchar "The ligature langes st"; |
| 478 |
beginchar(oct"334",12u#+2letter_fit#,asc_height#,0); |
| 479 |
italcorr x_height#*slant if serifs: -.9u# else: -.4u# fi; |
| 480 |
adjust_fit(0,if serifs: 0 else: -.5u# fi); |
| 481 |
pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); |
| 482 |
pos11(stem',0); rt x11r=hround(w-4.5u+.5stem'); |
| 483 |
pos12(stem',0); x11=x12; bot y12=0; |
| 484 |
pickup fine.nib; numeric bulb_diam, inner_jut; |
| 485 |
if serifs: bulb_diam=hround 1/4[.8[stem,flare],dot_size]; |
| 486 |
pos2(hround(shaved_stem-stem_corr),0); x2=x12; |
| 487 |
y2+.5bulb_diam=.8[x_height,h+oo]; top y11=x_height+min(oo,serif_drop); |
| 488 |
if rt x1r+jut+.5u+2<=lft x11l-jut: inner_jut=jut; |
| 489 |
else: rt x1r+inner_jut+.5u+2=lft x11l-inner_jut; fi |
| 490 |
else: bulb_diam=max(stem,dot_size); |
| 491 |
pos2(6/7[vair,flare],90); top y2r=h; rt x2=hround 5.3u; |
| 492 |
fi; % this is the ligature we're drawing |
| 493 |
f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif |
| 494 |
pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround .5u-1; |
| 495 |
pos3(bar,90); pos4(bar,90); |
| 496 |
if serifs: x4=x1; % bar will overlap upper right serif |
| 497 |
else: x4=x1; fi |
| 498 |
pickup crisp.nib; filldraw stroke z3e--z4e; % bar |
| 499 |
numeric shaved_stem; shaved_stem=hround(stem if hefty:-\\2stem_corr fi); |
| 500 |
pickup fine.nib; pos22(shaved_stem,180);pos23(shaved_stem,180); |
| 501 |
x22=x23=x11; |
| 502 |
y22=y28; y23=max(.5bar_height,2vair); |
| 503 |
pickup crisp.nib; pos28(bar,90); |
| 504 |
rt x28=hround(w-1.3u); top y28r=x_height; x27-x22=x3-x1; y27l=y28l; |
| 505 |
pos27(bar,90); |
| 506 |
filldraw stroke z27e--z28e; % crossbar |
| 507 |
pickup tiny.nib; pos21(hround(shaved_stem-stem_corr),0); |
| 508 |
rt x21r=fine.rt x22l; top if serifs: y21=y2 else: y21=9/7x_height fi; |
| 509 |
penpos22'(x21r-x21l,0); x22'=x21; y22'=y22; |
| 510 |
filldraw stroke z21e--z22'e; % upper terminal |
| 511 |
pickup fine.nib; interim superness:=more_super; |
| 512 |
pos24(vair',-90); bot y24r=-oo; rt x25r=hround(w-u); |
| 513 |
if serifs: pos25(hair,0); y25=y23; x24l=.5[x23l,x25l]; |
| 514 |
(x,y24r)=whatever[z24l,z25l]; x24r:=max(x,.5[x23r,x24]); |
| 515 |
filldraw stroke z22e..super_arc.e(23,24)...{up}z25e; % stem and hook |
| 516 |
pickup crisp.nib; pos26(hair,0); pos25'(hair,0); |
| 517 |
x26=x25=x25'; top y26=max(vround .75bar_height,top y25); y25=y25'; |
| 518 |
filldraw stroke z25'e--z26e; % terminal |
| 519 |
else: pos25(vair,-75); top y25l=vround .2[top y24l,bar_height]; |
| 520 |
x25l:=good.x x25l; x24l=1/3[x23l,x25l]; x24r:=1/3[x23r,x25r]; |
| 521 |
y23l:=y23l+.2vair; |
| 522 |
filldraw stroke z22e..super_arc.e(23,24); % stem and hook |
| 523 |
path p; p=stroke z24e{right}..tension .9 and atleast 1..z25e; % terminal |
| 524 |
if (xpart(z25l-precontrol 1 of p)<0) or (xpart(z25r-postcontrol 2 of p)<0): |
| 525 |
filldraw stroke z24e{right}...{up}z25e; |
| 526 |
else: filldraw p; fi fi; |
| 527 |
penlabels(1,2,3,4,11,12,13,14,21,22,23,24,25,26,27,28); endchar; |
| 528 |
|
| 529 |
cmchar "The ligature langes sft"; |
| 530 |
beginchar(oct"336",17u#+4letter_fit#,asc_height#,0); |
| 531 |
italcorr x_height#*slant if serifs: -.9u# else: -.4u# fi; |
| 532 |
adjust_fit(0,if serifs: 0 else: -.5u# fi); |
| 533 |
pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); |
| 534 |
pos11(stem',0); x11=7.5u; |
| 535 |
pos21(stem',0); rt x21r=hround(w-4.5u+.5stem'); |
| 536 |
pos22(stem',0); x21=x22; bot y22=0; |
| 537 |
pickup fine.nib; numeric bulb_diam, inner_jut; |
| 538 |
if serifs: bulb_diam=hround 1/4[.8[stem,flare],dot_size]; |
| 539 |
pos2(bulb_diam,0); x2r=x11r-stem_corr; |
| 540 |
pos12(hround(shaved_stem-stem_corr),0); x12=x21; |
| 541 |
top y21=x_height+min(oo,serif_drop); |
| 542 |
y2+.5bulb_diam=.8[x_height,h+oo]; y12=y2; |
| 543 |
if rt x1r+jut+.5u+2<=lft x11l-jut: inner_jut=jut; |
| 544 |
else: rt x1r+inner_jut+.5u+2=lft x11l-inner_jut; fi |
| 545 |
else: bulb_diam=max(stem,dot_size); |
| 546 |
pos2(5/7[vair,flare],90); top y2r=h; rt x2=hround 5.75u; |
| 547 |
pos12(6/7[vair,flare],90); y12=y2; rt x12=hround(.5w+2.8u); fi |
| 548 |
f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif |
| 549 |
f_stroke(11,12,d,e,f,inner_jut,inner_jut); % middle ditto |
| 550 |
pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround.5u-1; |
| 551 |
pos3(bar,90); pos4(bar,90); |
| 552 |
if serifs: x4=x21; % bar will overlap upper right serif |
| 553 |
else: rt x4=hround(.5w+2.8u); fi |
| 554 |
pickup crisp.nib; |
| 555 |
pos3'(bar,90); x3'=x1; y3'=y3; |
| 556 |
pos4'(bar,90); x4'-x11=x3-x1; y4'=y4; |
| 557 |
filldraw stroke z3e--z3'e; filldraw stroke z4'e--z4e; % bars |
| 558 |
numeric shaved_stem; shaved_stem=hround(stem if hefty:-\\2stem_corr fi); |
| 559 |
pickup fine.nib; pos32(shaved_stem,180);pos33(shaved_stem,180); |
| 560 |
x32=x33=x21; |
| 561 |
y32=y38; y33=max(.5bar_height,2vair); |
| 562 |
pickup crisp.nib; pos38(bar,90); |
| 563 |
rt x38=hround(w-1.3u); top y38r=x_height; x37-x32=x3-x1; y37l=y38l; |
| 564 |
pos37(bar,90); |
| 565 |
filldraw stroke z37e--z38e; % crossbar |
| 566 |
pickup tiny.nib; pos31(hround(shaved_stem-stem_corr),0); |
| 567 |
rt x31r=fine.rt x32l; top if serifs: y31=y2 else: y31=9/7x_height fi; |
| 568 |
penpos32'(x31r-x31l,0); x32'=x31; y32'=y32; |
| 569 |
filldraw stroke z31e--z32'e; % upper terminal |
| 570 |
pickup fine.nib; interim superness:=more_super; |
| 571 |
pos34(vair',-90); bot y34r=-oo; rt x35r=hround(w-u); |
| 572 |
if serifs: pos35(hair,0); y35=y33; x34l=.5[x33l,x35l]; |
| 573 |
(x,y34r)=whatever[z34l,z35l]; x34r:=max(x,.5[x33r,x34]); |
| 574 |
filldraw stroke z32e..super_arc.e(33,34)...{up}z35e; % stem and hook |
| 575 |
pickup crisp.nib; pos36(hair,0); pos35'(hair,0); |
| 576 |
x36=x35=x35'; top y36=max(vround .75bar_height,top y35); y35=y35'; |
| 577 |
filldraw stroke z35'e--z36e; % terminal |
| 578 |
else: pos35(vair,-75); top y35l=vround .2[top y34l,bar_height]; |
| 579 |
x35l:=good.x x35l; x34l=1/3[x33l,x35l]; x34r:=1/3[x33r,x35r]; |
| 580 |
y33l:=y33l+.2vair; |
| 581 |
filldraw stroke z32e..super_arc.e(33,34); % stem and hook |
| 582 |
path p; p=stroke z34e{right}..tension .9 and atleast 1..z35e; % terminal |
| 583 |
if (xpart(z35l-precontrol 1 of p)<0) or (xpart(z35r-postcontrol 2 of p)<0): |
| 584 |
filldraw stroke z34e{right}...{up}z35e; |
| 585 |
else: filldraw p; fi fi; |
| 586 |
penlabels(1,2,3,4,11,12,21,22,23,24,31,32,33,34,35,36,37,38); endchar; |
| 587 |
|
| 588 |
% Variations "fft" |
| 589 |
|
| 590 |
cmchar "The ligature langes fst"; |
| 591 |
beginchar(oct"356",17u#+4letter_fit#,asc_height#,0); |
| 592 |
italcorr x_height#*slant if serifs: -.9u# else: -.4u# fi; |
| 593 |
adjust_fit(0,if serifs: 0 else: -.5u# fi); |
| 594 |
pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); |
| 595 |
pos11(stem',0); x11=7.5u; |
| 596 |
pos21(stem',0); rt x21r=hround(w-4.5u+.5stem'); |
| 597 |
pos22(stem',0); x21=x22; bot y22=0; |
| 598 |
pickup fine.nib; numeric bulb_diam, inner_jut; |
| 599 |
if serifs: bulb_diam=hround 1/4[.8[stem,flare],dot_size]; |
| 600 |
pos2(bulb_diam,0); x2r=x11r-stem_corr; |
| 601 |
pos12(hround(shaved_stem-stem_corr),0); x12=x21; |
| 602 |
top y21=x_height+min(oo,serif_drop); |
| 603 |
y2+.5bulb_diam=.8[x_height,h+oo]; y12=y2; |
| 604 |
if rt x1r+jut+.5u+2<=lft x11l-jut: inner_jut=jut; |
| 605 |
else: rt x1r+inner_jut+.5u+2=lft x11l-inner_jut; fi |
| 606 |
else: bulb_diam=max(stem,dot_size); |
| 607 |
pos2(5/7[vair,flare],90); top y2r=h; rt x2=hround 5.75u; |
| 608 |
pos12(6/7[vair,flare],90); y12=y2; rt x12=hround(.5w+2.8u); fi |
| 609 |
f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif |
| 610 |
f_stroke(11,12,d,e,f,inner_jut,inner_jut); % middle ditto |
| 611 |
pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround.5u-1; |
| 612 |
pos3(bar,90); pos4(bar,90); |
| 613 |
if serifs: x4=x21; % bar will overlap upper right serif |
| 614 |
else: rt x4=hround(.5w+2.8u); fi |
| 615 |
pickup crisp.nib; |
| 616 |
pos4'(bar,90); x4'=x11; y4'=y4; |
| 617 |
filldraw stroke z3e--z4'e; % bar |
| 618 |
numeric shaved_stem; shaved_stem=hround(stem if hefty:-\\2stem_corr fi); |
| 619 |
pickup fine.nib; pos32(shaved_stem,180);pos33(shaved_stem,180); |
| 620 |
x32=x33=x21; |
| 621 |
y32=y38; y33=max(.5bar_height,2vair); |
| 622 |
pickup crisp.nib; pos38(bar,90); |
| 623 |
rt x38=hround(w-1.3u); top y38r=x_height; x37-x32=x3-x1; y37l=y38l; |
| 624 |
pos37(bar,90); |
| 625 |
filldraw stroke z37e--z38e; % crossbar |
| 626 |
pickup tiny.nib; pos31(hround(shaved_stem-stem_corr),0); |
| 627 |
rt x31r=fine.rt x32l; top if serifs: y31=y2 else: y31=9/7x_height fi; |
| 628 |
penpos32'(x31r-x31l,0); x32'=x31; y32'=y32; |
| 629 |
filldraw stroke z31e--z32'e; % upper terminal |
| 630 |
pickup fine.nib; interim superness:=more_super; |
| 631 |
pos34(vair',-90); bot y34r=-oo; rt x35r=hround(w-u); |
| 632 |
if serifs: pos35(hair,0); y35=y33; x34l=.5[x33l,x35l]; |
| 633 |
(x,y34r)=whatever[z34l,z35l]; x34r:=max(x,.5[x33r,x34]); |
| 634 |
filldraw stroke z32e..super_arc.e(33,34)...{up}z35e; % stem and hook |
| 635 |
pickup crisp.nib; pos36(hair,0); pos35'(hair,0); |
| 636 |
x36=x35=x35'; top y36=max(vround .75bar_height,top y35); y35=y35'; |
| 637 |
filldraw stroke z35'e--z36e; % terminal |
| 638 |
else: pos35(vair,-75); top y35l=vround .2[top y34l,bar_height]; |
| 639 |
x35l:=good.x x35l; x34l=1/3[x33l,x35l]; x34r:=1/3[x33r,x35r]; |
| 640 |
y33l:=y33l+.2vair; |
| 641 |
filldraw stroke z32e..super_arc.e(33,34); % stem and hook |
| 642 |
path p; p=stroke z34e{right}..tension .9 and atleast 1..z35e; % terminal |
| 643 |
if (xpart(z35l-precontrol 1 of p)<0) or (xpart(z35r-postcontrol 2 of p)<0): |
| 644 |
filldraw stroke z34e{right}...{up}z35e; |
| 645 |
else: filldraw p; fi fi; |
| 646 |
penlabels(1,2,3,4,11,12,21,22,23,24,31,32,33,34,35,36,37,38); endchar; |
| 647 |
|
| 648 |
cmchar "The ligature lange sst"; |
| 649 |
beginchar(oct"376",17u#+4letter_fit#,asc_height#,0); |
| 650 |
italcorr x_height#*slant if serifs: -.9u# else: -.4u# fi; |
| 651 |
adjust_fit(0,if serifs: 0 else: -.5u# fi); |
| 652 |
pickup tiny.nib; pos1(stem',0); lft x1l=hround(2.5u-.5stem'); |
| 653 |
pos11(stem',0); x11=7.5u; |
| 654 |
pos21(stem',0); rt x21r=hround(w-4.5u+.5stem'); |
| 655 |
pos22(stem',0); x21=x22; bot y22=0; |
| 656 |
pickup fine.nib; numeric bulb_diam, inner_jut; |
| 657 |
if serifs: bulb_diam=hround 1/4[.8[stem,flare],dot_size]; |
| 658 |
pos2(bulb_diam,0); x2r=x11r-stem_corr; |
| 659 |
pos12(hround(shaved_stem-stem_corr),0); x12=x21; |
| 660 |
top y21=x_height+min(oo,serif_drop); |
| 661 |
y2+.5bulb_diam=.8[x_height,h+oo]; y12=y2; |
| 662 |
if rt x1r+jut+.5u+2<=lft x11l-jut: inner_jut=jut; |
| 663 |
else: rt x1r+inner_jut+.5u+2=lft x11l-inner_jut; fi |
| 664 |
else: bulb_diam=max(stem,dot_size); |
| 665 |
pos2(5/7[vair,flare],90); top y2r=h; rt x2=hround 5.75u; |
| 666 |
pos12(6/7[vair,flare],90); y12=y2; rt x12=hround(.5w+2.8u); fi |
| 667 |
f_stroke(1,2,a,b,c,jut,inner_jut); % left stem, arc, terminal, serif |
| 668 |
f_stroke(11,12,d,e,f,inner_jut,inner_jut); % middle ditto |
| 669 |
pickup crisp.nib; top y3r=top y4r=x_height; lft x3=hround.5u-1; |
| 670 |
pos3(bar,90); pos4(bar,90); |
| 671 |
if serifs: x4=x11; % bar will overlap upper right serif |
| 672 |
else: rt x4=x11; fi |
| 673 |
pickup crisp.nib; |
| 674 |
pos3'(bar,90); x3'=x1; y3'=y3; |
| 675 |
pos4'(bar,90); x4'-x11=x3-x1; y4'=y4; |
| 676 |
filldraw stroke z3e--z3'e; filldraw stroke z4'e--z4e; % bars |
| 677 |
numeric shaved_stem; shaved_stem=hround(stem if hefty:-\\2stem_corr fi); |
| 678 |
pickup fine.nib; pos32(shaved_stem,180);pos33(shaved_stem,180); |
| 679 |
x32=x33=x21; |
| 680 |
y32=y38; y33=max(.5bar_height,2vair); |
| 681 |
pickup crisp.nib; pos38(bar,90); |
| 682 |
rt x38=hround(w-1.3u); top y38r=x_height; x37-x32=x3-x1; y37l=y38l; |
| 683 |
pos37(bar,90); |
| 684 |
filldraw stroke z37e--z38e; % crossbar |
| 685 |
pickup tiny.nib; pos31(hround(shaved_stem-stem_corr),0); |
| 686 |
rt x31r=fine.rt x32l; top if serifs: y31=y2 else: y31=9/7x_height fi; |
| 687 |
penpos32'(x31r-x31l,0); x32'=x31; y32'=y32; |
| 688 |
filldraw stroke z31e--z32'e; % upper terminal |
| 689 |
pickup fine.nib; interim superness:=more_super; |
| 690 |
pos34(vair',-90); bot y34r=-oo; rt x35r=hround(w-u); |
| 691 |
if serifs: pos35(hair,0); y35=y33; x34l=.5[x33l,x35l]; |
| 692 |
(x,y34r)=whatever[z34l,z35l]; x34r:=max(x,.5[x33r,x34]); |
| 693 |
filldraw stroke z32e..super_arc.e(33,34)...{up}z35e; % stem and hook |
| 694 |
pickup crisp.nib; pos36(hair,0); pos35'(hair,0); |
| 695 |
x36=x35=x35'; top y36=max(vround .75bar_height,top y35); y35=y35'; |
| 696 |
filldraw stroke z35'e--z36e; % terminal |
| 697 |
else: pos35(vair,-75); top y35l=vround .2[top y34l,bar_height]; |
| 698 |
x35l:=good.x x35l; x34l=1/3[x33l,x35l]; x34r:=1/3[x33r,x35r]; |
| 699 |
y33l:=y33l+.2vair; |
| 700 |
filldraw stroke z32e..super_arc.e(33,34); % stem and hook |
| 701 |
path p; p=stroke z34e{right}..tension .9 and atleast 1..z35e; % terminal |
| 702 |
if (xpart(z35l-precontrol 1 of p)<0) or (xpart(z35r-postcontrol 2 of p)<0): |
| 703 |
filldraw stroke z34e{right}...{up}z35e; |
| 704 |
else: filldraw p; fi fi; |
| 705 |
penlabels(1,2,3,4,11,12,21,22,23,24,31,32,33,34,35,36,37,38); endchar; |
| 706 |
|
| 707 |
cmchar "The ligature ct"; |
| 708 |
beginchar(oct"343",15u#+max(u#,.5stem#),asc_height#,0); |
| 709 |
italcorr x_height#*slant if serifs: -.9u# else: -.4u# fi; |
| 710 |
adjust_fit(0,if serifs: 0 else: -.5u# fi); |
| 711 |
numeric shaved_stem; shaved_stem=hround(stem if hefty:-\\2stem_corr fi); |
| 712 |
pickup fine.nib; pos2(vair',90); pos4(vair',270); |
| 713 |
x2=x4=.5(8u+u); top y2r=vround(x_height+1.5oo); bot y4r=-oo; |
| 714 |
pos3(curve,180); lft x3r=hround max(.6u,1.35u-.5curve); y3=.5x_height; |
| 715 |
if serifs: pos1(hair,0); pos0(flare,0); |
| 716 |
y1=min(bar_height+.5flare+2vair'+2,.9[bar_height,x_height]-.5flare); |
| 717 |
rt x1r=hround(8u-.7u); bulb(2,1,0); % bulb |
| 718 |
pos5(hair,0); rt x5r=hround(8u-.5u); |
| 719 |
y5=max(good.y(.5bar_height-.9),y4l+vair'); |
| 720 |
(x,y4l)=whatever[z4r,z5l]; x4l:=min(x,x4l+.5u); |
| 721 |
filldraw stroke pulled_super_arc.e(2,3)(.7superpull) |
| 722 |
& pulled_super_arc.e(3,4)(.5superpull) |
| 723 |
..tension .9 and 1..{x5-x4,5(y5-y4)}z5e; % arc and lower terminal |
| 724 |
else: pos1(4/7[vair',flare],80); |
| 725 |
rt x1r=hround(8u-.6u); top y1r=vround .82[bar_height,top y2r]; |
| 726 |
filldraw stroke term.e(2,1,right,.8,4); % upper terminal |
| 727 |
pos5(.6[vair',flare],275); rt x5r=hround(8u-.5u); |
| 728 |
y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; |
| 729 |
forsuffixes e=l,r: path p.e; p.e=z4e{right}..tension .9 and 1..z5e; |
| 730 |
if angle direction 1 of p.e>75: |
| 731 |
p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor |
| 732 |
filldraw stroke pulled_super_arc.e(2,3)(.7superpull) |
| 733 |
& pulled_super_arc.e(3,4)(.5superpull) & p.e; fi % arc and lower terminal |
| 734 |
pickup fine.nib; pos22(shaved_stem,180);pos23(shaved_stem,180); |
| 735 |
lft x22r=lft x23r=hround(9u+2.5u-.5shaved_stem); |
| 736 |
y22=y28; y23=max(.5bar_height,2vair); |
| 737 |
pickup crisp.nib; pos28(bar,90); |
| 738 |
rt x28=hround(w-1.3u); top y28r=x_height; lft x27=hround 9u+1/3u; y27l=y28l; |
| 739 |
if hefty: pos27(bar,90); |
| 740 |
filldraw stroke z27e--z28e; % crossbar |
| 741 |
pickup tiny.nib; pos21(hround(shaved_stem-stem_corr),0); |
| 742 |
rt x21r=fine.rt x22l; top y21=9/7x_height; |
| 743 |
penpos22'(x21r-x21l,0); x22'=x21; y22'=y22; |
| 744 |
filldraw stroke z21e--z22'e; % upper terminal |
| 745 |
else: pos27(vair,90); pos21(hair,0); |
| 746 |
rt x21r=fine.rt x22l; top y21=10/7x_height; |
| 747 |
filldraw z21l{down}...{left}z27r--z27l--z28l |
| 748 |
--z28r--(x21r,y28r)--z21r--cycle; fi % upper terminal and crossbar |
| 749 |
pickup fine.nib; interim superness:=more_super; |
| 750 |
pos24(vair',-90); bot y24r=-oo; rt x25r=hround(w-u); |
| 751 |
if serifs: pos25(hair,0); y25=y23; x24l=.5[x23l,x25l]; |
| 752 |
filldraw stroke z22e..super_arc.e(23,24)...{up}z25e; % stem and hool |
| 753 |
pickup crisp.nib; pos26(hair,0); pos25'(hair,0); |
| 754 |
x26=x25=x25'; top y26=max(vround .75bar_height,top y25); y25=y25'; |
| 755 |
filldraw stroke z25'e--z26e; % terminal |
| 756 |
else: pos25(vair,-75); top y25l=vround .2[top y24l,bar_height]; |
| 757 |
x25l:=good.x x25l; x24l=1/3[x23l,x25l]; x24r:=1/3[x23r,x25r]; y23l:=y23l+.2vair; |
| 758 |
filldraw stroke z22e..super_arc.e(23,24); % stem and hook |
| 759 |
path p; p=stroke z24e{right}..tension .9 and atleast 1..z25e; % terminal |
| 760 |
if (xpart(z25l-precontrol 1 of p)<0) or (xpart(z25r-postcontrol 2 of p)<0): |
| 761 |
filldraw stroke z24e{right}...{up}z25e; |
| 762 |
else: filldraw p; fi fi; |
| 763 |
pickup tiny.nib; |
| 764 |
if hefty: |
| 765 |
pos31(4/7[vair',flare],80); x31=x1; y31=y1; |
| 766 |
pos32(hair,-90); x32=8.5u; y32=h; |
| 767 |
pos33(hround(shaved_stem-stem_corr),-180); x33=x21; y33=y21; |
| 768 |
else: |
| 769 |
pos31(2hair,0); x31l=x0l+.5fine; y31=y0; |
| 770 |
pos32(hair,-90); x32=8.5u; y32=h; |
| 771 |
pos33(hair,-180); x33=x21; y33=y21; fi; |
| 772 |
filldraw stroke z31e..z32e..{down}z33e; |
| 773 |
penlabels(0,1,2,3,4,5,21,22,23,24,25,26,27,28,31,32,33); endchar; |