home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD2.bin / bbs / text / pastex-1.3-7of9.lha / PasTeX / MF / inputs / dc / dxrulett.mf < prev    next >
Text File  |  1994-04-12  |  35KB  |  744 lines

  1. % This is DXRULETT.MF in text format, as of March 24, 1992
  2. %
  3. % DC fonts Version 1.1 (prerelease of EC fonts)
  4. %
  5. %          [ heavily borrowed from the Computer Modern Roman family of
  6. %            fonts by D. E. Knuth ]
  7. %
  8. % Content:
  9. %
  10. %  uppercase letters A to Z
  11. %
  12.  
  13. dcchar "The letter A";
  14. beginchar("A",13u#,cap_height#,0);
  15. adjust_fit(cap_serif_fit#,cap_serif_fit#);
  16. numeric left_stem,right_stem,outer_jut,alpha;
  17. right_stem=cap_stem-stem_corr;
  18. left_stem=min(cap_hair if hefty: -3stem_corr fi,right_stem);
  19. outer_jut=.8cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.5u; y1=y4=0;
  20. x2-x1=x4-x3; x3r=x2r+apex_corr; y2=y3=h+apex_o+apex_oo;
  21. alpha=diag_ratio(2,left_stem,y2-y1,x4r-x1l-apex_corr);
  22. penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0);
  23. penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0);
  24. z0=whatever[z1r,z2r]=whatever[z3l,z4l];
  25. if y0<h-cap_notch_cut: y0:=h-cap_notch_cut;
  26.  fill z0+.5right{down}...{z4-z3}diag_end(3l,4l,1,1,4r,3r)
  27.   --diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1}
  28.   ...{up}z0+.5left--cycle; % left and right diagonals
  29. else: fill z0--diag_end(0,4l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l)
  30.   --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals
  31. penpos5(whatever,angle(z2-z1)); z5=whatever[z1,z2];
  32. penpos6(whatever,angle(z3-z4)); z6=whatever[z3,z4]; y6=y5;
  33. if hefty: y5r else: y5 fi =5/12y0;
  34. y5r-y5l=y6r-y6l=cap_band; penstroke z5e--z6e; % bar line
  35. if serifs: numeric inner_jut; pickup tiny.nib;
  36.  prime_points_inside(1,2); prime_points_inside(4,3);
  37.  if rt x1'r+cap_jut+.5u+1<=lft x4'l-cap_jut: inner_jut=cap_jut;
  38.  else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi
  39.  dish_serif(1',2,a,1/2,outer_jut,b,.6,inner_jut)(dark);  % left serif
  40.  dish_serif(4',3,c,1/2,inner_jut,d,1/3,outer_jut); fi  % right serif
  41. penlabels(0,1,2,3,4,5,6); endchar;
  42.  
  43. dcchar "The letter B";
  44. beginchar("B",12.5u#,cap_height#,0);
  45. italcorr .75cap_height#*slant-.5u#;
  46. adjust_fit(cap_serif_fit#,0);
  47. numeric left_stem,right_curve,middle_weight;
  48. left_stem=cap_stem-hround 2stem_corr; middle_weight=.6vair+.5;
  49. pickup tiny.nib; pos1(left_stem,0); pos2(left_stem,0);
  50. lft x1l=lft x2l=hround max(2u,3u-.5left_stem); top y1=h; bot y2=0;
  51. filldraw stroke z1e--z2e; % stem
  52. penpos3(cap_band,90); penpos4(cap_band,90);
  53. penpos6(middle_weight,-90); penpos7(middle_weight,-90);
  54. penpos8(middle_weight,90); penpos9(middle_weight,90);
  55. penpos5(right_curve-stem_corr,0); penpos10(right_curve,0);
  56. penpos11(cap_band,-90); penpos12(cap_band,-90);
  57. z3r=top z1; y4=y3; y5=.5[y4,y6]; y6=y7; y7l-y8l=vair;
  58. z12r=bot z2; y11=y12; y10=.5[y11,y9]; y8=y9; .5[y7l,y8l]=.52h;
  59. x4=x6; x9=x11=x4+.5u; x7=x8=x1; x9l:=x4+.25u;
  60. x5r=hround(w-1.5u); x10r=hround(w-u);
  61. if serifs: right_curve=cap_curve-stem_corr; x4=.5[x1,w-1.5u];
  62. else: right_curve=cap_curve-3stem_corr; x4=.5[x1,w-2.5u];
  63.  x4l:=x4l-.5u; x9l:=x9l-.5u; fi
  64. x6l:=x6l-.5u; x11l:=x11l-.5u;
  65. fill stroke z3e..super_arc.e(4,5) & super_arc.e(5,6)..z7e;  % upper lobe
  66. fill stroke z8e..super_arc.e(9,10) & super_arc.e(10,11)..z12e;  % lower lobe
  67. if serifs: nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut);  % upper serif
  68.  nodish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); fi  % lower serif
  69. math_fit(0,.5ic#); penlabels(1,2,3,4,5,6,7,8,9,10,11,12); endchar;
  70.  
  71. dcchar "The letter C";
  72. if serifs: beginchar("C",13u#,cap_height#,0);
  73.  italcorr cap_height#*slant-.5u#;
  74.  adjust_fit(0,0);
  75.  pickup fine.nib; pos1(cap_hair,0); pos2(cap_band,90);
  76.  pos3(cap_curve,180); pos4(cap_band,270); pos5(hair,360);
  77.  rt x1r=rt x5r=hround(w-u); lft x3r=hround u; x2=x4=.55[x3,x1];
  78.  top y2r=h+o; bot y4r=-o; y3=.5[y2,y4];
  79.  bot y1=min(vround max(.6h,x_height-.5vair),bot y2l-eps);
  80.  y5=max(good.y .95(h-y1),y4l+eps);
  81.  (x2l',y2l)=whatever[z2r,z1l]; x2l:=min(x2l',x2l+.5u);
  82.  (x4l',y4l)=whatever[z4r,z5l]; x4l:=min(x4l',x4l+.5u);
  83.  filldraw stroke z1e{x2-x1,10(y2-y1)}
  84.   ...pulled_arc.e(2,3) & pulled_arc.e(3,4)...{up}z5e; % arc
  85.  pos6(.3[fine.breadth,cap_hair],0); x6r=x1r; top y6=h+o;
  86.  x1r-x1'=2cap_curve-fine; y1'=y1;
  87.  path upper_arc; upper_arc=z1{x2-x1,10(y2-y1)}..z2{left};
  88.  numeric t; t=xpart(upper_arc intersectiontimes (z6l--z1'));
  89.  filldraw z1r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % barb
  90. else: beginchar("C",11.5u#,cap_height#,0);
  91.  italcorr cap_height#*slant-.5u#;
  92.  adjust_fit(0,0);
  93.  pickup fine.nib; pos1(1.2flare,80); pos2(slab,90);
  94.  pos3(cap_curve,180); pos4(slab,270); pos5(flare,275);
  95.  rt x1r=hround(w-1.1u); x2=x4=.5w+1.25u;
  96.  lft x3r=hround max(u,2u-.5cap_curve); rt x5r=hround(w-.9u);
  97.  top y1r=vround .95h+o; top y2r=h+o; y3=.5h;
  98.  bot y4r=-o; bot y5r=vround .08h-o; y5l:=good.y y5l; x5l:=good.x x5l;
  99.  filldraw stroke rterm.e(2,1,right,.9,4) & super_arc.e(2,3)
  100.   & super_arc.e(3,4) & term.e(4,5,right,.8,4); fi % arc and terminals
  101. math_fit(-.3cap_height#*slant-.5u#,.5ic#);
  102. penlabels(1,1',2,3,4,5,6); endchar;
  103.  
  104. dcchar "The letter D";
  105. beginchar("D",13.5u#,cap_height#,0);
  106. italcorr .7cap_height#*slant-.5u#;
  107. adjust_fit(cap_serif_fit#,0);
  108. pickup tiny.nib; pos1(cap_stem',0); pos2(cap_stem',0);
  109. lft x1l=lft x2l=hround max(2u,3u-.5cap_stem'); top y1=h; bot y2=0;
  110. filldraw stroke z1e--z2e; % stem
  111. penpos3(cap_band,90); penpos4(cap_band,90);
  112. penpos5(cap_curve-stem_corr,0);
  113. penpos6(cap_band,-90); penpos7(cap_band,-90);
  114. z3r=top z1; y4=y3; y5=.51[y4,y6]; y6=y7;
  115. z7r=bot z2; x4=x6=.5w+.25u; x5r=hround(w-u);
  116. x4l:=x6l:=x4-.25cap_curve;
  117. fill stroke z3e..pulled_arc.e(4,5) & pulled_arc.e(5,6)..z7e;  % lobe
  118. if serifs: nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut);  % upper serif
  119.  nodish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); fi  % lower serif
  120. math_fit(0,ic#-.5u#); penlabels(1,2,3,4,5,6,7); endchar;
  121.  
  122. dcchar "The letter E";
  123. beginchar("E",12u#-width_adj#,cap_height#,0);
  124. italcorr cap_height#*slant-beak_jut#-.5u#;
  125. adjust_fit(cap_serif_fit#,0);
  126. h:=vround(h-stem_corr);
  127. pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0);
  128. lft x1l=lft x2l=hround max(2u,3u-.5cap_stem); top y1=h; bot y2=0;
  129. filldraw stroke z1e--z2e; % stem
  130. pickup crisp.nib; pos3(slab,90); pos4(hair,0);
  131. top y3r=h; x3=x1; rt x4r=hround(w-u); y4=good.y(y3l-beak)-eps;
  132. arm(3,4,e,beak_darkness,beak_jut);  % upper arm and beak
  133. pos5(cap_bar,-90); pos6(hair,0);
  134. top y5l=vround(.52[y2,y1]+.5cap_bar); x5=x1;
  135. pos0(cap_bar,90); pos7(hair,0);
  136. z0=z5; x6=x7; y6-y5l=y0l-y7;
  137. if serifs: rt x6r=hround(w-4.4u+.5hair); y6=good.y(y5l+.6beak)+eps;
  138.  rt x9r=hround(w-.5u);
  139. else: rt x6r=hround(w-1.5u); y6=y5l+eps; rt x9r=hround(w-.75u); fi
  140. arm(5,6,f,beak_darkness,0); arm(0,7,g,beak_darkness,0);  % middle arm and serif
  141. pos8(slab if not serifs:+2stem_corr fi,-90); pos9(hair,0);
  142. bot y8r=0; x8=x2; y9=good.y(y8l+7/6beak)+eps;
  143. arm(8,9,h,beak_darkness,1.5beak_jut);  % lower arm and beak
  144. if serifs: nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut);  % upper serif
  145.  nodish_serif(2,1,c,1/3,cap_jut,d,1/3,.5cap_jut); fi  % lower serif
  146. math_fit(0,.5ic#); penlabels(0,1,2,3,4,5,6,7,8,9); endchar;
  147.  
  148. dcchar "The letter F";
  149. beginchar("F",11.5u#-width_adj#,cap_height#,0);
  150. italcorr cap_height#*slant-beak_jut#-.25u#;
  151. adjust_fit(cap_serif_fit#,0);
  152. h:=vround(h-stem_corr);
  153. pickup tiny.nib; pos1(cap_stem,0); pos2(cap_stem,0);
  154. lft x1l=lft x2l=hround max(2u,3u-.5cap_stem); top y1=h; bot y2=0;
  155. filldraw stroke z1e--z2e; % stem
  156. pickup crisp.nib; pos3(slab,90); pos4(hair,0);
  157. top y3r=h; x3=x1; rt x4r=hround(w-.75u); y4=good.y(y3l-beak)-eps;
  158. arm(3,4,e,beak_darkness,beak_jut);  % upper arm and beak
  159. pos5(cap_bar,-90); pos6(hair,0);
  160. top y5l=vround(.5[y2,y1]+.5cap_bar); x5=x1;
  161. pos0(cap_bar,90); pos7(hair,0);
  162. z0=z5; x6=x7; y6-y5l=y0l-y7;
  163. if serifs: rt x6r=hround(w-4u+.5hair); y6=good.y(y5l+.6beak)+eps;
  164.  rt x9r=hround(w-.5u);
  165. else: rt x6r=hround(w-1.5u); y6=y5l+eps; rt x9r=hround(w-.75u); fi
  166. arm(5,6,f,beak_darkness,0); arm(0,7,g,beak_darkness,0);  % middle arm and serif
  167. if serifs: nodish_serif(1,2,a,1/3,cap_jut,b,1/3,.5cap_jut);  % upper serif
  168.  dish_serif(2,1,c,1/3,cap_jut,d,1/3,1.25cap_jut); fi  % lower serif
  169. math_fit(0,ic#-2.5u#); penlabels(0,1,2,3,4,5,6,7,8,9); endchar;
  170.  
  171. dcchar "The letter G";
  172. if serifs: beginchar("G",14u#,cap_height#,0);
  173.  italcorr cap_height#*slant-1.5u#-.5cap_serif_fit#;
  174.  adjust_fit(0,.5cap_serif_fit#);
  175.  pickup tiny.nib; pos0(cap_stem,0); pos7(cap_stem,0);
  176.  rt x0r=hround(w-2u); y0=good.y(.1[bar_height,x_height]+1); x7=x0;
  177.  pickup fine.nib;
  178.  if hefty: bot y7=0; pos5(cap_stem,0); x5=x0; top y5=tiny.top y0;
  179.  else: pos5(cap_hair