| 1 |
%% filename: cyrti.mf |
| 2 |
%% version: 2.2 |
| 3 |
%% date: 1995/01/04 |
| 4 |
%% |
| 5 |
%% American Mathematical Society |
| 6 |
%% Technical Support |
| 7 |
%% Publications Technical Group |
| 8 |
%% 201 Charles Street |
| 9 |
%% Providence, RI 02904 |
| 10 |
%% USA |
| 11 |
%% tel: (401) 455-4080 |
| 12 |
%% (800) 321-4267 (USA and Canada only) |
| 13 |
%% fax: (401) 331-3842 |
| 14 |
%% email: [email protected] |
| 15 |
%% |
| 16 |
%% Copyright 1995 Humanities and Arts Computing Center, University of |
| 17 |
%% Washington. |
| 18 |
%% |
| 19 |
%% Unlimited copying and redistribution of this file are permitted as |
| 20 |
%% long as this file is not modified. Modifications, and distribution |
| 21 |
%% of modified versions, are permitted, but only if the resulting file |
| 22 |
%% is renamed. |
| 23 |
%% |
| 24 |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
| 25 |
%cyrti.mf |
| 26 |
|
| 27 |
cmchar "Italic Serbian letter Soft n (looks like hb)"; |
| 28 |
beginchar(oct"010",6u#,x_height#,0); |
| 29 |
italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; |
| 30 |
adjust_fit(5u#,0); pickup tiny.nib; w:=6u; |
| 31 |
pos1(stem,0); pos2(stem,0); x1=x2; |
| 32 |
lft x1l=hround(u-.5stem); top y1=h; y2=.6bar_height; |
| 33 |
filldraw stroke z1e--z2e; % stem |
| 34 |
sloped_serif.l(1,2,a,1/3,jut,serif_drop); % serif |
| 35 |
pickup fine.nib; pos2'(stem,-180); pos3(vair,-90); |
| 36 |
pos4(curve,0); pos5(vair,90); pos0(hair,180); |
| 37 |
z0=z2=z2'; x3=x5=.5[x2,x4]; rt x4r=hround(w-u+.5curve); |
| 38 |
bot y3r=-oo; top y5r=1.2bar_height+oo; y4=y2; |
| 39 |
filldraw stroke pulled_arc.e(2',3) & pulled_arc.e(3,4) |
| 40 |
& pulled_arc.e(4,5) & super_arc.e(5,0); % bowl |
| 41 |
x80=-5u; x82-.5stem=hround(-2u-.5stem); hook_in(80,81,82); |
| 42 |
z83=z82; x84=x83; y84-.5stem=-oo; |
| 43 |
pos83(stem,0); pos84(stem,0); filldraw circ_stroke z84e--z83e; |
| 44 |
x85=x83; y85=y86=bar_height; x86=x0; pos85(hair,90); pos86(hair,90); |
| 45 |
filldraw stroke z85e--z86e; |
| 46 |
%y11=y1; x11=x1-4.5u; x12=x11; pos11(stem,0); x14=-.5u; |
| 47 |
%hook_out(12,13,14); |
| 48 |
%sloped_serif.l(11,12,b,1/3,jut,serif_drop); % serif |
| 49 |
%filldraw stroke z11e--z12e; |
| 50 |
%x89=x11; y89=.75[y2,y3]; x90=x0; y90=y89; pos89(hair,90); pos90(hair,90); |
| 51 |
%filldraw stroke z89e--z90e; |
| 52 |
endchar; |
| 53 |
|
| 54 |
cmchar "Italic Serbian letter soft l"; |
| 55 |
beginchar(oct"011",12u#,x_height#,0); |
| 56 |
adjust_fit(.5u#,.5u#); pickup fine.nib; w:=9u; |
| 57 |
y1+.375stem=h; x1=.5[x3,x1']; x2=x3=3u; y3=.35h; y2=.75h; |
| 58 |
bot y4r=-oo; y1'=.8h; x1'l=w-2u; |
| 59 |
x4=.5[x6,x3]; y6-.5flare=.1h; pos6(flare,-180); |
| 60 |
pos5(hair,-180); lft x6r=-.25u; z5r=z6r; |
| 61 |
pos4(vair,-90); pos2(hair,0); pos3(hair,0); pos1(.75stem,-90); |
| 62 |
x7=x1'; pos1'(stem,180); pos7(stem,0); |
| 63 |
z11=z1'; pos11(stem,0); y7=.6bar_height; |
| 64 |
bulb(4,5,6); |
| 65 |
filldraw stroke pulled_arc.e(4,3) & super_arc.e(3,1) & super_arc.e(1,1'); |
| 66 |
filldraw stroke z11e..z7e; w:=12u; |
| 67 |
x23=x25=.5[x7,x24]; rt x24r=hround(w-u+.5curve); |
| 68 |
bot y23r=-oo; top y25r=1.2bar_height+oo; y24=y7; z7'=z7; pos7'(stem,-180); |
| 69 |
z20=z7; pos20(hair,180); pos23(vair,-90); pos24(curve,0); pos25(vair,90); |
| 70 |
filldraw stroke pulled_arc.e(7',23) & pulled_arc.e(23,24) |
| 71 |
& pulled_arc.e(24,25) & super_arc.e(25,20); % bowl |
| 72 |
endchar; |
| 73 |
|
| 74 |
cmchar "Italic Serbian letter hard dj"; |
| 75 |
beginchar(oct"012",9.5u#,x_height#,desc_depth#); |
| 76 |
italcorr 1/3x_height#*slant+.5hair#+.5u#; |
| 77 |
adjust_fit(0,0); pickup fine.nib; interim superness:=more_super; |
| 78 |
x0=0; x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); |
| 79 |
hook_in(0,1,2)(skewed); % opening hook |
| 80 |
pos2'(stem,-180); z2'=z2; |
| 81 |
pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; |
| 82 |
pos6(stem,0); rt x6r=hround(w-2.5u+.5stem); |
| 83 |
x5=x6=x7; x9=w; hook_out(7,8,9); % closing hook |
| 84 |
y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; y6+.5stem=h; |
| 85 |
filldraw stroke z2'e{-u,-x_height} |
| 86 |
...super_arc.e(3,4)...{up}z5e; % left stem and arc |
| 87 |
filldraw circ_stroke z6e--z7e; % right stem |
| 88 |
% |
| 89 |
%x31=x7; y31=-.25d; x32=x3; y32=-.8d; x33=.25[x32,x31]; y33=-d; |
| 90 |
%pos31(vair,180); pos32(slab,270); pos33(hair,360); |
| 91 |
%filldraw stroke z4e{2,-1}...{down}z31e{down}...{down}z32e...{right}z33e; |
| 92 |
x31=x7; y31=-.25d; x32=x3; y32=-.8d; x33=x32-1.5u; y33=y32+u; |
| 93 |
pos31(vair,-180); pos32(.7stem,-270); pos33(hair,-360); |
| 94 |
filldraw stroke z4e{2,-1}...z31e...{left}z32e...z33e; |
| 95 |
% |
| 96 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#); |
| 97 |
penlabels(0,1,2,3,4,5,6,7,8,9); endchar; |
| 98 |
|
| 99 |
cmchar "Italic Russian letter reverse e (looks like backwards c)"; |
| 100 |
beginchar(oct"013",8u#,x_height#,0); |
| 101 |
italcorr if math_fitting:1/3x_height#*slant else:x_height#*slant-u# fi; |
| 102 |
adjust_fit(0,0); pickup fine.nib; |
| 103 |
pos0(flare,0); pos1(hair,0); pos2(vair,90); |
| 104 |
pos3(curve,180); pos4(vair,270); pos5(hair,320); |
| 105 |
x2=x4=.5(w+u); rt x1r=max(rt x2,hround(w-.25u))+eps; |
| 106 |
lft x3r=hround(1.5u-.5curve); x5r=good.x(w-eps); x6=x5; |
| 107 |
y1=.5[bar_height,h]; top y2r=h+oo; bulb(2,1,0); % bulb |
| 108 |
bot y4r=-oo; y3=.5[y2,y4]; top y5l=vround .5bar_height; y6=bar_height; |
| 109 |
path p; p=z4{right}..z5..z6; |
| 110 |
filldraw stroke pulled_arc.e(2,3) |
| 111 |
& pulled_arc.e(3,4)...{direction 1 of p}z5e; % arc |
| 112 |
x77=x4; y77=.5h; x78=2x77-x3; y78=2y77-y3; |
| 113 |
flip(77); |
| 114 |
y79=y78; x79=x78-(x1-x3); |
| 115 |
pos78(hair,90); pos79(hair,90); |
| 116 |
filldraw stroke z78e--z79e; |
| 117 |
endchar; |
| 118 |
|
| 119 |
cmchar "Italic Ukrainian letter i"; |
| 120 |
beginchar(oct"014",5u#,min(asc_height#,10/7x_height#+.5flare#),0); |
| 121 |
italcorr max(1/3x_height#*slant+.5hair#+.5u#,h#*slant+.5flare#-2u#); |
| 122 |
adjust_fit(if monospace:u#,u# else: 0,0 fi); pickup fine.nib; |
| 123 |
x0=0; x5=w; x2=.5w+.25u; x3=.5w-.25u; |
| 124 |
hook_in(0,1,2)(skewed); hook_out(3,4,5)(skewed); % hooks |
| 125 |
filldraw stroke z2e--z3e; % stem |
| 126 |
pos8(flare,0); pos9(flare,90); |
| 127 |
x8=.5w if not monospace:-.4(h-x_height)*slant fi; top y9r=h+1; |
| 128 |
if bot y9l-top y1<slab: y9l:=min(y9r-eps,y1+fine+slab); fi |
| 129 |
x8=x9; y8=.5[y9l,y9r]; dot(8,9); % dot |
| 130 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#); |
| 131 |
penlabels(0,1,2,3,4,5,8,9); endchar; |
| 132 |
|
| 133 |
cmchar "Italic Ukrainian letter ye (looks like c with mid-line)"; |
| 134 |
beginchar(oct"015",8u#,x_height#,0); |
| 135 |
italcorr if math_fitting:1/3x_height#*slant else:x_height#*slant-u# fi; |
| 136 |
adjust_fit(0,0); pickup fine.nib; |
| 137 |
pos0(flare,0); pos1(hair,0); pos2(vair,90); |
| 138 |
pos3(curve,180); pos4(vair,270); pos5(hair,320); |
| 139 |
x2=x4=.5(w+u); rt x1r=max(rt x2,hround(w-.25u))+eps; |
| 140 |
lft x3r=hround(1.5u-.5curve); x5r=good.x(w-eps); x6=x5; |
| 141 |
y1=.5[bar_height,h]; top y2r=h+oo; bulb(2,1,0); % bulb |
| 142 |
bot y4r=-oo; y3=.5[y2,y4]; top y5l=vround .5bar_height; y6=bar_height; |
| 143 |
path p; p=z4{right}..z5..z6; |
| 144 |
filldraw stroke pulled_arc.e(2,3) |
| 145 |
& pulled_arc.e(3,4)...{direction 1 of p}z5e; % arc |
| 146 |
x78=x3; y78=y3; y79=y78; x79=x1; |
| 147 |
pos78(hair,90); pos79(hair,90); |
| 148 |
filldraw stroke z78e--z79e; |
| 149 |
endchar; |
| 150 |
|
| 151 |
cmchar "Italic Serbian letter dj (looks like barred h with tail)"; |
| 152 |
beginchar(oct"016",8u#,asc_height#,desc_depth#); |
| 153 |
italcorr 1/3x_height#*slant+.5hair#+.5u#; |
| 154 |
adjust_fit(1.5u#,0); pickup tiny.nib; |
| 155 |
pos1(stem,0); pos2(stem,0); x1=x2; |
| 156 |
lft x1l=hround(1.5u-.5stem); top y1=h; y2-.5stem=-oo; |
| 157 |
filldraw circ_stroke z2e--z1e; % left stem |
| 158 |
sloped_serif.l(1,2,a,1/3,jut,serif_drop); % serif |
| 159 |
pickup fine.nib; x4+.5stem=hround(w-.75u+.5stem); |
| 160 |
x5=x4; %x5=x4-.25u; |
| 161 |
ital_arch(2,3,4); % arch |
| 162 |
x7=.45[x2,x4]; bot y7r=-d; pos7(hair,-90); |
| 163 |
filldraw stroke pulled_arc.e(4,7); |
| 164 |
x98=-u; x99=x4; y98=y99=.5x_height+.5h; pos98(bar,90); pos99(bar,90); |
| 165 |
filldraw stroke z98e--z99e; |
| 166 |
%x7=w; hook_out(5,6,7)(skewed); % closing hook |
| 167 |
%filldraw stroke z4e{down}..{-u,-x_height}z5e; % right stem |
| 168 |
math_fit(0,ic#); penlabels(1,2,3,4,5,6,7); endchar; |
| 169 |
|
| 170 |
cmchar "Italic Serbian letter soft t (looks like barred h)"; |
| 171 |
beginchar(oct"017",9u#,asc_height#,0); |
| 172 |
italcorr 1/3x_height#*slant+.5hair#+.5u#; |
| 173 |
adjust_fit(1.5u#,0); pickup tiny.nib; |
| 174 |
pos1(stem,0); pos2(stem,0); x1=x2; |
| 175 |
lft x1l=hround(1.5u-.5stem); top y1=h; y2-.5stem=-oo; |
| 176 |
filldraw circ_stroke z2e--z1e; % left stem |
| 177 |
sloped_serif.l(1,2,a,1/3,jut,serif_drop); % serif |
| 178 |
pickup fine.nib; x4+.5stem=hround(w-2.5u+.5stem); |
| 179 |
x5=x4-.25u; ital_arch(2,3,4); % arch |
| 180 |
x7=w; hook_out(5,6,7)(skewed); % closing hook |
| 181 |
filldraw stroke z4e{down}..{-u,-x_height}z5e; % right stem |
| 182 |
x98=-u; x99=x4; y98=y99=.5x_height+.5h; pos98(bar,90); pos99(bar,90); |
| 183 |
filldraw stroke z98e--z99e; |
| 184 |
math_fit(0,ic#); penlabels(1,2,3,4,5,6,7); endchar; |
| 185 |
|
| 186 |
cmchar "Italic Russian letter yu (looks like io)"; |
| 187 |
beginchar(oct"030",12u#,x_height#,0); |
| 188 |
italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; |
| 189 |
adjust_fit(0,0); pickup fine.nib; |
| 190 |
pos1(vair,90); pos2(curve,180); pos3(vair,270); pos4(curve,360); |
| 191 |
x1=x3=.5[x2,x4]; lft x2r=hround(5.5u-.5curve); x4=w-hround(1.5u-.5curve); |
| 192 |
top y1r=h+oo; y2=y4=.5[y1,y3]; bot y3r=-oo; |
| 193 |
filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3) |
| 194 |
& pulled_arc.e(3,4) & pulled_arc.e(4,1); % bowl |
| 195 |
x0=0; x22-.5stem=hround(3u-.5stem); hook_in(0,21,22); |
| 196 |
z23=z22; x24=x23; y24-.5stem=-oo; |
| 197 |
pos23(stem,0); pos24(stem,0); filldraw circ_stroke z24e--z23e; |
| 198 |
x25=x23; y25=y26=bar_height; x26=x2; pos25(hair,90); pos26(hair,90); |
| 199 |
filldraw stroke z25e--z26e; |
| 200 |
penlabels(0,1,2,3,4,21,23,24,25,26); endchar; |
| 201 |
|
| 202 |
cmchar "Italic Russian letter zhe"; |
| 203 |
beginchar(oct"031",20u#,x_height#,0); |
| 204 |
italcorr if math_fitting:1/3x_height#*slant else:x_height#*slant-u# fi; |
| 205 |
adjust_fit(0,0); pickup fine.nib; |
| 206 |
w:=8u; |
| 207 |
pos0(flare,0); pos1(hair,0); pos2(vair,90); |
| 208 |
pos3(curve,180); pos4(vair,270); pos5(hair,320); |
| 209 |
x2=x4=.5(w+u); rt x1r=max(rt x2,hround(w-u))+eps; |
| 210 |
lft x3r=hround(1.5u-.5curve); x5r=good.x(w-eps); x6=x5; |
| 211 |
y1=.5[bar_height,h]; top y2r=h+oo; bulb(2,1,0); % bulb |
| 212 |
bot y4r=-oo; y3=.5[y2,y4]; top y5l=vround .5bar_height; y6=bar_height; |
| 213 |
path p; p=z4{right}..z5..z6; |
| 214 |
filldraw stroke pulled_arc.e(2,3) |
| 215 |
& pulled_arc.e(3,4)...{direction 1 of p}z5e; % arc |
| 216 |
path mypath; mypath= pulled_arc.r(2,3) & pulled_arc.r(3,4); |
| 217 |
x200=0; y200=.75x_height; x201=18u; y201=y200; |
| 218 |
path newpath; newpath= z200--z201; |
| 219 |
z178r= newpath intersectionpoint mypath; |
| 220 |
x77=x4; y77=.5h; z78r=z178r rotatedaround(z77,180); |
| 221 |
x78r:=x78r-hair; |
| 222 |
flip(77); w:=20u; |
| 223 |
pos50(flare,0); pos51(hair,0); pos52(vair,90); |
| 224 |
pos53(curve,180); pos54(vair,270); pos55(hair,320); |
| 225 |
x52=x54=w-3.5u; rt x51r=max(rt x52,hround(w-u))+eps; |
| 226 |
lft x53r=hround(w-6.5u-.5curve); x55r=good.x(w-eps); x56=x55; |
| 227 |
y51=.5[bar_height,h]; top y52r=h+oo; bulb(52,51,50); % bulb |
| 228 |
bot y54r=-oo; y53=.5[y52,y54]; top y55l=vround .5bar_height; y56=bar_height; |
| 229 |
path p; p=z54{right}..z55..z56; |
| 230 |
filldraw stroke pulled_arc.e(52,53) |
| 231 |
& pulled_arc.e(53,54)...{direction 1 of p}z55e; % arc |
| 232 |
path mynewpath; mynewpath= pulled_arc.r(52,53) & pulled_arc.r(53,54); |
| 233 |
x80=x81=.5[x78,x53]; y80=h-.5stem; y81=0; |
| 234 |
z79l=mynewpath intersectionpoint newpath; |
| 235 |
pos78(hair,0); pos79(hair,0); pos80(stem,0); pos81(stem,0); |
| 236 |
filldraw stroke z78e--z80e; filldraw circ_stroke z80e--z81e; filldraw stroke z79e--z81e; |
| 237 |
endchar; |
| 238 |
|
| 239 |
cmchar "Italic Russian letter short i (looks like breve u)"; |
| 240 |
beginchar(oct"032",9.5u#,asc_height#,0); |
| 241 |
italcorr 1/3x_height#*slant+.5hair#+.5u#; |
| 242 |
adjust_fit(0,0); pickup fine.nib; interim superness:=more_super; h:=x_height; |
| 243 |
x0=0; x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); |
| 244 |
hook_in(0,1,2)(skewed); % opening hook |
| 245 |
pos2'(stem,-180); z2'=z2; |
| 246 |
pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; |
| 247 |
pos6(stem,0); rt x6r=hround(w-2.5u+.5stem); |
| 248 |
x5=x6=x7; x9=w; hook_out(7,8,9); % closing hook |
| 249 |
y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; y6+.5stem=h; |
| 250 |
filldraw stroke z2'e{-u,-x_height} |
| 251 |
...super_arc.e(3,4)...{up}z5e; % left stem and arc |
| 252 |
filldraw circ_stroke z6e--z7e; % right stem |
| 253 |
h:=asc_height; |
| 254 |
pickup crisp.nib; pos38_1(vair,-180); pos38_3(vair,0); |
| 255 |
top y38_1=top y38_3=y38_2r+cyrspread; lft x38_1r+.5u=lft x3r; rt x38_3r-.5u=rt x6r; |
| 256 |
numeric mid_thickness; mid_thickness=vround 1/3[vair,stem]; |
| 257 |
pos38_2(mid_thickness,-90); x38_2=x4; |
| 258 |
bot y38_2r=x_height+.5dot_size; |
| 259 |
filldraw stroke z38_1e{down}...z38_2e{right}...{up}z38_3e; % stroke |
| 260 |
%% ngb changes: |
| 261 |
if square_dots: % relax |
| 262 |
else: |
| 263 |
pos38_11(dot_size,0); pos38_12(dot_size,90); pos38_13(dot_size,0); pos38_14(dot_size,90); |
| 264 |
lft x38_11l=lft x38_1r; rt x38_13r=rt x38_3r; y38_11=y38_12=y38_13=y38_14=y38_2r+cyrspread; |
| 265 |
x38_12=x38_11; x38_14=x38_13; dot(38_11,38_12); |
| 266 |
if altaccent: % relax |
| 267 |
else: dot(38_13,38_14); fi |
| 268 |
fi |
| 269 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#); |
| 270 |
penlabels(0,1,2,3,4,5,6,7,8,9); endchar; |
| 271 |
|
| 272 |
cmchar "Italic Russian letter yo (looks like e umlaut)"; |
| 273 |
beginchar(oct"033",8u#,asc_height#,0); |
| 274 |
italcorr max(1/3x_height#*slant,x_height#*slant+.5(.2[hair#,stem#])-u#); |
| 275 |
adjust_fit(0,0); pickup fine.nib; h:=x_height; |
| 276 |
numeric heavy_hair; heavy_hair=hround .2[hair,stem]; |
| 277 |
pos0(vair,-90); pos1(heavy_hair,0); pos2(vair,90); |
| 278 |
pos3(curve,180); pos4(vair,270); pos5(hair,320); |
| 279 |
x0=rt x3l; rt x1r=hround(w-1.5u+.5heavy_hair); x2=x4=.5(w+u); |
| 280 |
lft x3r=hround(1.5u-.5curve); x5r=good.x(w-eps); x6=x5; |
| 281 |
y0=y3=y6=bar_height; y1=.5[y0,y2]; top y2r=h+oo; bot y4r=-oo; |
| 282 |
top y5l=vround .5bar_height; path p; p=z4{right}..z5..z6; |
| 283 |
filldraw stroke z0e{right}...z1e{up}...pulled_arc.e(2,3) |
| 284 |
& pulled_arc.e(3,4)...{direction 1 of p}z5e; % arc |
| 285 |
umlaut(2,q); |
| 286 |
math_fit(-.3x_height#*slant+.5curve#-u#,ic#); |
| 287 |
penlabels(0,1,2,3,4,5,6); endchar; |
| 288 |
|
| 289 |
%cmchar "Italic letter v"; |
| 290 |
%beginchar(oct"034",9.5u#,x_height#,0); |
| 291 |
%italcorr x_height#*slant; |
| 292 |
%adjust_fit(0,0); pickup fine.nib; interim superness:=more_super; |
| 293 |
%x0=0; x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); |
| 294 |
%hook_in(0,1,2)(skewed); % opening hook |
| 295 |
%pos2'(stem,-180); z2'=z2; pos4(vair,-90); pos5(hair,0); |
| 296 |
%x4=5u; rt x5r=hround(w-2u); y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; |
| 297 |
%filldraw stroke z2'e{-u,-x_height}...super_arc.e(3,4) |
| 298 |
% ..tension atleast 1.05..{up}z5e; % left stem and arc |
| 299 |
%w:=10u; v_bulb(5,6); % closing bulb |
| 300 |
%math_fit(-2/3x_height#*slant+.5hair#+.5u#,2/3ic#); |
| 301 |
%penlabels(0,1,2,3,4,5,6); endchar; |
| 302 |
|
| 303 |
cmchar "Italic Old Russian letter izhitsa (looks like v)"; |
| 304 |
beginchar(oct"034",9u#,x_height#,0); |
| 305 |
italcorr x_height#*slant+.25u#; |
| 306 |
adjust_fit(serif_fit#,serif_fit#); |
| 307 |
numeric left_stem,right_stem,outer_jut,alpha; |
| 308 |
left_stem=stem-stem_corr; |
| 309 |
right_stem=min(hair if hefty:-2stem_corr fi,left_stem); |
| 310 |
outer_jut=.75jut; x1l=w-x4r-1.125u=l+letter_fit+outer_jut+.25u; y1=y4+.1h=h; |
| 311 |
x2-x1=x4-x3; x2l+apex_corr=x3l; y2=y3=-apex_o; |
| 312 |
alpha=diag_ratio(2,right_stem,y1-y2,x4r-x1l-apex_corr); |
| 313 |
penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0); |
| 314 |
penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0); |
| 315 |
z0=whatever[z1r,z2r]=whatever[z3l,z4l]; |
| 316 |
x5=x4+1.125u; top y5r=h+oo; penpos5(hair,90); |
| 317 |
rt x6r=hround(w-.5u-.5); y6+.5flare=.95h; penpos6(hair,0); |
| 318 |
penpos7(flare,0); if serifs: bulb(5,6,7); fi |
| 319 |
if y0>notch_cut: y0:=notch_cut; |
| 320 |
fill z0+.5right{up}...{z4-z3}z4l...{right}z5r--z5l{left} |
| 321 |
...z4r{z3-z4}...z3r...z3l--diag_end(2l,1l,1,1,1r,2r){z2-z1} |
| 322 |
...{down}z0+.5left--cycle; % left and right diagonals |
| 323 |
else: fill z0--z4l{z4-z3}...{right}z5r--z5l{left}...{z3-z4}z4r--z3r{-10,-1}...{-10,1}z3l |
| 324 |
--diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals |
| 325 |
if serifs: numeric inner_jut; pickup tiny.nib; |
| 326 |
prime_points_inside(1,2); prime_points_inside(4,3); |
| 327 |
if rt x1'r+jut+.5u+1<=lft x4'l-jut: inner_jut=jut; |
| 328 |
else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi |
| 329 |
dish_serif(1',2,a,1/3,.3outer_jut,b,1/2,.3inner_jut); % left serif |
| 330 |
fi % dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); fi % right serif |
| 331 |
math_fit(.75u#-height#*slant,ic#-4u#); penlabels(0,1,2,3,4); endchar; |
| 332 |
|
| 333 |
cmchar "Italic Old Russian letter fita (looks like theta)"; |
| 334 |
beginchar(oct"035",10u#,x_height#,0); |
| 335 |
italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; |
| 336 |
adjust_fit(u#,0); pickup fine.nib; w:=9u; |
| 337 |
pos1(vair,90); pos2(curve,180); pos3(vair,270); pos4(curve,360); |
| 338 |
x1=x3=.5w; lft x2r=hround(2.5u-.5curve); x4=w-x2; |
| 339 |
top y1r=h+oo; y2=y4=.5[y1,y3]; bot y3r=-oo; |
| 340 |
filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3) |
| 341 |
& pulled_arc.e(3,4) & pulled_arc.e(4,1); % bowl |
| 342 |
w:=10u; x31=0; x32=w-hround u; y31=y32=y2; |
| 343 |
pos31(bar,90); pos32(bar,90); filldraw circ_stroke z31e--z32e; |
| 344 |
math_fit(-.3x_height#*slant+.5curve#-u#,ic#); penlabels(1,2,3,4); endchar; |
| 345 |
|
| 346 |
cmchar "Italic Macedonian letter zelo (looks like s)"; |
| 347 |
beginchar(oct"036",5.25u#+max(1.75u#,flare#),x_height#,0); |
| 348 |
italcorr x_height#*slant-.5u#; |
| 349 |
adjust_fit(0,0); pickup fine.nib; |
| 350 |
numeric theta; theta=90-angle(40u,h); slope:=-h/40u; % angle at middle |
| 351 |
pos2(vair,-90); pos0(max(fine.breadth,ess),theta); pos7(vair,-90); |
| 352 |
x2l=x0=x7=.5w; top y2l=h+oo; bot y7r=-oo; |
| 353 |
y0-.5ess=y7l+.55(y2r-y7l-ess); |
| 354 |
lft x3l=hround u-eps; rt x6r=hround(w-.5u)+eps; |
| 355 |
x3r-x3l=x6r-x6l=hround .5[vair,ess]-fine; |
| 356 |
ellipse_set(2l,3l,4l,0l); ellipse_set(2r,3r,4r,0r); y3=y3r; |
| 357 |
ellipse_set(7l,6l,5l,0l); ellipse_set(7r,6r,5r,0r); y6=y6r; |
| 358 |
interim superness:=more_super; |
| 359 |
filldraw stroke super_arc.e(2,3) & z3e{down} |
| 360 |
..z4e---z5e..z6e{down} & super_arc.e(6,7); % main stroke |
| 361 |
pos1(hair,0); pos10(hround .75[hair,flare],0); |
| 362 |
pos2'(vair,90); z2'=z2; |
| 363 |
pos8(hair,-180); pos9(flare,-180); |
| 364 |
rt x10r=hround(w-u)+2eps; lft x9r=hround .5u-2eps; y10=.78h; y9=.25h; |
| 365 |
bulb(2',1,10); bulb(7,8,9); % bulbs |
| 366 |
math_fit(0,ic#); penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; |
| 367 |
|
| 368 |
cmchar "Italic Russian letter ya (looks like small backward R)"; |
| 369 |
beginchar(oct"037",9u#,x_height#,0); |
| 370 |
italcorr x_height#*slant; |
| 371 |
adjust_fit(0,0); pickup fine.nib; slantswitch; |
| 372 |
x0=.25u; top y0r=h; x2-.5stem=hround(2.5u-.5stem); %hook_in(0,1,2); |
| 373 |
y2=y0; pos2(stem,0); x11=x2; pos0(vair,90); |
| 374 |
y11-.5stem=-oo; pos11(stem,0); |
| 375 |
filldraw circ_stroke z11e--z2e; % left stem |
| 376 |
pos3(vair,90); x3=x11; y3=bar_height; |
| 377 |
x4=x2; rt x16r=hround(w-1.5u+.4curve); x17=.5[x4,x16]; z15=z3; |
| 378 |
%x15=x17; bot y15r=bar_height; |
| 379 |
top y17r=h; y4=y16=.5[y15,y17]; |
| 380 |
pos4(hair,-180); pos15(vair,-90); pos16(curve,0); pos17(vair,90); |
| 381 |
filldraw circ_stroke z0e--z17e; |
| 382 |
%filldraw stroke super_arc.e(4,15) & pulled_arc.e(15,16) |
| 383 |
filldraw stroke pulled_arc.e(15,16) & pulled_arc.e(16,17) & super_arc.e(17,4); |
| 384 |
pos7(stem,0); pos8(vair,90); pos9(hair,180); |
| 385 |
x9+.5hair=hround(w+.5hair-eps); y9=1/3x_height; |
| 386 |
lft x7l=hround(w-2.75u-.5stem); y7=1/2y3; x8=w-1.2u; bot y8l=-oo; |
| 387 |
filldraw stroke z3e{right}...z7e{down} |
| 388 |
...z8e{right}...{up}z9e; % lower diagonal |
| 389 |
mirror(.5w); |
| 390 |
math_fit(0,1/3x_height#*slant+.5hair#+.5u#); |
| 391 |
penlabels(1,2,3,4,5,6,7,8,9); endchar; |
| 392 |
% this one /w hook-in is pretty ugly |
| 393 |
%cmchar "Italic letter ya"; |
| 394 |
%beginchar(oct"037",9u#,x_height#,0); |
| 395 |
%italcorr x_height#*slant; |
| 396 |
%adjust_fit(0,0); pickup fine.nib; slantswitch; |
| 397 |
%x0=.25u; top y0r=h; x2-.5stem=hround(2.5u-.5stem); %hook_in(0,1,2); |
| 398 |
%y2=y0; pos2(stem,0); x11=x2; |
| 399 |
%y11-.5stem=-oo; pos11(stem,0); |
| 400 |
%filldraw circ_stroke z11e--z2e; % left stem |
| 401 |
%filldraw circ_stroke z0e--z17e; |
| 402 |
%pos3(vair,90); x3=x11; y3=bar_height; |
| 403 |
%x4=x2; rt x16r=hround(w-1.5u+.4curve); x17=.5[x4,x16]; z15=z3; |
| 404 |
%%x15=x17; bot y15r=bar_height; |
| 405 |
%top y17r=h; y4=y16=.5[y15,y17]; |
| 406 |
%pos4(hair,-180); pos15(vair,-90); pos16(curve,0); pos17(vair,90); |
| 407 |
%%filldraw stroke super_arc.e(4,15) & pulled_arc.e(15,16) |
| 408 |
%filldraw stroke pulled_arc.e(15,16) & pulled_arc.e(16,17) & super_arc.e(17,4); |
| 409 |
%pos7(stem,0); pos8(vair,90); pos9(hair,180); |
| 410 |
%x9+.5hair=hround(w+.5hair-eps); y9=1/3x_height; |
| 411 |
%lft x7l=hround(w-2.75u-.5stem); y7=1/2y3; x8=w-1.2u; bot y8l=-oo; |
| 412 |
%filldraw stroke z3e{right}...z7e{down} |
| 413 |
% ...z8e{right}...{up}z9e; % lower diagonal |
| 414 |
%mirror(.5w); |
| 415 |
%math_fit(0,1/3x_height#*slant+.5hair#+.5u#); |
| 416 |
%penlabels(1,2,3,4,5,6,7,8,9); endchar; |
| 417 |
|
| 418 |
boolean modernyat; modernyat=false; |
| 419 |
% the modern yat is a modified slanted version of yat in upright font |
| 420 |
% the real italic yat is completely different |
| 421 |
% I wouldn't even know the real one existed were it not for Dimitri Vulis |
| 422 |
iff modernyat: |
| 423 |
cmchar "Italic Old Russian letter yat"; |
| 424 |
beginchar(oct"053",8u#,asc_height#,0); |
| 425 |
italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; |
| 426 |
adjust_fit(1.75u#,0); pickup tiny.nib; |
| 427 |
pos1(stem,0); pos2(stem,0); x1=x2; |
| 428 |
lft x1l=hround(1.5u-.5stem); top y1=h; y2=.5x_height; |
| 429 |
filldraw stroke z1e--z2e; % stem |
| 430 |
sloped_serif.l(1,2,a,1/3,jut,serif_drop); % serif |
| 431 |
pickup fine.nib; pos2'(stem,-180); pos3(vair,-90); |
| 432 |
pos4(curve,0); pos5(vair,90); pos0(hair,180); |
| 433 |
z0=z2=z2'; x3=x5=.5[x2,x4]; rt x4r=hround(w-1.5u+.5curve); |
| 434 |
bot y3r=-oo; top y5r=x_height+oo; y4=y2; |
| 435 |
filldraw stroke pulled_arc.e(2',3) & pulled_arc.e(3,4) |
| 436 |
& pulled_arc.e(4,5) & super_arc.e(5,0); % bowl |
| 437 |
x31=-1.25u; x32=2x1-x31; y31=y32=.5[y5,y1]; |
| 438 |
pos31(bar,90); pos32(bar,90); filldraw stroke z31e--z32e; |
| 439 |
penlabels(0,1,2,3,4,5,31,32); endchar; |
| 440 |
iff not modernyat: |
| 441 |
cmchar "Italic Old Russian letter yat"; |
| 442 |
beginchar(oct"053",12u#,x_height#,0); |
| 443 |
italcorr 1/3x_height#*slant+.5hair#+.5u#; |
| 444 |
adjust_fit(0,0); pickup fine.nib; w:=10u; |
| 445 |
x0=0; x1=x2; pos2(stem,0); lft x2l=hround(2.5u-.5stem); y2-.5stem=-oo; |
| 446 |
hook_in(0,a,1); % opening hook |
| 447 |
filldraw circ_stroke z2e--z1e; % left stem |
| 448 |
x4+.5stem=hround(w-2.5u+.5stem); x5=x4; ital_arch(2,3,4); % arch |
| 449 |
y5=.5bar_height; pos5(stem,0); |
| 450 |
filldraw stroke z4e{down}..z5e; % right stem |
| 451 |
w:=12u; |
| 452 |
x23=x25=.5[x5,x24]; rt x24r=hround(w-u+.5curve); |
| 453 |
bot y23r=-oo; top y25r=1.2bar_height+oo; y24=y5; z7'=z5; pos7'(stem,-180); |
| 454 |
z20=z5; pos20(hair,180); pos23(vair,-90); pos24(curve,0); pos25(vair,90); |
| 455 |
filldraw stroke pulled_arc.e(7',23) & pulled_arc.e(23,24) |
| 456 |
& pulled_arc.e(24,25) & super_arc.e(25,20); % bowl |
| 457 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#); |
| 458 |
endchar; |
| 459 |
|
| 460 |
cmchar "Italic letter dotless i"; |
| 461 |
beginchar("=",5u#,min(asc_height#,10/7x_height#+.5flare#),0); |
| 462 |
italcorr max(1/3x_height#*slant+.5hair#+.5u#,h#*slant+.5flare#-2u#); |
| 463 |
adjust_fit(if monospace:u#,u# else: 0,0 fi); pickup fine.nib; |
| 464 |
x0=0; x5=w; x2=.5w+.25u; x3=.5w-.25u; |
| 465 |
hook_in(0,1,2)(skewed); hook_out(3,4,5)(skewed); % hooks |
| 466 |
filldraw stroke z2e--z3e; % stem |
| 467 |
pos8(flare,0); pos9(flare,90); |
| 468 |
x8=.5w if not monospace:-.4(h-x_height)*slant fi; top y9r=h+1; |
| 469 |
if bot y9l-top y1<slab: y9l:=min(y9r-eps,y1+fine+slab); fi |
| 470 |
x8=x9; y8=.5[y9l,y9r]; % dot(8,9); % no dot |
| 471 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#); |
| 472 |
penlabels(0,1,2,3,4,5,8,9); endchar; |
| 473 |
|
| 474 |
cmchar "Italic Russian letter a"; |
| 475 |
beginchar("a",9u#,x_height#,0); |
| 476 |
italcorr 1/3x_height#*slant+.5hair#+.5u#; |
| 477 |
adjust_fit(0,0); pickup fine.nib; |
| 478 |
pos0(hair,0); pos1(vair,90); pos2(curve,180); pos3(vair,270); |
| 479 |
pos4(stem,0); x4=x0; y4+.5stem=vround .98h; |
| 480 |
x1=x3=.5[x0,x2]; lft x2r=hround(1.5u-.5curve); |
| 481 |
rt x4r=hround(w-2.5u+.5stem); |
| 482 |
top y1r=h+oo; bot y3r=-oo; y0=y2=.5[y1,y3]; |
| 483 |
filldraw stroke super_arc.e(0,1) & pulled_arc.e(1,2) |
| 484 |
& pulled_arc.e(2,3) & super_arc.e(3,0); % bowl |
| 485 |
x5=x4; x7=w; hook_out(5,6,7); % closing hook |
| 486 |
filldraw circ_stroke z4e--z5e; % stem |
| 487 |
math_fit(-.3x_height#*slant+.5curve#-u#,ic#); |
| 488 |
penlabels(0,1,2,3,4,5,6,7); endchar; |
| 489 |
|
| 490 |
cmchar "Italic Russian letter be"; |
| 491 |
beginchar("b",8u#,asc_height#,0); |
| 492 |
italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; |
| 493 |
adjust_fit(0,0); pickup tiny.nib; |
| 494 |
pos50(stem,-90); x50=.5w; y50=.95h; x100=w-u; y100=h; pos100(hair,0); |
| 495 |
pos1(hair,0); pos2(stem,0); x1=x2+.5u; pos52(hair,0); |
| 496 |
lft x1l=hround(1.5u-.5stem); top y1=1.2x_height; y2=.5x_height; |
| 497 |
x52l=x2l; y52=y2; |
| 498 |
filldraw stroke z100e...{left}z50e & pulled_arc.e(50,1) & z1e...{down}z52e; % stem |
| 499 |
pickup fine.nib; pos2'(stem,-180); pos3(vair,-90); |
| 500 |
pos4(curve,0); pos5(vair,90); pos0(hair,180); |
| 501 |
z0=z2=z2'; x3=x5=.5[x2,x4]; rt x4r=hround(w-1.5u+.5curve); |
| 502 |
bot y3r=-oo; top y5r=x_height+oo; y4=y2; |
| 503 |
z72=z2; pos72(stem,180); |
| 504 |
filldraw stroke pulled_arc.e(2',3) & pulled_arc.e(3,4) |
| 505 |
& pulled_arc.e(4,5) & super_arc.e(5,72); %(5,0); % bowl |
| 506 |
math_fit(-.3x_height#*slant+.5curve#-u#,ic#); |
| 507 |
penlabels(0,1,2,3,4,5); endchar; |
| 508 |
|
| 509 |
cmchar "Italic Russian letter tse"; |
| 510 |
beginchar("c",9.5u#,x_height#,desc_depth#); |
| 511 |
italcorr 1/3x_height#*slant+.5hair#+.5u#; |
| 512 |
adjust_fit(0,.75u#); pickup fine.nib; interim superness:=more_super; |
| 513 |
x0=0; x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); |
| 514 |
hook_in(0,1,2)(skewed); % opening hook |
| 515 |
pos2'(stem,-180); z2'=z2; |
| 516 |
pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; |
| 517 |
pos6(stem,0); rt x6r=hround(w-2.5u+.5stem); |
| 518 |
x5=x6=x7; %x9=w; hook_out(7,8,9); % closing hook |
| 519 |
y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; y6+.5stem=h; |
| 520 |
filldraw stroke z2'e{-u,-x_height} |
| 521 |
...super_arc.e(3,4)...{up}z5e; % left stem and arc |
| 522 |
pos7(stem,0); |
| 523 |
x9=w; y9=y8=.4bar_height; x8=x6; pos8(hair,0); pos9(hair,180); |
| 524 |
y7=y8; |
| 525 |
filldraw circ_stroke z6e--z7e; % right stem |
| 526 |
filldraw circ_stroke z7e{down}...{up}z9e; |
| 527 |
pickup crisp.nib; |
| 528 |
y10=0; x10=x9-.1u; y12=-d; x12=x9-.75u; z11=.5[z10,z12]; |
| 529 |
pos10(hair,90); pos11(1.25stem,135); |
| 530 |
filldraw stroke z9{down}...z10e...z11e--z12; |
| 531 |
penlabels(0,1,2,3,4,5,6,7,8,9,10,11); endchar; |
| 532 |
|
| 533 |
cmchar "Italic Russian letter de"; |
| 534 |
beginchar("d",9u#,asc_height#,0); |
| 535 |
italcorr .7asc_height#*slant+.5curve#-1.5u#; |
| 536 |
adjust_fit(0,0); |
| 537 |
numeric top_thickness,bot_thickness,side_thickness,pull; |
| 538 |
top_thickness=max(fine.breadth,vround(slab-2vair_corr)); |
| 539 |
bot_thickness=max(fine.breadth,vround(slab-vair_corr)); |
| 540 |
side_thickness=max(fine.breadth,hround 1/4[curve,cap_curve]); |
| 541 |
pull=min(.25,1.5superpull); |
| 542 |
pickup fine.nib; pos2(top_thickness,90); |
| 543 |
pos3(side_thickness,0); pos4(bot_thickness,-90); |
| 544 |
pos5(side_thickness,-180); pos6(vair,-270); |
| 545 |
lft x5r=w-rt x3r=hround max(.75u,1.5u-.5side_thickness); |
| 546 |
x4=x6+.1u=x2+3.5u=.5w; |
| 547 |
top y2r=h+o; y3=.5[y2,y4]; bot y4r=-o; |
| 548 |
y5=.5[y4,y6]; top y6=vround 5/8h+o; |
| 549 |
path p; p=pulled_super_arc.l(3,4)(pull); |
| 550 |
numeric t; t=xpart(p intersectiontimes((x3r,y5)--(x4,y5))); |
| 551 |
pos7(thin_join,0); z7l=point t of p; |
| 552 |
(x,y6r)=whatever[z7l,z6l]; x6r:=max(x,.5[x5r,x6]); |
| 553 |
filldraw stroke pulled_super_arc.e(2,3)(pull) |
| 554 |
& {{interim superness:=more_super; pulled_super_arc.e(3,4)(pull)}} |
| 555 |
& {{less_tense; pulled_super_arc.e(4,5)(pull) & pulled_super_arc.e(5,6)(pull)}} |
| 556 |
& z6e{right}...{direction t of p}z7e; % arc and bowl |
| 557 |
%pos1(hair,180); pos0(flare,180); |
| 558 |
%lft x0r=min(lft x2-eps,hround 1.2u); |
| 559 |
%y0=vround min(.85h-.5flare,.8h+.5flare)+o; |
| 560 |
%{{less_tense; bulb(2,1,0)}}; % arc and bulb |
| 561 |
math_fit(-.3x_height#*slant+.5curve#-u#,ic#-u#); |
| 562 |
penlabels(0,1,2,3,4,5,6,7); endchar; |
| 563 |
|
| 564 |
cmchar "Italic Russian letter e"; |
| 565 |
beginchar("e",8u#,x_height#,0); |
| 566 |
italcorr max(1/3x_height#*slant,x_height#*slant+.5(.2[hair#,stem#])-u#); |
| 567 |
adjust_fit(0,0); pickup fine.nib; |
| 568 |
numeric heavy_hair; heavy_hair=hround .2[hair,stem]; |
| 569 |
pos0(vair,-90); pos1(heavy_hair,0); pos2(vair,90); |
| 570 |
pos3(curve,180); pos4(vair,270); pos5(hair,320); |
| 571 |
x0=rt x3l; rt x1r=hround(w-1.5u+.5heavy_hair); x2=x4=.5(w+u); |
| 572 |
lft x3r=hround(1.5u-.5curve); x5r=good.x(w-eps); x6=x5; |
| 573 |
y0=y3=y6=bar_height; y1=.5[y0,y2]; top y2r=h+oo; bot y4r=-oo; |
| 574 |
top y5l=vround .5bar_height; path p; p=z4{right}..z5..z6; |
| 575 |
filldraw stroke z0e{right}...z1e{up}...pulled_arc.e(2,3) |
| 576 |
& pulled_arc.e(3,4)...{direction 1 of p}z5e; % arc |
| 577 |
math_fit(-.3x_height#*slant+.5curve#-u#,ic#); |
| 578 |
penlabels(0,1,2,3,4,5,6); endchar; |
| 579 |
|
| 580 |
cmchar "Italic Russian letter ef (looks like phi)"; |
| 581 |
beginchar("f",max(1.5u#,stem#)+max(3.5u#,2flare#),asc_height#,asc_height#-x_height#); |
| 582 |
italcorr asc_height#*slant+.75u#; |
| 583 |
adjust_fit(if monospace:3u#,3u# else: 2.5u#,2.5u# fi); pickup fine.nib; |
| 584 |
numeric theta; z88=(.5w-.5u,h); z89=(.5w+.5u,-d); theta=angle(z88-z89); |
| 585 |
pos0(flare,0); pos1(hair,0); pos2(vair,90); |
| 586 |
pos3(.5[hair,stem],180); pos4(stem,theta+90); |
| 587 |
pos5(stem,theta-90); pos6(.5[hair,stem],0); |
| 588 |
pos7(vair,-90); pos8(hair,-180); pos9(flare,-180); |
| 589 |
rt x1r=hround(w+.25u); lft x8r=hround-.35u; x2=.6[x1,x4]; x7=.6[x8,x5]; |
| 590 |
y9-.5flare=vround -.85d; y2-y0=y9-y7; top y2r=h+oo; bot y7r=-d-oo; |
| 591 |
y4=.25[x_height,h]; y5=.5[-d,y4]; |
| 592 |
z4=whatever[z88,z89]; z5=whatever[z88,z89]; |
| 593 |
x3=.8[x2+x4-x88,x88]; x6=.8[x7+x5-x89,x89]; y3=.8[y4,y2]; y6=.8[y5,y7]; |
| 594 |
bulb(2,1,0); bulb(7,8,9); % bulbs |
| 595 |
filldraw stroke z2e{left}...z3e...{z89-z88}z4e; % upper arc |
| 596 |
filldraw z4r--z5l--z5r--z4l--cycle; % stem |
| 597 |
filldraw stroke z5e{z89-z88}...z6e...{left}z7e; % lower arc |
| 598 |
pickup crisp.nib; pos20(bar,90); pos21(bar,90); |
| 599 |
top y20r=top y21r=x_height; |
| 600 |
lft x20=lft x4r-.5stem-u; rt x21=rt x4l+.5stem+1.5u; |
| 601 |
%filldraw stroke z20e--z21e; % crossbar |
| 602 |
x100=x5; y100=y102=.5[y101,y103]; top y101r=x_height+oo; bot y103r=-oo; |
| 603 |
x101=x103=.5[x102,x100]; x102=x100-4u; pos100(hair,0); pos101(vair,90); |
| 604 |
pos102(curve,180); pos103(vair,270); |
| 605 |
filldraw stroke super_arc.e(100,101) & pulled_arc.e(101,102) |
| 606 |
& pulled_arc.e(102,103) & super_arc.e(103,100); |
| 607 |
y201=y101; y202=y102; y203=y103; x201-x100=x100-x101; x202-x100=x100-x102; |
| 608 |
x203-x100=x100-x103; pos201(vair,-90); pos202(curve,-180); pos203(vair,-270); |
| 609 |
filldraw stroke super_arc.e(100,201) & pulled_arc.e(201,202) |
| 610 |
& pulled_arc.e(202,203) & super_arc.e(203,100); |
| 611 |
math_fit(desc_depth#*slant+u#,x_height#*slant); |
| 612 |
penlabels(0,1,2,3,4,5,6,7,8,9,20,21,88,89); endchar; |
| 613 |
|
| 614 |
cmchar "Italic Russian letter ghe"; |
| 615 |
beginchar("g",7u#,x_height#,0); |
| 616 |
italcorr max(1/3x_height#*slant+.5hair#+.5u#,h#*slant+.5flare#-2u#); |
| 617 |
adjust_fit(if monospace:u#,u# else: 0,0 fi); pickup fine.nib; |
| 618 |
x0=0; x5=w; x2=.5w+1.5u; x3=.5w-1.5u; |
| 619 |
hook_in(0,1,2)(skewed); hook_out(3,4,5)(skewed); % hooks |
| 620 |
filldraw stroke z2e{down}...{down}z3e; % stem |
| 621 |
penlabels(0,1,2,3,4,5,8,9); endchar; |
| 622 |
|
| 623 |
cmchar "Italic Russian letter kha (looks like x)"; |
| 624 |
beginchar("h",6.5u#+max(1.5u#,flare#),x_height#,0); |
| 625 |
italcorr max(1/3x_height#*slant+.5hair#+.5u#,x_height#*slant+.25u#); |
| 626 |
adjust_fit(0,0); pickup fine.nib; |
| 627 |
pos0(hair,180); pos1(vair,90); pos2(stem,0); |
| 628 |
pos3(stem,-180); pos4(vair,-90); pos5(hair,0); |
| 629 |
y0=y2=2/3h; y3=y5=1/3h; top y1r=h+oo; bot y4r=-oo; |
| 630 |
rt x2r=hround(.5w+.5stem-eps); x2=x3; |
| 631 |
x0-.5hair=hround-.5hair; x5+.5hair=hround(w+.5hair-eps); |
| 632 |
x1=.5[x0,x2]; x4=.5[x3,x5]; |
| 633 |
filldraw stroke z0e{up}...pulled_arc.e(1,2); % opening hook |
| 634 |
filldraw z2l--z3r--z3l--z2r--cycle; % stem |
| 635 |
filldraw stroke pulled_arc.e(3,4)...{up}z5e; % closing hook |
| 636 |
pos3'(hair,180); pos6(hair,180); pos7(vair,90); |
| 637 |
pos8(hair,0); pos9(flare,0); |
| 638 |
x3'l=x6l=x3l; y3'=y3; y6=3/4h; x7=.5[x8,x2]; top y7r=h+oo; |
| 639 |
rt x8r=hround(w-.25u); y8+.5flare=vround(bot y7l-.03x_height); |
| 640 |
filldraw stroke z3'e---z6e...{right}z7e; bulb(7,8,9); % upper link and bulb |
| 641 |
pos2'(hair,0); pos16(hair,0); pos17(vair,-90); |
| 642 |
pos18(hair,-180); pos19(flare,-180); |
| 643 |
x2'l=x16l=x2l; y2'=y2; y16=1/4h; x17=.5[x18,x3]; bot y17r=-oo; |
| 644 |
lft x18r=hround.25u; y18-.5flare=vround(top y17l+.03x_height); |
| 645 |
filldraw stroke z2'e---z16e...{left}z17e; bulb(17,18,19); % lower link and bulb |
| 646 |
math_fit(0,ic#); penlabels(0,1,2,3,4,5,6,7,8,9,16,17,18,19); endchar; |
| 647 |
|
| 648 |
cmchar "Italic Russian letter i (looks like u)"; |
| 649 |
beginchar("i",9.5u#,x_height#,0); |
| 650 |
italcorr 1/3x_height#*slant+.5hair#+.5u#; |
| 651 |
adjust_fit(0,0); pickup fine.nib; interim superness:=more_super; |
| 652 |
x0=0; x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); |
| 653 |
hook_in(0,1,2)(skewed); % opening hook |
| 654 |
pos2'(stem,-180); z2'=z2; |
| 655 |
pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; |
| 656 |
pos6(stem,0); rt x6r=hround(w-2.5u+.5stem); |
| 657 |
x5=x6=x7; x9=w; hook_out(7,8,9); % closing hook |
| 658 |
y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; y6+.5stem=h; |
| 659 |
filldraw stroke z2'e{-u,-x_height} |
| 660 |
...super_arc.e(3,4)...{up}z5e; % left stem and arc |
| 661 |
filldraw circ_stroke z6e--z7e; % right stem |
| 662 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#); |
| 663 |
penlabels(0,1,2,3,4,5,6,7,8,9); endchar; |
| 664 |
|
| 665 |
cmchar "Italic Serbian letter je"; |
| 666 |
beginchar("j",5u#,min(asc_height#,10/7x_height#+.5flare#),desc_depth#); |
| 667 |
italcorr h#*slant+.5stem#-u#; |
| 668 |
adjust_fit(if monospace:2u#,.5u# else: 0,0 fi); pickup fine.nib; |
| 669 |
x0=0; x2=x3; pos3(stem,0); lft x3l=hround(w-1.5u-.5stem); |
| 670 |
hook_in(0,1,2); % opening hook |
| 671 |
pos4(vair,-90); pos5(hair,-180); pos6(flare,-180); |
| 672 |
bot y3=-1/3d; bot y4r=-d-oo; y6-.5flare=-vround.9d; |
| 673 |
x4=1/3(w-u); lft x5r=min(hround-.5u,lft x5r+x4-x5l-eps); |
| 674 |
filldraw stroke z2e---z3e...{left}z4e; % stem and arc |
| 675 |
bulb(4,5,6); % bulb |
| 676 |
pos8(flare,0); pos9(flare,90); |
| 677 |
rt x8r=rt x2r if not monospace:-.6(h-x_height)*slant fi; top y9r=h+1; |
| 678 |
if bot y9l-top y1<slab: y9l:=min(y9r-eps,y1+fine+slab); fi |
| 679 |
x8=x9; y8=.5[y9l,y9r]; dot(8,9); % dot |
| 680 |
math_fit(desc_depth#*slant,x_height#*slant+.5stem#-u#); |
| 681 |
penlabels(0,1,2,3,4,5,6,8,9); endchar; |
| 682 |
|
| 683 |
cmchar "Italic Russian letter ka"; |
| 684 |
beginchar("k",9u#,x_height#,0); |
| 685 |
italcorr x_height#*slant; |
| 686 |
adjust_fit(0,0); pickup fine.nib; |
| 687 |
x0=0; x2-.5stem=hround(2.5u-.5stem); hook_in(0,1,2); |
| 688 |
z2'=z2; |
| 689 |
pos2'(stem,0); x11=x2'; |
| 690 |
y11-.5stem=-oo; pos11(stem,0); |
| 691 |
filldraw circ_stroke z11e--z2'e; % left stem |
| 692 |
pos3(vair,90); x3=x11; y3=bar_height; |
| 693 |
pos4(vair,90); x4=w-2u; top y4r=x_height+oo; |
| 694 |
filldraw stroke z3e{right}..{right}z4e; % upper diagonal |
| 695 |
pos5(hair,0); pos6(flare,0); |
| 696 |
rt x5r=hround(w-.5u); y5+.5flare=vround(bot y4l-.03x_height); |
| 697 |
bulb(4,5,6); % bulb |
| 698 |
pos7(stem,0); pos8(vair,90); pos9(hair,180); |
| 699 |
x9+.5hair=hround(w+.5hair-eps); y9=1/3x_height; |
| 700 |
lft x7l=hround(w-2.75u-.5stem); y7=1/2y3; x8=w-1.2u; bot y8l=-oo; |
| 701 |
filldraw stroke z3e{right}...z7e{down} |
| 702 |
...z8e{right}...{up}z9e; % lower diagonal |
| 703 |
math_fit(0,1/3x_height#*slant+.5hair#+.5u#); |
| 704 |
penlabels(1,2,3,4,5,6,7,8,9); endchar; |
| 705 |
|
| 706 |
|
| 707 |
cmchar "Italic Russian letter el"; |
| 708 |
beginchar("l",9u#,x_height#,0); |
| 709 |
adjust_fit(.5u#,.5u#); pickup fine.nib; |
| 710 |
y1+.375stem=h; x1=.5[x3,x1']; x2=x3=3u; y3=.35h; y2=.75h; bot y4r=-oo; y1'=.8h; x1'l=w-2u; |
| 711 |
x4=.5[x6,x3]; y6-.5flare=.1h; pos6(flare,-180); pos5(hair,-180); lft x6r=-.25u; z5r=z6r; |
| 712 |
pos4(vair,-90); pos2(hair,0); pos3(hair,0); pos1(.75stem,-90); |
| 713 |
x7=x1'; pos1'(stem,180); %pos7(stem,0); %hook_out provides pos7 statement |
| 714 |
z11=z1'; pos11(stem,0); |
| 715 |
bulb(4,5,6); |
| 716 |
filldraw stroke pulled_arc.e(4,3) & super_arc.e(3,1) & super_arc.e(1,1'); |
| 717 |
%filldraw stroke pulled_arc.e(4,3) & z3e..z2e{up}...{right}z1e; |
| 718 |
x9=w; |
| 719 |
hook_out(7,8,9); |
| 720 |
filldraw stroke z11e..z7e; |
| 721 |
endchar; |
| 722 |
|
| 723 |
cmchar "Italic Russian letter em"; |
| 724 |
beginchar("m",13u#,x_height#,0); |
| 725 |
adjust_fit(.5u#,.5u#); pickup fine.nib; |
| 726 |
x3=3u; y3=.35h; bot y4r=-oo; x7r=w-2u; |
| 727 |
x4=.5[x6,x3]; y6-.5flare=.1h; pos6(flare,-180); pos5(hair,-180); lft x6r=-.25u; z5r=z6r; |
| 728 |
pos4(vair,-90); pos3(hair,0); |
| 729 |
bulb(4,5,6); |
| 730 |
x9=w; |
| 731 |
hook_out(7,8,9); |
| 732 |
pos1'(hair,0); x1'l=x1l; y1'=y1=h; |
| 733 |
x1l=x3; bot y10l=-oo; x10l=.48[x1,x7]; bot y11l=-oo; x11l=x10l; x13=x7; x12=x13l; y12r=y13=h; |
| 734 |
pos1(stem,0); pos11(hair,90); pos12(hair,90); pos13(stem,0); pos10(stem,angle(z12-z11)); |
| 735 |
filldraw stroke pulled_arc.e(4,3) & z3e--z1'e; |
| 736 |
filldraw stroke z1e--z10e; filldraw stroke z11e--z12e; |
| 737 |
filldraw stroke z13e--z7e; |
| 738 |
endchar; |
| 739 |
|
| 740 |
cmchar "Italic Russian letter en (looks like h)"; |
| 741 |
beginchar("n",10u#,x_height#,desc_depth#); |
| 742 |
italcorr 1/3x_height#*slant+.5hair#+.5u#; |
| 743 |
adjust_fit(0,.25u#); pickup fine.nib; |
| 744 |
x0=0; x2=x3; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); |
| 745 |
hook_in(0,1,2); % opening hook |
| 746 |
y3-.5stem=-oo; z2'=z2; pos2'(stem,-180); filldraw circ_stroke z3e--z2'e; |
| 747 |
x10=x3l; y10=y11=.55h; pos10(hair,90); pos11(hair,90); |
| 748 |
pos6(stem,0); rt x6r=hround(w-2.5u+.5stem); y6+.5stem=h; |
| 749 |
x7=x6; x9=w; hook_out(7,8,9); z7'=z7; pos7'(stem,0); |
| 750 |
filldraw circ_stroke z6e--z7'e; x11=x6l; filldraw stroke z10e{1,1}...{1,1}z11e; |
| 751 |
endchar; |
| 752 |
|
| 753 |
cmchar "Italic Russian letter o"; |
| 754 |
beginchar("o",9u#,x_height#,0); |
| 755 |
italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; |
| 756 |
adjust_fit(0,0); pickup fine.nib; |
| 757 |
pos1(vair,90); pos2(curve,180); pos3(vair,270); pos4(curve,360); |
| 758 |
x1=x3=.5w; lft x2r=hround(1.5u-.5curve); x4=w-x2; |
| 759 |
top y1r=h+oo; y2=y4=.5[y1,y3]; bot y3r=-oo; |
| 760 |
filldraw stroke pulled_arc.e(1,2) & pulled_arc.e(2,3) |
| 761 |
& pulled_arc.e(3,4) & pulled_arc.e(4,1); % bowl |
| 762 |
math_fit(-.3x_height#*slant+.5curve#-u#,ic#); penlabels(1,2,3,4); endchar; |
| 763 |
|
| 764 |
cmchar "Italic Russian letter pe (looks like pi)"; |
| 765 |
beginchar("p",10u#,x_height#,0); |
| 766 |
italcorr 1/3x_height#*slant+.5hair#+.5u#; |
| 767 |
adjust_fit(0,0); pickup fine.nib; |
| 768 |
x0=0; x1=x2; pos2(stem,0); lft x2l=hround(2.5u-.5stem); y2-.5stem=-oo; |
| 769 |
hook_in(0,a,1); % opening hook |
| 770 |
filldraw circ_stroke z2e--z1e; % left stem |
| 771 |
x4+.5stem=hround(w-2.5u+.5stem); x5=x4-.25u; ital_arch(2,3,4); % arch |
| 772 |
x7=w; hook_out(5,6,7)(skewed); % closing hook |
| 773 |
filldraw stroke z4e{down}..{-u,-x_height}z5e; % right stem |
| 774 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#); |
| 775 |
penlabels(0,a,1,2,3,4,5,6,7); endchar; |
| 776 |
|
| 777 |
cmchar "Italic Russian letter che"; |
| 778 |
beginchar("q",9.5u#,x_height#,0); |
| 779 |
italcorr 1/3x_height#*slant+.5hair#+.5u#; |
| 780 |
adjust_fit(0,0); pickup fine.nib; interim superness:=more_super; |
| 781 |
x0=0; x2=x3; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); |
| 782 |
hook_in(0,1,2)(skewed); % opening hook |
| 783 |
pos2'(stem,-180); z2'=z2; |
| 784 |
pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; |
| 785 |
pos6(stem,0); rt x6r=hround(w-2.5u+.5stem); |
| 786 |
x5=x6=x7; x9=w; hook_out(7,8,9); % closing hook |
| 787 |
y3=.7[y4,y5]; bot y4r=.75bar_height; y5=.75h; y6+.5stem=h; |
| 788 |
filldraw stroke z2'e...super_arc.e(3,4)...{up}z5e; % left stem and arc |
| 789 |
filldraw circ_stroke z6e--z7e; % right stem |
| 790 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#); |
| 791 |
penlabels(0,1,2,3,4,5,6,7,8,9); endchar; |
| 792 |
|
| 793 |
cmchar "Italic Russian letter er (looks like p)"; |
| 794 |
beginchar("r",9u#,x_height#,desc_depth#); |
| 795 |
italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; |
| 796 |
adjust_fit(0,0); pickup fine.nib; |
| 797 |
x0=0; x2-.5stem=hround(2.5u-.5stem); hook_in(0,1,2); % opening hook |
| 798 |
pos4(hair,-180); pos5(vair,-90); pos6(curve,0); pos7(vair,90); |
| 799 |
x4=x2; rt x6r=hround(w-1.5u+.5curve); x5=x7=.5[x4,x6]; |
| 800 |
bot y5r=-oo; top y7r=h+oo; y4=y6=.5[y5,y7]; |
| 801 |
filldraw stroke super_arc.e(4,5) & pulled_arc.e(5,6) |
| 802 |
& pulled_arc.e(6,7) & super_arc.e(7,4); % bowl |
| 803 |
pickup tiny.nib; pos2'(stem,0); pos3(stem,0); |
| 804 |
z2=z2'; x3=x2; bot y3=-d; filldraw stroke z2'e--z3e; % stem |
| 805 |
dish_serif(3,2',a,1/3,.75jut,b,1/3,jut); % serif |
| 806 |
math_fit(-min(2/3x_height#*slant-.5hair#-.5u#, |
| 807 |
2u#-.5stem#-desc_depth#*slant),ic#); |
| 808 |
penlabels(0,1,2,3,4,5,6,7); endchar; |
| 809 |
|
| 810 |
cmchar "Italic Russian letter es (looks like c)"; |
| 811 |
beginchar("s",8u#,x_height#,0); |
| 812 |
italcorr if math_fitting:1/3x_height#*slant else:x_height#*slant-u# fi; |
| 813 |
adjust_fit(0,0); pickup fine.nib; |
| 814 |
pos0(flare,0); pos1(hair,0); pos2(vair,90); |
| 815 |
pos3(curve,180); pos4(vair,270); pos5(hair,320); |
| 816 |
x2=x4=.5(w+u); rt x1r=max(rt x2,hround(w-u))+eps; |
| 817 |
lft x3r=hround(1.5u-.5curve); x5r=good.x(w-eps); x6=x5; |
| 818 |
y1=.5[bar_height,h]; top y2r=h+oo; bulb(2,1,0); % bulb |
| 819 |
bot y4r=-oo; y3=.5[y2,y4]; top y5l=vround .5bar_height; y6=bar_height; |
| 820 |
path p; p=z4{right}..z5..z6; |
| 821 |
filldraw stroke pulled_arc.e(2,3) |
| 822 |
& pulled_arc.e(3,4)...{direction 1 of p}z5e; % arc |
| 823 |
math_fit(-.3x_height#*slant+.5curve#-u#,ic#); |
| 824 |
penlabels(0,1,2,3,4,5,6); endchar; |
| 825 |
|
| 826 |
cmchar "Italic Russian letter te (looks like m)"; |
| 827 |
beginchar("t",15u#,x_height#,0); |
| 828 |
italcorr 1/3x_height#*slant+.5hair#+.5u#; |
| 829 |
adjust_fit(if monospace:-1.5u#,-2u# else: 0,0 fi); pickup fine.nib; |
| 830 |
numeric shaved_stem; shaved_stem=mfudged.stem; |
| 831 |
save stem; stem=shaved_stem; |
| 832 |
pos2(stem,0); x1=x2; |
| 833 |
if monospace: pos1(stem,0); lft x1l=hround(2.5u-.5stem); top y1=h; |
| 834 |
else: x0=0; lft x2l=hround(2.5u-.5stem); |
| 835 |
hook_in(0,a,1); fi % opening hook |
| 836 |
y2-.5stem=-oo; filldraw circ_stroke z2e--z1e; % left stem |
| 837 |
x4+.5stem=hround(.5w+.5stem); ital_arch(2,3,4); % left arch |
| 838 |
pos5(stem,0); y5=y2; x5=x4; |
| 839 |
filldraw circ_stroke z5e--z4e; % middle stem |
| 840 |
x7+.5stem=hround(w-2.5u+.5stem); |
| 841 |
x8=x7-.25u; ital_arch(5,6,7); % right arch |
| 842 |
if monospace: pos9(vair,90); x9=good.x .5[x8,w]; bot y9l=0; y8=1/3h; |
| 843 |
pos8(stem,0); filldraw stroke z8e{-u,-x_height}...{right}z9e; % terminal |
| 844 |
else: x9=w; hook_out(8,b,9)(skewed); fi % closing hook |
| 845 |
filldraw stroke z7e{down}..{-u,-x_height}z8e; % right stem |
| 846 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#); |
| 847 |
penlabels(0,a,1,2,3,4,5,6,7,8,9); endchar; |
| 848 |
|
| 849 |
cmchar "Italic Russian letter u (looks like y)"; |
| 850 |
beginchar("u",8.5u#,x_height#,desc_depth#); |
| 851 |
italcorr x_height#*slant+.5stem#-u#; |
| 852 |
adjust_fit(0,0); pickup fine.nib; interim superness:=more_super; |
| 853 |
x0=0; x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); |
| 854 |
hook_in(0,1,2)(skewed); % opening hook |
| 855 |
pos2'(stem,-180); z2'=z2; |
| 856 |
pos4(vair,-90); pos5(hair,0); x4=.5[x3,x5]; |
| 857 |
pos6(stem,0); rt x6r=hround(w-1.5u+.5stem); |
| 858 |
pos7(stem,0); pos8(vair,-90); |
| 859 |
y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; y6+.5stem=h; |
| 860 |
y7=0; bot y8r=-d-oo; x5=x6=x7; x8=.5w; |
| 861 |
pos9(hair,-180); pos10(flare,-180); y9=-.5d; |
| 862 |
lft x9r=hround(2.75u-.5flare); bulb(8,9,10); % bulb |
| 863 |
filldraw stroke z2'e{-u,-x_height} |
| 864 |
...super_arc.e(3,4)...{up}z5e; % left stem and arc |
| 865 |
filldraw circ_stroke z6e---z7e...{left}z8e; % right stem and link |
| 866 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#-1/3x_height#*slant); |
| 867 |
penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; |
| 868 |
|
| 869 |
cmchar "Italic Russian letter ve (looks like B)"; |
| 870 |
beginchar("v",9u#,x_height#,0); |
| 871 |
italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; |
| 872 |
adjust_fit(0,.5u#); pickup fine.nib; |
| 873 |
pos1(vair,90); pos2(curve,180); pos3(vair,270); pos4(curve,360); |
| 874 |
x1=x3=.5w; lft x2r=hround(1.5u-.5curve); x4=w-x2; x5=x4+.5u; |
| 875 |
top y1r=h+oo; y2=.5[y1,y3]-u; bot y3r=-oo; y4=.65h; y5=.28h; y7=y6; y6=y2+u; |
| 876 |
x6=x4-2.5u; x7=x2l; pos5(curve,360); pos6(hair,90); z6'=z6; pos6'(hair,-90); |
| 877 |
pos7(hair,90); |
| 878 |
filldraw stroke pulled_arc.e(6',4) & pulled_arc.e(4,1) & pulled_arc.e(1,2) & pulled_arc.e(2,3) |
| 879 |
& pulled_arc.e(3,5) & pulled_arc.e(5,6); % bowl |
| 880 |
filldraw stroke z7e--z6e; |
| 881 |
penlabels(1,2,3,4,5,6); endchar; |
| 882 |
|
| 883 |
cmchar "Italic Russian letter shcha"; |
| 884 |
beginchar("w",12u#,x_height#,desc_depth#); |
| 885 |
italcorr x_height#*slant; |
| 886 |
adjust_fit(if monospace:-1.5u#,-u# else: 0,2.5u# fi); |
| 887 |
pickup fine.nib; interim superness:=more_super; begingroup |
| 888 |
forsuffixes $=hair,stem: shaved$:=mfudged$; save $; $=shaved$; endfor |
| 889 |
x0=0; x2=x3+.25u; pos3(stem,-180); lft x3r=hround(2.5u-.5stem); |
| 890 |
if monospace: pos1(vair,90); x1=good.x .5[x0,x2]; top y1r=h; y2=2/3h; |
| 891 |
pos2(stem,0); filldraw stroke z1e{right}...{-u,-x_height}z2e; |
| 892 |
else: hook_in(0,1,2)(skewed); fi % opening hook |
| 893 |
pos2'(stem,-180); z2'=z2; |
| 894 |
pos4(vair,-90); pos5(hair,0); |
| 895 |
x4=.6[x2,x5]; x5=x6=x7; pos6(stem,-180); pos7(stem,-180); |
| 896 |
y3=.7[y4,y5]; bot y4r=-oo; y5=.57h; |
| 897 |
rt x6l=hround(rt x6l+.5w+.75u-x6); y6+.5stem=h; y7=y3; |
| 898 |
pos8(vair,-90); pos9(hair,0); |
| 899 |
x8=w-2.75u; rt x9r=hround(w-.5u); bot y8r=-oo; y9=y5; |
| 900 |
filldraw stroke z2'e{-u,-x_height} |
| 901 |
...super_arc.e(3,4)...{up}z5e; % left stem and arc |
| 902 |
filldraw circ_stroke z6e..super_arc.e(7,8)...{up}z9e; % middle stem and arc |
| 903 |
%v_bulb(9,10); % closing bulb |
| 904 |
pos26(stem,0); x26=x27=x9; y26+.5stem=h; y27=y28=y29=.4bar_height; |
| 905 |
pos27(stem,0); filldraw circ_stroke z26e--z27e; |
| 906 |
x29=r-.5u; x28=x26; pos28(hair,0); pos29(hair,180); |
| 907 |
filldraw circ_stroke z27e{down}...{up}z29e; |
| 908 |
pickup crisp.nib; |
| 909 |
%y30=0; x30=.5[x28,x29]; y32=-d; x32=x26-u; z31=.5[z30,z32]; |
| 910 |
y30=0; x30=x29-.1u; y32=-d; x32=x29-.75u; z31=.5[z30,z32]; |
| 911 |
pos30(hair,90); pos31(1.25stem,135); |
| 912 |
filldraw stroke z29{down}...z30e...z31e--z32; |
| 913 |
endgroup; |
| 914 |
penlabels(0,1,2,3,4,5,6,7,8,9,10); endchar; |
| 915 |
|
| 916 |
cmchar "Italic Russian letter sha"; |
| 917 |
beginchar("x",15u#,x_height#,0); |
| 918 |
italcorr 1/3x_height#*slant+.5hair#+.5u#; |
| 919 |
adjust_fit(if monospace:-1.5u#,-2u# else: 0,0 fi); pickup fine.nib; |
| 920 |
numeric shaved_stem; shaved_stem=mfudged.stem; |
| 921 |
save stem; stem=shaved_stem; |
| 922 |
pos2(stem,0); x1=x2; |
| 923 |
if monospace: pos1(stem,0); lft x1l=hround(2.5u-.5stem); top y1=h; |
| 924 |
else: x0=0; lft x2l=hround(2.5u-.5stem); |
| 925 |
hook_in(0,a,1); fi % opening hook |
| 926 |
y2-.5stem=-oo; filldraw circ_stroke z2e--z1e; % left stem |
| 927 |
x4+.5stem=hround(.5w+.5stem); ital_arch(2,3,4); % left arch |
| 928 |
pos5(stem,0); y5=y2; x5=x4; |
| 929 |
filldraw circ_stroke z5e--z4e; % middle stem |
| 930 |
x7+.5stem=hround(w-2.5u+.5stem); |
| 931 |
x8=x7-.25u; ital_arch(5,6,7); % right arch |
| 932 |
if monospace: pos9(vair,90); x9=good.x .5[x8,w]; bot y9l=0; y8=1/3h; |
| 933 |
pos8(stem,0); filldraw stroke z8e{-u,-x_height}...{right}z9e; % terminal |
| 934 |
else: x9=w; hook_out(8,b,9)(skewed); fi % closing hook |
| 935 |
filldraw stroke z7e{down}..{-u,-x_height}z8e; % right stem |
| 936 |
x77=.5w; y77=.5h; flip(77); |
| 937 |
math_fit(-2/3x_height#*slant+.5hair#+.5u#,ic#); |
| 938 |
endchar; |
| 939 |
|
| 940 |
cmchar "Italic Russian letter ery"; |
| 941 |
beginchar("y",11u#,x_height#,0); |
| 942 |
italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; |
| 943 |
adjust_fit(u#,0); pickup tiny.nib; w:=6u; |
| 944 |
pos1(stem,0); pos2(stem,0); x1=x2; |
| 945 |
lft x1l=hround(u-.5stem); top y1=h; y2=.6bar_height; |
| 946 |
filldraw stroke z1e--z2e; % stem |
| 947 |
sloped_serif.l(1,2,a,1/3,jut,serif_drop); % serif |
| 948 |
pickup fine.nib; pos2'(stem,-180); pos3(vair,-90); |
| 949 |
pos4(curve,0); pos5(vair,90); pos0(hair,180); |
| 950 |
z0=z2=z2'; x3=x5=.5[x2,x4]; rt x4r=hround(w-u+.5curve); |
| 951 |
bot y3r=-oo; top y5r=1.2bar_height+oo; y4=y2; |
| 952 |
filldraw stroke pulled_arc.e(2',3) & pulled_arc.e(3,4) |
| 953 |
& pulled_arc.e(4,5) & super_arc.e(5,0); % bowl |
| 954 |
w:=11u; |
| 955 |
y11=y1; x11=x1+6.5u; x12=x11; pos11(stem,0); x14=w-.5u; |
| 956 |
hook_out(12,13,14); |
| 957 |
sloped_serif.l(11,12,b,1/3,jut,serif_drop); % serif |
| 958 |
filldraw stroke z11e--z12e; |
| 959 |
math_fit(-.3x_height#*slant+.5curve#-u#,ic#); |
| 960 |
penlabels(0,1,2,3,4,5); endchar; |
| 961 |
|
| 962 |
cmchar "Italic Russian letter ze (looks like reversed epsilon)"; |
| 963 |
beginchar("z",7u#,x_height#,0); |
| 964 |
italcorr if math_fitting:1/3x_height#*slant else:x_height#*slant-u# fi; |
| 965 |
adjust_fit(0,0); pickup fine.nib; w:=8u; |
| 966 |
pos0(flare,0); pos1(hair,0); pos2(vair,90); |
| 967 |
pos33(curve,180); pos34(curve,180); pos4(vair,270); pos5(hair,320); |
| 968 |
x2=x4=.5(w+u); rt x1r=max(rt x2,hround(w-u))+eps; |
| 969 |
lft x33r=hround(1.5u-.5curve); x5r=good.x(w-u-eps); x6=x5; x34=x33; |
| 970 |
y1=.5[bar_height,h]; top y2r=h+oo; bulb(2,1,0); % bulb |
| 971 |
bot y4r=-oo; y33=.25[y2,y4]; y34=.7[y2,y4]; top y5l=vround .5bar_height; y6=bar_height; |
| 972 |
x3=x2; y3=.5[y2,y4]; pos3(hair,270); z3'=z3; pos3'(hair,90); |
| 973 |
path p; p=z4{right}..z5..z6; |
| 974 |
filldraw stroke pulled_arc.e(2,33) & pulled_arc.e(33,3); |
| 975 |
filldraw stroke pulled_arc.e(3',34) & pulled_arc.e(34,4)...{direction 1 of p}z5e; % arc |
| 976 |
x77=x4-.5u; y77=.5h; flip(77); |
| 977 |
math_fit(-.3x_height#*slant+.5curve#-u#,ic#); |
| 978 |
endchar; |
| 979 |
|
| 980 |
cmchar "Italic Russian letter soft sign"; |
| 981 |
beginchar(oct"176",6u#,x_height#,0); |
| 982 |
italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; |
| 983 |
adjust_fit(u#,0); pickup tiny.nib; |
| 984 |
pos1(stem,0); pos2(stem,0); x1=x2; |
| 985 |
lft x1l=hround(u-.5stem); top y1=h; y2=.6bar_height; |
| 986 |
filldraw stroke z1e--z2e; % stem |
| 987 |
sloped_serif.l(1,2,a,1/3,jut,serif_drop); % serif |
| 988 |
pickup fine.nib; pos2'(stem,-180); pos3(vair,-90); |
| 989 |
pos4(curve,0); pos5(vair,90); pos0(hair,180); |
| 990 |
z0=z2=z2'; x3=x5=.5[x2,x4]; rt x4r=hround(w-u+.5curve); |
| 991 |
bot y3r=-oo; top y5r=1.2bar_height+oo; y4=y2; |
| 992 |
filldraw stroke pulled_arc.e(2',3) & pulled_arc.e(3,4) |
| 993 |
& pulled_arc.e(4,5) & super_arc.e(5,0); % bowl |
| 994 |
math_fit(-.3x_height#*slant+.5curve#-u#,ic#); |
| 995 |
endchar; |
| 996 |
|
| 997 |
cmchar "Italic lowercase hard sign"; |
| 998 |
beginchar(oct"177",6u#,x_height#,0); |
| 999 |
italcorr .7x_height#*slant+.5curve#-u# if math_fitting:-.5u# fi; |
| 1000 |
adjust_fit(u#,0); pickup tiny.nib; |
| 1001 |
pos1(hair,0); pos1'(hair,-45); pos2(stem,0); rt x1r=hround(w-u); |
| 1002 |
x1'=x1-.25u; y1'=y1-.75u; |
| 1003 |
lft x2l=hround(u-.5stem); top y1=h; y2=.6bar_height; |
| 1004 |
filldraw stroke z2e{up}...{3,1}z1'e..z1e; % stem |
| 1005 |
pos100(hair,180); pos101(.6[hair,curve],60); pos102(hair,90); |
| 1006 |
z102r=z1r; x100=lft x2l-.5u; y100=.675[y2,y1]; x101=.385[x100,x102]; |
| 1007 |
top y101r=top y102r; |
| 1008 |
filldraw stroke z100e{up}...{5,-1}z101e...{1,1}z102e; % fillip |
| 1009 |
pickup fine.nib; pos2'(stem,-180); pos3(vair,-90); |
| 1010 |
pos4(curve,0); pos5(vair,90); pos0(hair,180); |
| 1011 |
z0=z2=z2'; x3=x5=.5[x2,x4]; rt x4r=hround(w-u+.5curve); |
| 1012 |
bot y3r=-oo; top y5r=1.2bar_height+oo; y4=y2; |
| 1013 |
filldraw stroke pulled_arc.e(2',3) & pulled_arc.e(3,4) |
| 1014 |
& pulled_arc.e(4,5) & super_arc.e(5,0); % bowl |
| 1015 |
endchar; |
| 1016 |
|
| 1017 |
endinput; %%%%%%%%%%%%%%%%%%%% |
| 1018 |
|
| 1019 |
cmchar "Italic Russian letter zhe (alternate to oct"031"); |
| 1020 |
beginchar(oct"226",19u#,x_height#,0); |
| 1021 |
italcorr if math_fitting:1/3x_height#*slant else:x_height#*slant-u# fi; |
| 1022 |
adjust_fit(0,0); pickup fine.nib; |
| 1023 |
w:=8u; |
| 1024 |
pos0(flare,0); pos1(hair,0); pos2(vair,90); |
| 1025 |
pos3(curve,180); pos4(vair,270); pos5(hair,320); |
| 1026 |
x2=x4=.5(w+u); rt x1r=max(rt x2,hround(w-u))+eps; |
| 1027 |
lft x3r=hround(1.5u-.5curve); x5r=good.x(w-eps); x6=x5; |
| 1028 |
y1=.5[bar_height,h]; top y2r=h+oo; bulb(2,1,0); % bulb |
| 1029 |
bot y4r=-oo; y3=.5[y2,y4]; top y5l=vround .5bar_height; y6=bar_height; |
| 1030 |
path p; p=z4{right}..z5..z6; |
| 1031 |
filldraw stroke pulled_arc.e(2,3) |
| 1032 |
& pulled_arc.e(3,4)...{direction 1 of p}z5e; % arc |
| 1033 |
x77=x4; y77=.5h; x78=2x77-x3; %y78=2y77-y3; |
| 1034 |
y78=bar_height; |
| 1035 |
flip(77); w:=19u; |
| 1036 |
pos50(flare,0); pos51(hair,0); pos52(vair,90); |
| 1037 |
pos53(curve,180); pos54(vair,270); pos55(hair,320); |
| 1038 |
x52=x54=w-3.5u; rt x51r=max(rt x52,hround(w-u))+eps; |
| 1039 |
lft x53r=hround(w-6.5u-.5curve); x55r=good.x(w-eps); x56=x55; |
| 1040 |
y51=.5[bar_height,h]; top y52r=h+oo; bulb(52,51,50); % bulb |
| 1041 |
bot y54r=-oo; y53=.5[y52,y54]; top y55l=vround .5bar_height; y56=bar_height; |
| 1042 |
path p; p=z54{right}..z55..z56; |
| 1043 |
filldraw stroke pulled_arc.e(52,53) |
| 1044 |
& pulled_arc.e(53,54)...{direction 1 of p}z55e; % arc |
| 1045 |
x80=x81=.5[x78,x53]; y80=h; y81=0; y79=y78; x79=x53; |
| 1046 |
pos78(hair,90); pos79(hair,90); pos80(stem,0); pos81(stem,0); |
| 1047 |
filldraw stroke z78e--z79e; filldraw stroke z80e--z81e; |
| 1048 |
%addto currentpicture also V shifted(10u,0); |
| 1049 |
endchar; |