| 1 |
%% filename: serbspu.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 |
%This is serbspu.mf containing serbian and other letters with offsets |
| 26 |
%of 8 between upper and lower case. |
| 27 |
%spu = separate upper and lower case. |
| 28 |
|
| 29 |
cmchar "The Ukrainian letter I"; |
| 30 |
beginchar(oct"004",max(6u#,4u#+cap_stem#),cap_height#,0); |
| 31 |
italcorr cap_height#*slant-.25u#; |
| 32 |
adjust_fit(cap_serif_fit#,cap_serif_fit#); |
| 33 |
pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); |
| 34 |
lft x1l=lft x2l=hround(.5w-.5cap_stem); top y1=h; bot y2=0; |
| 35 |
filldraw stroke z1e--z2e; % stem |
| 36 |
if serifs: dish_serif(1,2,a,1/3,1.05cap_jut,b,1/3,1.05cap_jut); % upper serif |
| 37 |
dish_serif(2,1,c,1/3,1.05cap_jut,d,1/3,1.05cap_jut); fi % lower serif |
| 38 |
math_fit(0,.5ic#); penlabels(1,2); endchar; |
| 39 |
|
| 40 |
cmchar "The Serbian letter Soft DJ (looks like Th with a tail)"; |
| 41 |
beginchar(oct"006",15.5u#-width_adj#,cap_height#,0); |
| 42 |
italcorr cap_height#*slant-beak_jut#-.25u#; |
| 43 |
adjust_fit(0,0); |
| 44 |
% c part |
| 45 |
h:=x_height; w:=6.5u; |
| 46 |
pickup fine.nib; pos2(vair',90); pos4(vair',270); |
| 47 |
x2=x4=.5(w+u); top y2r=vround h; bot y4r=0; |
| 48 |
pos3(curve,180); lft x3r=hround max(.6u,1.35u-.5curve); y3=.5h; |
| 49 |
if serifs: pos1(hair,0); pos0(flare,0); |
| 50 |
y1=min(bar_height+.5flare+2vair'+2,.9[bar_height,h]-.5flare); |
| 51 |
rt x1r=hround(w-.7u); bulb(2,1,0); % bulb |
| 52 |
pos5(hair,0); lft x5l=w+1.5u; %rt x5r=hround(w+1.5u); |
| 53 |
% y5=max(good.y(.5bar_height-.9),y4l+vair'); |
| 54 |
y5=.875y3; |
| 55 |
(x,y4l)=whatever[z4r,z5l]; x4l:=min(x,x4l+.5u); |
| 56 |
filldraw stroke pulled_super_arc.e(2,3)(.7superpull) |
| 57 |
& pulled_super_arc.e(3,4)(.5superpull) |
| 58 |
& pulled_super_arc.e(4,5)(.5superpull); |
| 59 |
% ..tension .9 and 1..{x5-x4,5(y5-y4)}z5e; % arc and lower terminal |
| 60 |
else: pos1(4/7[vair',flare],80); |
| 61 |
rt x1r=hround(w-.6u); top y1r=vround .82[bar_height,top y2r]; |
| 62 |
filldraw stroke term.e(2,1,right,.8,4); % upper terminal |
| 63 |
%pos5(.6[vair',flare],275); |
| 64 |
pos5(.6[vair',flare],360); |
| 65 |
lft x5l=w+1.5u; %rt x5r=hround(w-.5u); |
| 66 |
% y5r=good.y(y5r+1/3bar_height-y5); y5l:=good.y y5l; x5l:=good.x x5l; |
| 67 |
y5=.625y3; |
| 68 |
% forsuffixes e=l,r: path p.e; p.e=z4e{right}..tension .9 and 1..z5e; |
| 69 |
% if angle direction 1 of p.e>75: |
| 70 |
% p.e:=z4e{right}..tension atleast.9 and 1..{dir 75}z5e; fi endfor |
| 71 |
filldraw stroke pulled_super_arc.e(2,3)(.7superpull) |
| 72 |
& pulled_super_arc.e(3,4)(.5superpull) |
| 73 |
& pulled_super_arc.e(4,5)(.5superpull); fi |
| 74 |
%& p.e; fi % arc and lower terminal |
| 75 |
x99=.5w; y99=.5h; flip(99); |
| 76 |
currentpicture:=nullpicture; clearxy; |
| 77 |
% T part |
| 78 |
h:=vround(cap_height-2stem_corr); w:=13u; |
| 79 |
pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); |
| 80 |
lft x1l=lft x2l=hround(.5w-.5cap_stem); top y1=h; bot y2=0; |
| 81 |
filldraw stroke z1e--z2e; % stem |
| 82 |
pickup crisp.nib; pos3(slab,90); pos4(hair,0); |
| 83 |
top y3r=h; x3=x1; rt x4r=hround(w-.65u); y4=good.y(y3l-.5beak)-eps; |
| 84 |
arm(3,4,e,beak_darkness,.7beak_jut); % right arm and beak |
| 85 |
pos5(hair,180); x5=w-x4; y5=y4; |
| 86 |
arm(3,5,f,beak_darkness,-.7beak_jut); % left arm and beak |
| 87 |
if serifs: dish_serif(2,1,c,1/3,1.414cap_jut,d,1/3,cap_jut); % lower serif |
| 88 |
nodish_serif(1,2,a,1/3,.5cap_jut,b,1/3,.325cap_jut); fi % upper bracketing |
| 89 |
addto currentpicture also V shifted(x2r+1.5u,0); |
| 90 |
math_fit(-.75cap_height#*slant,ic#-2.5u#); penlabels(1,2,3,4,5,6); endchar; |
| 91 |
|
| 92 |
cmchar "The Serbian letter Soft T"; |
| 93 |
beginchar(oct"007",13u#,cap_height#,0); |
| 94 |
italcorr cap_height#*slant-beak_jut#-.25u#; |
| 95 |
adjust_fit(0,.75u#); |
| 96 |
h:=vround(h-2stem_corr); |
| 97 |
pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); |
| 98 |
lft x1l=lft x2l=hround(.5w-.5cap_stem-u); top y1=h; bot y2=0; |
| 99 |
filldraw stroke z1e--z2e; % stem |
| 100 |
pickup crisp.nib; pos3(slab,90); pos4(hair,0); |
| 101 |
top y3r=h; x3=x1; rt x4r=hround(w-1.65u); y4=good.y(y3l-.5beak)-eps; |
| 102 |
arm(3,4,e,beak_darkness,.7beak_jut); % right arm and beak |
| 103 |
pos5(hair,180); x5=w-x4-u; y5=y4; |
| 104 |
arm(3,5,f,beak_darkness,-.7beak_jut); % left arm and beak |
| 105 |
if serifs: dish_serif(2,1,c,1/3,cap_jut,d,1/3,.75cap_jut); % lower serif |
| 106 |
nodish_serif(1,2,a,1/3,.5cap_jut,b,1/3,.5cap_jut); fi % upper bracketing |
| 107 |
pickup tiny.nib; |
| 108 |
pos33(stem,0); x33=hround(w-2.5u+.5stem); |
| 109 |
h_stroke(2,q,33,34); |
| 110 |
dish_serif(34,33,g,1/3,.75cap_jut,h,1/3,.75cap_jut); |
| 111 |
math_fit(-.75cap_height#*slant,ic#-2.5u#); |
| 112 |
penlabels(1,2,3,4,5,6,33,34); endchar; |
| 113 |
|
| 114 |
cmchar "The Russian letter YO (looks like E umlaut)"; |
| 115 |
beginchar(oct"023",12u#-width_adj#,cap_height#,0); |
| 116 |
% note height not adjusted for umlaut |
| 117 |
italcorr cap_height#*slant-beak_jut#-.5u#; |
| 118 |
adjust_fit(cap_serif_fit#,0); |
| 119 |
h:=vround(h-stem_corr); |
| 120 |
pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0); |
| 121 |
lft x1l=lft x2l=hround max(2u,3u-.5cap_stem); top y1=h; bot y2=0; |
| 122 |
filldraw stroke z1e--z2e; % stem |
| 123 |
pickup crisp.nib; pos3(slab,90); pos4(hair,0); |
| 124 |
top y3r=h; x3=x1; rt x4r=hround(w-u); y4=good.y(y3l-beak)-eps; |
| 125 |
arm(3,4,e,beak_darkness,beak_jut); % upper arm and beak |
| 126 |
pos5(cap_bar,-90); pos6(hair,0); |
| 127 |
top y5l=vround(.52[y2,y1]+.5cap_bar); x5=x1; |
| 128 |
pos0(cap_bar,90); pos7(hair,0); |
| 129 |
z0=z5; x6=x7; y6-y5l=y0l-y7; |
| 130 |
if serifs: rt x6r=hround(w-4.4u+.5hair); y6=good.y(y5l+.6beak)+eps; |
| 131 |
rt x9r=hround(w-.5u); |
| 132 |
else: rt x6r=hround(w-1.5u); y6=y5l+eps; rt x9r=hround(w-.75u); fi |
| 133 |
arm(5,6,f,beak_darkness,0); arm(0,7,g,beak_darkness,0); % middle arm and serif |
| 134 |
pos8(slab if not serifs:+2stem_corr fi,-90); pos9(hair,0); |
| 135 |
bot y8r=0; x8=x2; y9=good.y(y8l+7/6beak)+eps; |
| 136 |
arm(8,9,h,beak_darkness,1.5beak_jut); % lower arm and beak |
| 137 |
if serifs: nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut); % upper serif |
| 138 |
nodish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); fi % lower serif |
| 139 |
x51=.5w; y51=h; umlaut(51,q); |
| 140 |
math_fit(0,.5ic#); penlabels(0,1,2,3,4,5,6,7,8,9); endchar; |
| 141 |
|
| 142 |
cmchar "The Old Russian letter YATZ"; |
| 143 |
beginchar(oct"043",12.5u#,body_height#,0); |
| 144 |
italcorr .75cap_height#*slant-.5u#; |
| 145 |
adjust_fit(2u#+cap_serif_fit#,0); |
| 146 |
numeric left_stem,right_curve,middle_weight; |
| 147 |
left_stem=cap_stem-hround 2stem_corr; middle_weight=.6vair+.5; |
| 148 |
pickup tiny.nib; pos1(left_stem,0); pos2(left_stem,0); |
| 149 |
lft x1l=lft x2l=hround max(2u,3u-.5left_stem); top y1=h; bot y2=0; |
| 150 |
filldraw stroke z1e--z2e; % stem |
| 151 |
penpos3(cap_band,90); penpos4(cap_band,90); |
| 152 |
penpos6(middle_weight,-90); penpos7(middle_weight,-90); |
| 153 |
penpos8(middle_weight,90); penpos9(middle_weight,90); |
| 154 |
penpos5(right_curve-stem_corr,0); penpos10(right_curve,0); |
| 155 |
penpos11(cap_band,-90); penpos12(cap_band,-90); |
| 156 |
z3r=top z1; y4=y3; y5=.5[y4,y6]; y6=y7; y7l-y8l=vair; |
| 157 |
z12r=bot z2; y11=y12; y10=.5[y11,y9]; y8=y9; .5[y7l,y8l]=.52h; |
| 158 |
x4=x6; x9=x11=x4+.5u; x7=x8=x1; x9l:=x4+.25u; |
| 159 |
x5r=hround(w-1.5u); x10r=hround(w-u); |
| 160 |
if serifs: right_curve=cap_curve-stem_corr; x4=.5[x1,w-1.5u]; |
| 161 |
else: right_curve=cap_curve-3stem_corr; x4=.5[x1,w-2.5u]; |
| 162 |
x4l:=x4l-.5u; x9l:=x9l-.5u; fi |
| 163 |
x6l:=x6l-.5u; x11l:=x11l-.5u; |
| 164 |
fill stroke z8e..super_arc.e(9,10) & super_arc.e(10,11)..z12e; % lower lobe |
| 165 |
if serifs: dish_serif(1,2,a,1/3,cap_jut,b,1/3,cap_jut); % upper serif |
| 166 |
nodish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); fi % lower serif |
| 167 |
pos53(slab,90); pos54(hair,0); |
| 168 |
top y53r=.85h; x53=x1; rt x54r=hround(w-2.65u); y54=good.y(y53l-.5beak)-eps; |
| 169 |
arm(53,54,m,beak_darkness,.7beak_jut); % right arm and beak |
| 170 |
pos55(hair,180); x55=w-x54-4u; y55=y54; |
| 171 |
arm(53,55,p,beak_darkness,-.7beak_jut); % left arm and beak |
| 172 |
math_fit(0,.5ic#); penlabels(1,2,3,4,5,6,7,8,9,10,11,12); endchar; |