home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 8
/
FreshFishVol8-CD2.bin
/
bbs
/
text
/
pastex-1.3-7of9.lha
/
PasTeX
/
MF
/
inputs
/
dc
/
dxrueast.mf
< prev
next >
Wrap
Text File
|
1994-04-12
|
46KB
|
1,056 lines
% This is DXRUEAST.MF in text format, as of March 24, 1992
%
% DC fonts Version 1.1 (prerelease of EC fonts)
%
% [ heavily borrowed from the Computer Modern Roman family of
% fonts by D. E. Knuth ]
%
% Content:
%
% uppercase accented letters (common to roman and italic fonts)
%
% "eastern part"
%
% oct"200" .. oct"235"
%
%
% Roman uppercase accents
%
% oct"200" A with breve
% oct"201" A with ogonek
% oct"202" C with acute
% oct"203" C with hacek
% oct"204" D with hacek
% oct"205" E with hacek
% oct"206" E with ogonek
% oct"207" G with breve
%
% oct"210" L with acute
% oct"211" L with komma
% oct"212" L with (polnisches L)
% oct"213" N with acute
% oct"214" N with hacek
% oct"215" the letter eng
% oct"216" O with ungarian umlauts
% oct"217" R with acute
%
% oct"220" R with hacek
% oct"221" S with acute
% oct"222" S with hacek
% oct"223" S with cedille
% oct"224" T with hacek
% oct"225" T with cedille
% oct"226" U with hungarian umlauts
% oct"227" U with circ
%
% oct"230" Y with umlauts
% oct"231" Z with acute
% oct"232" Z with hacek
% oct"233" Z with dot
% oct"234" IJ
% oct"235" I with dot
%
dcchar "The letter breve A";
beginchar(oct"200",13u#,cap_height#+acc_height#,0);
adjust_fit(cap_serif_fit#,cap_serif_fit#);
numeric left_stem,right_stem,outer_jut,alpha;
right_stem=cap_stem-stem_corr;
left_stem=min(cap_hair if hefty: -3stem_corr fi,right_stem);
outer_jut=.8cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.5u; y1=y4=0;
x2-x1=x4-x3; x3r=x2r+apex_corr; y2=y3=cap_height+apex_o+apex_oo;
alpha=diag_ratio(2,left_stem,y2-y1,x4r-x1l-apex_corr);
penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0);
penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0);
z0=whatever[z1r,z2r]=whatever[z3l,z4l];
if y0<cap_height-cap_notch_cut: y0:=cap_height-cap_notch_cut;
fill z0+.5right{down}...{z4-z3}diag_end(3l,4l,1,1,4r,3r)
--diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1}
...{up}z0+.5left--cycle; % left and right diagonals
else: fill z0--diag_end(0,4l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l)
--diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals
penpos5(whatever,angle(z2-z1)); z5=whatever[z1,z2];
penpos6(whatever,angle(z3-z4)); z6=whatever[z3,z4]; y6=y5;
if hefty: y5r else: y5 fi =5/12y0;
y5r-y5l=y6r-y6l=cap_band; penstroke z5e--z6e; % bar line
if serifs: numeric inner_jut; pickup tiny.nib;
prime_points_inside(1,2); prime_points_inside(4,3);
if rt x1'r+cap_jut+.5u+1<=lft x4'l-cap_jut: inner_jut=cap_jut;
else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi
dish_serif(1',2,a,1/2,outer_jut,b,.6,inner_jut)(dark); % left serif
dish_serif(4',3,c,1/2,inner_jut,d,1/3,outer_jut); fi % right serif
% the accent
uppercase_breve(x2,0,12,13,14);
penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14); endchar;
dcchar "The letter ogonek A";
beginchar(oct"201",13u#,cap_height#,0.875desc_depth#);
adjust_fit(cap_serif_fit#,cap_serif_fit#);
numeric left_stem,right_stem,outer_jut,alpha;
right_stem=cap_stem-stem_corr;
left_stem=min(cap_hair if hefty: -3stem_corr fi,right_stem);
outer_jut=.8cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.5u; y1=y4=0;
x2-x1=x4-x3; x3r=x2r+apex_corr; y2=y3=cap_height+apex_o+apex_oo;
alpha=diag_ratio(2,left_stem,y2-y1,x4r-x1l-apex_corr);
penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0);
penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0);
z0=whatever[z1r,z2r]=whatever[z3l,z4l];
if y0<cap_height-cap_notch_cut: y0:=cap_height-cap_notch_cut;
fill z0+.5right{down}...{z4-z3}diag_end(3l,4l,1,1,4r,3r)
--diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1}
...{up}z0+.5left--cycle; % left and right diagonals
else: fill z0--diag_end(0,4l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l)
--diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals
penpos5(whatever,angle(z2-z1)); z5=whatever[z1,z2];
penpos6(whatever,angle(z3-z4)); z6=whatever[z3,z4]; y6=y5;
if hefty: y5r else: y5 fi =5/12y0;
y5r-y5l=y6r-y6l=cap_band; penstroke z5e--z6e; % bar line
if serifs: numeric inner_jut; pickup tiny.nib;
prime_points_inside(1,2); prime_points_inside(4,3);
if rt x1'r+cap_jut+.5u+1<=lft x4'l-cap_jut: inner_jut=cap_jut;
else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi
dish_serif(1',2,a,1/2,outer_jut,b,.6,inner_jut)(dark); % left serif
dish_serif(4',3,c,1/2,inner_jut,d,1/3,outer_jut); fi % right serif
% the accent
ogon_one := 12;
ogon_two := 13;
ogon_three := 14;
if serifs:
x[ogon_one]r=x4r+outer_jut;
else:
x[ogon_one]r=x4r;
fi
pickup crisp.nib;
pos[ogon_one](
if currentbreadth<0.9vair: 0.9vair else: currentbreadth + eps fi ,-60);
pos[ogon_two](stem,0);
pos[ogon_three](vair,145);
x[ogon_two]=x[ogon_one]-2.5u;
x[ogon_three]=x[ogon_one]+0.5u;
bot y[ogon_one]r = 0;
bot y[ogon_three]=0.5(-d-o); %0.4
bot y[ogon_two]=0.5(-d-o);
filldraw stroke z[ogon_one]e{dir 225}...
z[ogon_two]e{dir -110}...{dir 60}z[ogon_three]e; % hook
penlabels(0,1,2,3,4,5,6,7,8,9,10,11,grave_one,grave_two); endchar;
dcchar "The letter acute C";
if serifs: beginchar(oct"202",13u#,cap_height#+acc_height#,0);
italcorr cap_height#*slant-.5u#;
adjust_fit(0,0);
pickup fine.nib; pos1(cap_hair,0); pos2(cap_band,90);
pos3(cap_curve,180); pos4(cap_band,270); pos5(hair,360);
rt x1r=rt x5r=hround(w-u); lft x3r=hround u; x2=x4=.55[x3,x1];
top y2r=cap_height+o; bot y4r=-o; y3=.5[y2,y4];
bot y1=min(vround max(.6cap_height,x_height-.5vair),bot y2l-eps);
y5=max(good.y .95(cap_height-y1),y4l+eps);
(x2l',y2l)=whatever[z2r,z1l]; x2l:=min(x2l',x2l+.5u);
(x4l',y4l)=whatever[z4r,z5l]; x4l:=min(x4l',x4l+.5u);
filldraw stroke z1e{x2-x1,10(y2-y1)}
...pulled_arc.e(2,3) & pulled_arc.e(3,4)...{up}z5e; % arc
pos6(.3[fine.breadth,cap_hair],0); x6r=x1r; top y6=cap_height+o;
x1r-x1'=2cap_curve-fine; y1'=y1;
path upper_arc; upper_arc=z1{x2-x1,10(y2-y1)}..z2{left};
numeric t; t=xpart(upper_arc intersectiontimes (z6l--z1'));
filldraw z1r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % barb
else: beginchar(oct"202",11.5u#,cap_height#+acc_height#,0);
italcorr cap_height#*slant-.5u#;
adjust_fit(0,0);
pickup fine.nib; pos1(1.2flare,80); pos2(slab,90);
pos3(cap_curve,180); pos4(slab,270); pos5(flare,275);
rt x1r=hround(w-1.1u); x2=x4=.5w+1.25u;
lft x3r=hround max(u,2u-.5cap_curve); rt x5r=hround(w-.9u);
top y1r=vround .95cap_height+o; top y2r=cap_height+o; y3=.5cap_height;
bot y4r=-o; bot y5r=vround .08cap_height-o; y5l:=good.y y5l; x5l:=good.x x5l;
filldraw stroke rterm.e(2,1,right,.9,4) & super_arc.e(2,3)
& super_arc.e(3,4) & term.e(4,5,right,.8,4); fi % arc and terminals
% the accent
uppercase_acute(0,0,7,8);
penlabels(1,1',2,3,4,5,6,7,8,9,10,11); endchar;
dcchar "The letter hachek C";
if serifs: beginchar(oct"203",13u#,cap_height#+acc_height#,0);
italcorr cap_height#*slant-.5u#;
adjust_fit(0,0);
pickup fine.nib; pos1(cap_hair,0); pos2(cap_band,90);
pos3(cap_curve,180); pos4(cap_band,270); pos5(hair,360);
rt x1r=rt x5r=hround(w-u); lft x3r=hround u; x2=x4=.55[x3,x1];
top y2r=cap_height+o; bot y4r=-o; y3=.5[y2,y4];
bot y1=min(vround max(.6cap_height,x_height-.5vair),bot y2l-eps);
y5=max(good.y .95(cap_height-y1),y4l+eps);
(x2l',y2l)=whatever[z2r,z1l]; x2l:=min(x2l',x2l+.5u);
(x4l',y4l)=whatever[z4r,z5l]; x4l:=min(x4l',x4l+.5u);
filldraw stroke z1e{x2-x1,10(y2-y1)}
...pulled_arc.e(2,3) & pulled_arc.e(3,4)...{up}z5e; % arc
pos6(.3[fine.breadth,cap_hair],0); x6r=x1r; top y6=cap_height+o;
x1r-x1'=2cap_curve-fine; y1'=y1;
path upper_arc; upper_arc=z1{x2-x1,10(y2-y1)}..z2{left};
numeric t; t=xpart(upper_arc intersectiontimes (z6l--z1'));
filldraw z1r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % barb
else: beginchar(oct"203",11.5u#,cap_height#+acc_height#,0);
italcorr cap_height#*slant-.5u#;
adjust_fit(0,0);
pickup fine.nib; pos1(1.2flare,80); pos2(slab,90);
pos3(cap_curve,180); pos4(slab,270); pos5(flare,275);
rt x1r=hround(w-1.1u); x2=x4=.5w+1.25u;
lft x3r=hround max(u,2u-.5cap_curve); rt x5r=hround(w-.9u)