Debian Codegraph @

texmf-dist/fonts/source/public/amsfonts/cyrillic/cyrspu.mf

raw
1 %% filename: cyrspu.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 % cyrspu Uppercase forms having distinct lowercase forms
26 % including O
27
28 cmchar "The Russian letter A";
29 beginchar("A",13u#,cap_height#,0);
30 adjust_fit(cap_serif_fit#,cap_serif_fit#);
31 numeric left_stem,right_stem,outer_jut,alpha;
32 right_stem=cap_stem-stem_corr;
33 left_stem=min(cap_hair if hefty: -3stem_corr fi,right_stem);
34 outer_jut=.8cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.5u; y1=y4=0;
35 x2-x1=x4-x3; x3r=x2r+apex_corr; y2=y3=h+apex_o+apex_oo;
36 alpha=diag_ratio(2,left_stem,y2-y1,x4r-x1l-apex_corr);
37 penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0);
38 penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0);
39 z0=whatever[z1r,z2r]=whatever[z3l,z4l];
40 if y0<h-cap_notch_cut: y0:=h-cap_notch_cut;
41 fill z0+.5right{down}...{z4-z3}diag_end(3l,4l,1,1,4r,3r)
42 --diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1}
43 ...{up}z0+.5left--cycle; % left and right diagonals
44 else: fill z0--diag_end(0,4l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l)
45 --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals
46 penpos5(whatever,angle(z2-z1)); z5=whatever[z1,z2];
47 penpos6(whatever,angle(z3-z4)); z6=whatever[z3,z4]; y6=y5;
48 if hefty: y5r else: y5 fi =5/12y0;
49 y5r-y5l=y6r-y6l=cap_band; penstroke z5e--z6e; % bar line
50 if serifs: numeric inner_jut; pickup tiny.nib;
51 prime_points_inside(1,2); prime_points_inside(4,3);
52 if rt x1'r+cap_jut+.5u+1<=lft x4'l-cap_jut: inner_jut=cap_jut;
53 else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi
54 dish_serif(1',2,a,1/2,outer_jut,b,.6,inner_jut)(dark); % left serif
55 dish_serif(4',3,c,1/2,inner_jut,d,1/3,outer_jut); fi % right serif
56 penlabels(0,1,2,3,4,5,6); endchar;
57
58 cmchar "The Russian letter B";
59 beginchar("B",12.5u#,cap_height#,0);
60 italcorr .75cap_height#*slant-.5u#;
61 adjust_fit(cap_serif_fit#,0);
62 numeric left_stem,right_curve,middle_weight;
63 left_stem=cap_stem-hround 2stem_corr; middle_weight=.6vair+.5;
64 h:=vround(h-stem_corr);
65 pickup tiny.nib; pos1(left_stem,0); pos2(left_stem,0);
66 lft x1l=lft x2l=hround max(2u,3u-.5left_stem); top y1=h; bot y2=0;
67 filldraw stroke z1e--z2e; % stem
68 pickup crisp.nib;
69 top y3r=h; x3=x1; pos3(slab,90);
70 rt x45r=hround(w-2u); y45=good.y(y3l-beak) - eps; pos45(hair,0);
71 arm(3,45,e,beak_darkness,beak_jut);
72 pickup tiny.nib;
73 penpos4(cap_band,90);
74 penpos6(middle_weight,-90); penpos7(middle_weight,-90);
75 penpos8(middle_weight,90); penpos9(middle_weight,90);
76 penpos5(right_curve-stem_corr,0); penpos10(right_curve,0);
77 penpos11(cap_band,-90); penpos12(cap_band,-90);
78 y4=y3; y5=.5[y4,y6]; y6=y7; y7l-y8l=vair;
79 z12r=bot z2; y11=y12; y10=.5[y11,y9]; y8=y9; .5[y7l,y8l]=.52h;
80 x4=x6; x9=x11=x4+.5u; x7=x8=x1; x9l:=x4+.25u;
81 x5r=hround(w-1.5u); x10r=hround(w-u);
82 if serifs: right_curve=cap_curve-stem_corr; x4=.5[x1,w-1.5u];
83 else: right_curve=cap_curve-3stem_corr; x4=.5[x1,w-2.5u];
84 x4l:=x4l-.5u; x9l:=x9l-.5u; fi
85 x6l:=x6l-.5u; x11l:=x11l-.5u;
86 fill stroke z8e..super_arc.e(9,10) & super_arc.e(10,11)..z12e; % lower lobe
87 if serifs: nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif
88 nodish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); fi % lower serif
89 math_fit(0,.5ic#); penlabels(1,2,3,4,5,6,7,8,9,10,11,12); endchar;
90
91 cmchar "The Russian letter E";
92 beginchar("E",12u#-width_adj#,cap_height#,0);
93 italcorr cap_height#*slant-beak_jut#-.5u#;
94 adjust_fit(cap_serif_fit#,0);
95 h:=vround(h-stem_corr);
96 pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0);
97 lft x1l=lft x2l=hround max(2u,3u-.5cap_stem); top y1=h; bot y2=0;
98 filldraw stroke z1e--z2e; % stem
99 pickup crisp.nib; pos3(slab,90); pos4(hair,0);
100 top y3r=h; x3=x1; rt x4r=hround(w-u); y4=good.y(y3l-beak)-eps;
101 arm(3,4,e,beak_darkness,beak_jut); % upper arm and beak
102 pos5(cap_bar,-90); pos6(hair,0);
103 top y5l=vround(.52[y2,y1]+.5cap_bar); x5=x1;
104 pos0(cap_bar,90); pos7(hair,0);
105 z0=z5; x6=x7; y6-y5l=y0l-y7;
106 if serifs: rt x6r=hround(w-4.4u+.5hair); y6=good.y(y5l+.6beak)+eps;
107 rt x9r=hround(w-.5u);
108 else: rt x6r=hround(w-1.5u); y6=y5l+eps; rt x9r=hround(w-.75u); fi
109 arm(5,6,f,beak_darkness,0); arm(0,7,g,beak_darkness,0); % middle arm and serif
110 pos8(slab if not serifs:+2stem_corr fi,-90); pos9(hair,0);
111 bot y8r=0; x8=x2; y9=good.y(y8l+7/6beak)+eps;
112 arm(8,9,h,beak_darkness,1.5beak_jut); % lower arm and beak
113 if serifs: nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif
114 nodish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); fi % lower serif
115 math_fit(0,.5ic#); penlabels(0,1,2,3,4,5,6,7,8,9); endchar;
116
117 cmchar "The Russian letter EF (looks like Phi)";
118 beginchar("F",13u#,cap_height#,0);
119 italcorr .5cap_height#*slant-.5u#;
120 adjust_fit(0,0);
121 numeric shaved_stem,light_curve;
122 shaved_stem=cap_stem-hround 2stem_corr;
123 light_curve=cap_curve-hround stem_corr;
124 pickup tiny.nib; pos1(shaved_stem,0); pos2(shaved_stem,0);
125 %lft x1l=lft x2l=hround(.5w-.5cap_stem);
126 x1=x2=.5w;
127 top y1=h; bot y2=0;
128 filldraw stroke z1e--z2e; % stem
129 penpos3(vair,90); penpos5(vair,-90);
130 penpos4(light_curve,180); penpos6(light_curve,0);
131 x4r=hround u; x6r=w-x4r; x3=x5=.5w;
132 y3r=vround(.85h if serifs:-slab fi); y4=y6=.5[y3,y5];
133 y5r=vround(.15h if serifs:+slab fi);
134 penstroke pulled_arc.e(3,4) & pulled_arc.e(4,5)
135 & pulled_arc.e(5,6) & pulled_arc.e(6,3) & cycle; % bowl
136 if serifs: dish_serif(1,2,a,1/3,1.25cap_jut,b,1/3,1.25cap_jut); % upper serif
137 dish_serif(2,1,c,1/3,1.25cap_jut,d,1/3,1.25cap_jut); fi % lower serif
138 math_fit(-.5cap_height#*slant-.5u#,ic#); penlabels(1,2,3,4,5,6); endchar;
139
140 cmchar "The Serbian letter JE";
141 beginchar("J",9u#,cap_height#,0);
142 italcorr cap_height#*slant-cap_serif_fit#
143 +.75cap_jut#-2.5u#+min(.5cap_stem#,u#);
144 adjust_fit(0,cap_serif_fit#);
145 pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0);
146 top y1=h; rt x1r=hround(w-2u); x2=x1; y2=.21h;
147 if serifs: pos3(vair,-90); pos4(cap_hair,-180);
148 pos5(flare+(cap_stem-stem),-180);
149 bot y3r=-o; x3=.5[x4,x2]; y5=1/6h; rt x5l=hround 2.75u; z5r=z4r;
150 filldraw stroke z1e--z2e&super_arc.e(2,3); % stem and arc
151 dish_serif(1,2,a,1/3,1.3cap_jut,b,1/3,.75cap_jut); % serif
152 bulb(3,4,5); % bulb
153 else: filldraw stroke z1e--z2e; % stem
154 pickup fine.nib; pos3(cap_stem',0); z3=z2;
155 pos4(flare,angle(6.5u,-h)); pos5(1.1flare,-100);
156 bot y4r=-o; x4r=.5[x5r,x3r]; lft x5r=hround.75u; bot y5r=vround.06h-o;
157 filldraw stroke z3e{down}....term.e(4,5,left,1,4); fi % arc and terminal
158 math_fit(0,.5ic#-.5u#); penlabels(1,2,3,4,5); endchar;
159
160 cmchar "The Russian letter O";
161 beginchar("O",14u#-width_adj#,cap_height#,0);
162 italcorr .7cap_height#*slant-.5u#;
163 adjust_fit(0,0);
164 penpos1(vair',90); penpos3(vround(vair+1.5vair_corr),-90);
165 penpos2(cap_curve,180); penpos4(cap_curve,0);
166 if monospace: x2r=hround 1.5u;
167 interim superness:=sqrt superness; % make |"O"|, not |"0"|
168 else: x2r=hround u; fi
169 x4r=w-x2r; x1=x3=.5w; y1r=h+o; y3r=-o;
170 y2=y4=.5h-vair_corr; y2l:=y4l:=.52h;
171 penstroke pulled_super_arc.e(1,2)(.5superpull)
172 & pulled_super_arc.e(2,3)(.5superpull)
173 & pulled_super_arc.e(3,4)(.5superpull)
174 & pulled_super_arc.e(4,1)(.5superpull) & cycle; % bowl
175 math_fit(-.3cap_height#*slant-.5u#,ic#-.5u#); penlabels(1,2,3,4); endchar;
176
177 cmchar "The Russian letter ER (looks like P)";
178 beginchar("R",12u#,cap_height#,0);
179 italcorr .75cap_height#*slant-.5u#;
180 adjust_fit(cap_serif_fit#,0);
181 pickup tiny.nib; penpos1(cap_stem'-tiny,0); penpos2(cap_stem-tiny,0);
182 pos0(cap_stem',0); pos0'(cap_stem,0);
183 lft x1l=hround max(2u,3u-.5cap_stem'); top y1=h; bot y2=0;
184 x1l=x2l=x0l=x0'l; y0=y0'=y7;
185 penpos3(cap_band,90); penpos4(cap_band,90);
186 penpos5(cap_curve if hefty:-3stem_corr fi,0);
187 penpos6(.5[vair,cap_band],-90); penpos7(.5[vair,cap_band],-90);
188 z3r=top z1; y4=y3; y5=.5[y4l,y6l]; y6=y7;
189 x7=x2; y7l=vround .5h; x4=x6=.5w+.75u; x5r=hround(w-u);
190 x4l:=x6l:=x4-.25cap_curve;
191 filldraw stroke z1e--z0e--z0'e--z2e; % stem
192 fill stroke z3e..pulled_arc.e(4,5) & pulled_arc.e(5,6)..z7e; % lobe
193 if serifs: nodish_serif(1,0,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif
194 dish_serif(2,0',c,1/3,cap_jut,d,1/3,cap_jut); fi % lower serif
195 math_fit(0,ic#-2.5u#); penlabels(0,1,2,3,4,5,6,7); endchar;
196
197 cmchar "The Russian letter ES (looks like C)";
198 if serifs: beginchar("S",13u#,cap_height#,0);
199 italcorr cap_height#*slant-.5u#;
200 adjust_fit(0,0);
201 pickup fine.nib; pos1(cap_hair,0); pos2(cap_band,90);
202 pos3(cap_curve,180); pos4(cap_band,270); pos5(hair,360);
203 rt x1r=rt x5r=hround(w-u); lft x3r=hround u; x2=x4=.55[x3,x1];
204 top y2r=h+o; bot y4r=-o; y3=.5[y2,y4];
205 bot y1=min(vround max(.6h,x_height-.5vair),bot y2l-eps);
206 y5=max(good.y .95(h-y1),y4l+eps);
207 (x2l',y2l)=whatever[z2r,z1l]; x2l:=min(x2l',x2l+.5u);
208 (x4l',y4l)=whatever[z4r,z5l]; x4l:=min(x4l',x4l+.5u);
209 filldraw stroke z1e{x2-x1,10(y2-y1)}
210 ...pulled_arc.e(2,3) & pulled_arc.e(3,4)...{up}z5e; % arc
211 pos6(.3[fine.breadth,cap_hair],0); x6r=x1r; top y6=h+o;
212 x1r-x1'=2cap_curve-fine; y1'=y1;
213 path upper_arc; upper_arc=z1{x2-x1,10(y2-y1)}..z2{left};
214 numeric t; t=xpart(upper_arc intersectiontimes (z6l--z1'));
215 filldraw z1r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % barb
216 else: beginchar("S",11.5u#,cap_height#,0);
217 italcorr cap_height#*slant-.5u#;
218 adjust_fit(0,0);
219 pickup fine.nib; pos1(1.2flare,80); pos2(slab,90);
220 pos3(cap_curve,180); pos4(slab,270); pos5(flare,275);
221 rt x1r=hround(w-1.1u); x2=x4=.5w+1.25u;
222 lft x3r=hround max(u,2u-.5cap_curve); rt x5r=hround(w-.9u);
223 top y1r=vround .95h+o; top y2r=h+o; y3=.5h;
224 bot y4r=-o; bot y5r=vround .08h-o; y5l:=good.y y5l; x5l:=good.x x5l;
225 filldraw stroke rterm.e(2,1,right,.9,4) & super_arc.e(2,3)
226 & super_arc.e(3,4) & term.e(4,5,right,.8,4); fi % arc and terminals
227 math_fit(-.3cap_height#*slant-.5u#,.5ic#);
228 penlabels(1,1',2,3,4,5,6); endchar;
229
230 cmchar "The Russian letter U (looks like Y)";
231 beginchar("U",if serifs:13.5u# else:13u# fi,cap_height#,0);
232 italcorr x_height#*slant+.25u#;
233 adjust_fit(serif_fit# if monospace:+\\.5u#,.5u#+ else:,fi\\ serif_fit#);
234 numeric left_stem,right_stem,bot_stem,bot_vair,outer_jut;
235 left_stem=cap_stem-stem_corr;
236 right_stem=1.25cap_hair if hefty:-2stem_corr fi;
237 bot_stem=1.25cap_hair if hefty:-8stem_corr fi;
238 bot_vair=Vround(if serifs: vair else:.5[vair,bot_stem] fi);
239 outer_jut=.75cap_jut;
240 x1l=w-x4r=l+letter_fit+outer_jut+.25u; y1=y4r=h; y2=y3=.3h; x2l=x3l;
241 numeric alpha,alpha[]; x9=3u; y9=bot_vair-oo;
242 alpha1=diag_ratio(2,bot_stem,y1-y3,x4r-x1l-apex_corr);
243 alpha2=diag_ratio(1,bot_stem,y1-y9,x4r-x9);
244 if alpha1<alpha2: x2l-x1l=x4r-x3r+apex_corr; alpha=alpha1;
245 else: alpha=alpha2; z3l=whatever[z9,z4r-(alpha*bot_stem,0)]; fi
246 penpos3(alpha*bot_stem,0); penpos4(alpha*right_stem,0);
247 alpha3=(y1++(x2l-x1l))/y1;
248 penpos1(alpha3*left_stem,0); penpos2(alpha3*left_stem,0);
249 z0=whatever[z1r,z2r]=z4l+whatever*(z3r-z4r);
250 if y0>cap_notch_cut+y2: y0:=cap_notch_cut+y2; % +y2 added for sanserif face
251 fill z0+.5right{up}...{z4r-z3r}diag_end(0,4l,1,1,4r,3r)
252 --z3r--z2l--diag_end(2l,1l,1,1,1r,2r){z2-z1}
253 ...{down}z0+.5left--cycle; % left and right diagonals
254 else: fill z0--diag_end(0,4l,1,1,4r,3r)--z3r--z2l
255 --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals
256 penpos5(alpha*bot_stem,0); z5r=whatever[z3r,z4r]; y5+.5vair=.65y2;
257 if serifs: numeric light_bulb; light_bulb=hround 1.1[hair,flare]; clearpen; %7/8[hair,flare]
258 penpos6(vair,-90); penpos7(hair,-180); penpos8(light_bulb,-180);
259 x6=.4[x8,x5]; y6r=-oo; y8-.5light_bulb=.5y2; x8r=hround 1.35u;
260 fill stroke z3e---z5e...{left}z6e; bulb(6,7,8); % arc and bulb
261 numeric inner_jut; pickup tiny.nib;
262 prime_points_inside(1,2); prime_points_inside(4,3);
263 if rt x1'r+jut+.5u+1<=lft x4'l-jut: inner_jut=jut;
264 else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi
265 dish_serif(1',2,a,1/3,outer_jut,b,1/2,inner_jut); % left serif
266 dish_serif(4',3,c,.6,inner_jut,d,1/2,outer_jut)(dark); % right serif
267 else: penpos6(bot_vair,-90); x6=2.5u; y6r=-oo;
268 fill stroke z3e---z5e...{left}z6e; % arc
269 pickup fine.nib; pos6'(bot_vair,-90); z6'=z6;
270 pos7(2/3[bot_vair,flare],-85);
271 lft x7l=hround u; bot y7r=vround-oo; y7l:=good.y y7l;
272 filldraw stroke term.e(6',7,left,1,4); fi % arc and terminal
273 penlabels(0,1,2,3,4,5,6,7,8,9); endchar;