home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD2.bin
/
bbs
/
text
/
pastex-1.3-7of9.lha
/
PasTeX
/
MF
/
inputs
/
amsfonts
/
serb.mf
< prev
next >
Wrap
Text File
|
1991-07-03
|
26KB
|
546 lines
%% @metafontfile{
%% filename="serb.mf",
%% version="2.1",
%% date="30-MAY-1991",
%% filetype="Metafont: driver",
%% copyright="Copyright (C) Humanities and Arts Computing Center,
%% University of Washington;
%% all rights reserved. Copying of this file is
%% authorized only if either:
%% (1) you make absolutely no changes to your copy
%% including name; OR
%% (2) if you do make changes, you first rename it to some
%% other name.",
%% author="American Mathematical Society",
%% address="American Mathematical Society,
%% Technical Support Group,
%% P. O. Box 6248,
%% Providence, RI 02940,
%% USA",
%% telephone="401-455-4080 or (in the USA) 800-321-4AMS",
%% email="Internet: Tech-Support@Math.AMS.com",
%% codetable="ISO/ASCII",
%% checksumtype="line count",
%% checksum="546",
%% keywords="amsfonts, tex, metafont , cyrillic ",
%% abstract="This is the driver file for use with
%% the cyrillic fonts in AMSFonts 2.1."
%% }
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%This is serb.mf containing serbian and other letters with offsets
%of 8 between upper and lower case
% The letter "ZHE" is first in this file because it uses the picture "K"
% saved from the end of the previous file.
cmchar "The Russian letter ZHE";
beginchar(oct"021",12u#,cap_height#,0);
italcorr cap_height#*slant+.25u#;
adjust_fit(6u#+cap_serif_fit#,cap_serif_fit#); slantswitch;
pickup tiny.nib; pos1(fudged.cap_stem,0); pos2(fudged.cap_stem,0);
lft x1l=lft x2l=hround max(2u,3u-.5fudged.cap_stem); top y1=h; bot y2=0;
filldraw stroke z1e--z2e; % stem
if serifs: dish_serif(1,2,a,1/3,cap_jut,b,1/3,cap_jut); % upper stem serif
dish_serif(2,1,c,1/3,cap_jut,d,1/3,cap_jut); % lower stem serif
% pickup fine.nib; pos3(vair,90); x3=x1; y3=.55h; z3'=z3; pos3'(slab,90);
pickup fine.nib; pos3(vair,90); x3=x1; y3=.55h; z3'=z3; pos3'(varwid,90);
% pos4(vair,90); x4=w-2u; top y4r=h+oo;
pos4(varwid,90); x4=w-.75flare-.125u; top y4r=h+oo;
% filldraw stroke z3'e{right}..{right}z4e; % upper diagonal
x41=x4; y41=y3'; x42=x4-2u; y42=y4;
filldraw stroke z3'e..controls z41 and z42..z4e; % upper diagonal
pos5(hair,0); pos6(flare,0);
rt x5r=hround(w-.125u); y5+.5flare=vround(top y4r-hair)+1;
top y4'r=top y4r; x4'=x4; pos4'(hair,90);
bulb(4',5,6); % bulb
% pos7(stem,0); pos8(vair,90); pos9(hair,180);
pos7(stem,0); pos8(varwid,90); pos9(hair,180);
x9+.5hair=hround(w+.5hair-eps); y9=1/3x_height;
lft x7l=hround(w-2.75u-.5stem); y7=1/2y3; x8=w-1.2u; bot y8l=-oo;
filldraw stroke z3e{right}...z7e{down}
...z8e{right}...{up}z9e; % lower diagonal
else:
numeric right_jut,stem[],alpha[];
right_jut=.4tiny;
pickup tiny.nib;
stem2=max(tiny.breadth,fudged.cap_stem-3stem_corr);
stem1=max(tiny.breadth,fudged.hair if hefty:-3stem_corr fi);
top y3=h; rt x3r=hround(r-letter_fit-u-right_jut);
bot y6=0; rt x6r=hround(r-letter_fit-.75u-right_jut);
x4=x1; y4=1/3h;
alpha1=diag_ratio(1,.5(stem1-tiny),y3-y4,x3r-x4);
penpos3(alpha1*(stem1-tiny),0); penpos4(whatever,-90);
alpha2=diag_ratio(1,.5(stem2-tiny),y1-y6,x6r-x1);
penpos6(alpha2*(stem2-tiny),0);
forsuffixes $=l,r: y3'$=h; y6'$=0; z4$=z3'$+whatever*(z3-z4);
z5$=z6'$+whatever*(z1-z6)=whatever[z3,z4]; endfor
z5=.5[z5l,z5r];
z3'r=z3r+penoffset z3-z4 of currentpen+whatever*(z3-z4);
% we have also |z3'l=z3l+penoffset z4-z3 of currentpen+whatever*(z3-z4)|;\]
z6'r=z6r+penoffset z1-z6 of currentpen+whatever*(z1-z6);
z6'l=z6l+penoffset z6-z1 of currentpen+whatever*(z1-z6);
fill z4r--diag_end(4r,3'r,1,.5,3'l,4l)--z4l--cycle; % upper diagonal
fill z5l--diag_end(5l,6'l,.5,1,6'r,5r)--z5r--cycle; % lower diagonal
fi
picture V; %transform t;
%t=identity reflectedabout(z1,z2);
%V=currentpicture transformed t;
%addto currentpicture also V;
mirror(x1);
addto currentpicture also K_pic;
% !!!!! note that this requires K_pic be set as current by previous K definition
%
picture K_pic; %release resources held by K_pic
endchar;
cmchar "The Serbian letter Soft N (looks like Hb)";
beginchar(oct"000",19u#,cap_height#,0);
italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#);
adjust_fit(cap_serif_fit#,0);
w:=13u;
pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0);
pos3(cap_stem,0); pos4(cap_stem,0);
lft x1l=lft x2l=hround max(2u,3u-.5cap_stem); x3=x4=w-x1;
top y1=top y3=h; bot y2=bot y4=0;
filldraw stroke z1e--z2e; % left stem
filldraw stroke z3e--z4e; % right stem
penpos5(cap_bar,90); penpos6(cap_bar,90);
x5=x1; x6=x3; y5=y6=.52h;
fill stroke z5e--z6e; % bar
if serifs: numeric inner_jut;
if rt x1r+cap_jut+.5u+1<=lft x3l-cap_jut: inner_jut=cap_jut;
else: rt x1r+inner_jut+.5u+1=lft x3l-inner_jut; fi
dish_serif(1,2,a,1/3,cap_jut,b,1/3,inner_jut); % upper left serif
dish_serif(2,1,c,1/3,cap_jut,d,1/3,inner_jut); % lower left serif
dish_serif(3,4,e,1/3,inner_jut,f,1/3,cap_jut); % upper rt serif
nodish_serif(4,3,g,1/3,inner_jut,h,1/3,cap_jut); fi % lower rt serif
% now the b part
w:=19u; numeric middle_weight;
middle_weight=if serifs: .6vair+.5 else: cap_bar fi;
z88=z6; penpos88(middle_weight,90); penpos89(middle_weight,90);
y89=y88; x89=x91= if serifs: .5[x3,w-1.5u]+.5u else: .5[x3,w-2.5u] +.5u fi;
numeric right_curve;
if serifs: right_curve=cap_curve-stem_corr;
else: right_curve=cap_curve-3stem_corr; fi
x89l:=x89-.25u; penpos90(right_curve,0); y90=.5[y89,y91]; x90r=hround(w-u);
bot y92r=0; x92=x4; penpos92(cap_band,-90); y91=y92; penpos91(cap_band,-90);
filldraw stroke z88e..super_arc.e(89,90)&super_arc.e(90,91)..z92e;
math_fit(0,.5ic#); penlabels(1,2,3,4,5,6); endchar;
cmchar "The Serbian letter Soft L";
beginchar(oct"001",19u#,cap_height#,0);
adjust_fit(0,0); w:=13u;
pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0);
lft x1l=lft x2l=hround(w-3u); top y1=h; bot y2=0;
filldraw stroke z1e--z2e;
if serifs:
numeric inner_jut; inner_jut=.5(x1-x5);
x4=u+.5dot_size; x3=x4+.5dot_size; bot y3r=0; pos3(1.5cap_hair,-90);
x5=.42[x4,x1]; top y5=h; pos5(1.5cap_hair,0); pos4(dot_size,-180);
pos10(hair,-180);
filldraw stroke z3e{right}...{up}z5e;
y4=dot_size; bulb(3,10,4);
nodish_serif(2,1,a,1/3,cap_jut,b,1/3,cap_jut);
nodish_serif(1,2,c,1/3,inner_jut,d,1/3,cap_jut);
% pickup crisp.nib;
top y6=h; x6-.75cap_jut=rt x1r; pos6(slab,90);
x5'+.5cap_jut=lft x5l; top y5'=h; pos5'(slab,90);
% filldraw stroke z5'e--z6e;
x9=x5; bot y9=0; pos9(cap_hair,0);
nodish_serif(5,9,aa,1/3,cap_jut,ab,1/3,inner_jut); % upper left serif
else:
x5r=hround u; bot y5r=vround(.06h-o); bot y4r=-o; x4r=.35[x5,x3r];
x3=x5+3flare; top y3=h; lft x3'=lft x3l; top y3'r=h; rt x1'r=rt x1r;
top y1'r=h; pos3'(slab,90); pos1'(slab,90); pos5(flare,-120); pos4(vair,-90);
pos3(hair,0);
filldraw stroke z5e...{right}z4e...{up}z3e;
filldraw stroke z3'e--z1'e;
fi
% now the b part
w:=19u; numeric middle_weight; middle_weight=.6vair+.5;
x88=x1; y88=.52h; penpos88(middle_weight,90); penpos89(middle_weight,90);
y89=y88; x89=x91= if serifs: .5[x1,w-1.5u]+.5u else: .5[x1,w-2.5u] +.5u fi;
numeric right_curve;
if serifs: right_curve=cap_curve-stem_corr; else: right_curve=cap_curve-3stem_corr; fi
x89l:=x89-.25u; penpos90(right_curve,0); y90=.5[y89,y91]; x90r=hround(w-u);
x92=x2; bot y92r=0; penpos92(cap_band,-90); y91=y92; penpos91(cap_band,-90);
filldraw stroke z88e..super_arc.e(89,90)&super_arc.e(90,91)..z92e;
endchar;
cmchar "The Serbian letter Hard DJ";
beginchar(oct"002",13u#+width_adj#,cap_height#,if serifs: 1.75cap_stem#
else: .5desc_depth# fi);
italcorr cap_height#*slant-cap_serif_fit#+cap_jut#-2.5u#+min(.5cap_stem#,u#);
adjust_fit(cap_serif_fit#,cap_serif_fit#);
pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0);
pos3(cap_stem,0); pos4(cap_stem,0);
lft x1l=lft x2l=hround max(2u,3u-.5cap_stem); x3=x4=w-x1;
top y1=top y3=h; bot y2=bot y4=0;
filldraw stroke z1e--z2e; % left stem
filldraw stroke z3e--z4e; % right stem
if serifs: numeric inner_jut;
if rt x1r+cap_jut+.5u+1<=lft x3l-cap_jut: inner_jut=cap_jut;
else: rt x1r+inner_jut+.5u+1=lft x3l-inner_jut; fi
dish_serif(1,2,c,1/3,cap_jut,d,1/3,inner_jut); % u