home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fonts 1 / freshfonts1.bin / bbs / programs / amiga / metafont.lha / MF / INPUTS / DC / dxrueast.mf < prev    next >
Text File  |  1994-04-12  |  46KB  |  1,056 lines

  1. % This is DXRUEAST.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 accented letters (common to roman and italic fonts)
  11. %
  12. %   "eastern part"
  13. %
  14. %   oct"200" .. oct"235"
  15. %
  16. %
  17. %   Roman uppercase accents
  18. %
  19. %       oct"200"    A  with breve
  20. %       oct"201"    A  with ogonek
  21. %       oct"202"    C  with acute
  22. %       oct"203"    C  with hacek
  23. %       oct"204"    D  with hacek
  24. %       oct"205"    E  with hacek
  25. %       oct"206"    E  with ogonek
  26. %       oct"207"    G  with breve
  27. %
  28. %       oct"210"    L  with acute
  29. %       oct"211"    L  with komma
  30. %       oct"212"    L  with (polnisches L)
  31. %       oct"213"    N  with acute
  32. %       oct"214"    N  with hacek
  33. %       oct"215"    the letter eng
  34. %       oct"216"    O  with ungarian umlauts
  35. %       oct"217"    R  with acute
  36. %
  37. %       oct"220"    R  with hacek
  38. %       oct"221"    S  with acute
  39. %       oct"222"    S  with hacek
  40. %       oct"223"    S  with cedille
  41. %       oct"224"    T  with hacek
  42. %       oct"225"    T  with cedille
  43. %       oct"226"    U  with hungarian umlauts
  44. %       oct"227"    U  with circ
  45. %
  46. %       oct"230"    Y with  umlauts
  47. %       oct"231"    Z with  acute
  48. %       oct"232"    Z with  hacek
  49. %       oct"233"    Z with  dot
  50. %       oct"234"    IJ
  51. %       oct"235"    I with  dot
  52. %
  53.  
  54.  
  55. dcchar "The letter breve A";
  56. beginchar(oct"200",13u#,cap_height#+acc_height#,0);
  57. adjust_fit(cap_serif_fit#,cap_serif_fit#);
  58. numeric left_stem,right_stem,outer_jut,alpha;
  59. right_stem=cap_stem-stem_corr;
  60. left_stem=min(cap_hair if hefty: -3stem_corr fi,right_stem);
  61. outer_jut=.8cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.5u; y1=y4=0;
  62. x2-x1=x4-x3; x3r=x2r+apex_corr; y2=y3=cap_height+apex_o+apex_oo;
  63. alpha=diag_ratio(2,left_stem,y2-y1,x4r-x1l-apex_corr);
  64. penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0);
  65. penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0);
  66. z0=whatever[z1r,z2r]=whatever[z3l,z4l];
  67. if y0<cap_height-cap_notch_cut: y0:=cap_height-cap_notch_cut;
  68.  fill z0+.5right{down}...{z4-z3}diag_end(3l,4l,1,1,4r,3r)
  69.   --diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1}
  70.   ...{up}z0+.5left--cycle; % left and right diagonals
  71. else: fill z0--diag_end(0,4l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l)
  72.   --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals
  73. penpos5(whatever,angle(z2-z1)); z5=whatever[z1,z2];
  74. penpos6(whatever,angle(z3-z4)); z6=whatever[z3,z4]; y6=y5;
  75. if hefty: y5r else: y5 fi =5/12y0;
  76. y5r-y5l=y6r-y6l=cap_band; penstroke z5e--z6e; % bar line
  77. if serifs: numeric inner_jut; pickup tiny.nib;
  78.  prime_points_inside(1,2); prime_points_inside(4,3);
  79.  if rt x1'r+cap_jut+.5u+1<=lft x4'l-cap_jut: inner_jut=cap_jut;
  80.  else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi
  81.  dish_serif(1',2,a,1/2,outer_jut,b,.6,inner_jut)(dark);  % left serif
  82.  dish_serif(4',3,c,1/2,inner_jut,d,1/3,outer_jut); fi  % right serif
  83. % the accent
  84. uppercase_breve(x2,0,12,13,14);
  85. penlabels(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14); endchar;
  86.  
  87.  
  88. dcchar "The letter ogonek A";
  89. beginchar(oct"201",13u#,cap_height#,0.875desc_depth#);
  90. adjust_fit(cap_serif_fit#,cap_serif_fit#);
  91. numeric left_stem,right_stem,outer_jut,alpha;
  92. right_stem=cap_stem-stem_corr;
  93. left_stem=min(cap_hair if hefty: -3stem_corr fi,right_stem);
  94. outer_jut=.8cap_jut; x1l=w-x4r=l+letter_fit+outer_jut+.5u; y1=y4=0;
  95. x2-x1=x4-x3; x3r=x2r+apex_corr; y2=y3=cap_height+apex_o+apex_oo;
  96. alpha=diag_ratio(2,left_stem,y2-y1,x4r-x1l-apex_corr);
  97. penpos1(alpha*left_stem,0); penpos2(alpha*left_stem,0);
  98. penpos3(alpha*right_stem,0); penpos4(alpha*right_stem,0);
  99. z0=whatever[z1r,z2r]=whatever[z3l,z4l];
  100. if y0<cap_height-cap_notch_cut: y0:=cap_height-cap_notch_cut;
  101.  fill z0+.5right{down}...{z4-z3}diag_end(3l,4l,1,1,4r,3r)
  102.   --diag_end(4r,3r,1,1,2l,1l)--diag_end(2l,1l,1,1,1r,2r){z2-z1}
  103.   ...{up}z0+.5left--cycle; % left and right diagonals
  104. else: fill z0--diag_end(0,4l,1,1,4r,3r)--diag_end(4r,3r,1,1,2l,1l)
  105.   --diag_end(2l,1l,1,1,1r,0)--cycle; fi % left and right diagonals
  106. penpos5(whatever,angle(z2-z1)); z5=whatever[z1,z2];
  107. penpos6(whatever,angle(z3-z4)); z6=whatever[z3,z4]; y6=y5;
  108. if hefty: y5r else: y5 fi =5/12y0;
  109. y5r-y5l=y6r-y6l=cap_band; penstroke z5e--z6e; % bar line
  110. if serifs: numeric inner_jut; pickup tiny.nib;
  111.  prime_points_inside(1,2); prime_points_inside(4,3);
  112.  if rt x1'r+cap_jut+.5u+1<=lft x4'l-cap_jut: inner_jut=cap_jut;
  113.  else: rt x1'r+inner_jut+.5u+1=lft x4'l-inner_jut; fi
  114.  dish_serif(1',2,a,1/2,outer_jut,b,.6,inner_jut)(dark);  % left serif
  115.  dish_serif(4',3,c,1/2,inner_jut,d,1/3,outer_jut); fi  % right serif
  116. % the accent
  117. ogon_one   := 12;
  118. ogon_two   := 13;
  119. ogon_three := 14;
  120. if serifs:
  121.  x[ogon_one]r=x4r+outer_jut;
  122. else:
  123.  x[ogon_one]r=x4r;
  124. fi
  125.  pickup crisp.nib;
  126.  pos[ogon_one](
  127.  if currentbreadth<0.9vair: 0.9vair else: currentbreadth + eps fi ,-60);
  128.  pos[ogon_two](stem,0);
  129.  pos[ogon_three](vair,145);
  130.  x[ogon_two]=x[ogon_one]-2.5u;
  131.  x[ogon_three]=x[ogon_one]+0.5u;
  132.  bot y[ogon_one]r = 0;
  133.  bot y[ogon_three]=0.5(-d-o);  %0.4
  134.  bot y[ogon_two]=0.5(-d-o);
  135.  filldraw stroke z[ogon_one]e{dir 225}...
  136.    z[ogon_two]e{dir -110}...{dir 60}z[ogon_three]e;  % hook
  137. penlabels(0,1,2,3,4,5,6,7,8,9,10,11,grave_one,grave_two); endchar;
  138.  
  139.  
  140. dcchar "The letter acute  C";
  141. if serifs: beginchar(oct"202",13u#,cap_height#+acc_height#,0);
  142.  italcorr cap_height#*slant-.5u#;
  143.  adjust_fit(0,0);
  144.  pickup fine.nib; pos1(cap_hair,0); pos2(cap_band,90);
  145.  pos3(cap_curve,180); pos4(cap_band,270); pos5(hair,360);
  146.  rt x1r=rt x5r=hround(w-u); lft x3r=hround u; x2=x4=.55[x3,x1];
  147.  top y2r=cap_height+o; bot y4r=-o; y3=.5[y2,y4];
  148.  bot y1=min(vround max(.6cap_height,x_height-.5vair),bot y2l-eps);
  149.  y5=max(good.y .95(cap_height-y1),y4l+eps);
  150.  (x2l',y2l)=whatever[z2r,z1l]; x2l:=min(x2l',x2l+.5u);
  151.  (x4l',y4l)=whatever[z4r,z5l]; x4l:=min(x4l',x4l+.5u);
  152.  filldraw stroke z1e{x2-x1,10(y2-y1)}
  153.   ...pulled_arc.e(2,3) & pulled_arc.e(3,4)...{up}z5e; % arc
  154.  pos6(.3[fine.breadth,cap_hair],0); x6r=x1r; top y6=cap_height+o;
  155.  x1r-x1'=2cap_curve-fine; y1'=y1;
  156.  path upper_arc; upper_arc=z1{x2-x1,10(y2-y1)}..z2{left};
  157.  numeric t; t=xpart(upper_arc intersectiontimes (z6l--z1'));
  158.  filldraw z1r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % barb
  159. else: beginchar(oct"202",11.5u#,cap_height#+acc_height#,0);
  160.  italcorr cap_height#*slant-.5u#;
  161.  adjust_fit(0,0);
  162.  pickup fine.nib; pos1(1.2flare,80); pos2(slab,90);
  163.  pos3(cap_curve,180); pos4(slab,270); pos5(flare,275);
  164.  rt x1r=hround(w-1.1u); x2=x4=.5w+1.25u;
  165.  lft x3r=hround max(u,2u-.5cap_curve); rt x5r=hround(w-.9u);
  166.  top y1r=vround .95cap_height+o; top y2r=cap_height+o; y3=.5cap_height;
  167.  bot y4r=-o; bot y5r=vround .08cap_height-o; y5l:=good.y y5l; x5l:=good.x x5l;
  168.  filldraw stroke rterm.e(2,1,right,.9,4) & super_arc.e(2,3)
  169.   & super_arc.e(3,4) & term.e(4,5,right,.8,4); fi % arc and terminals
  170. % the accent
  171. uppercase_acute(0,0,7,8);
  172. penlabels(1,1',2,3,4,5,6,7,8,9,10,11); endchar;
  173.  
  174. dcchar "The letter hachek  C";
  175. if serifs: beginchar(oct"203",13u#,cap_height#+acc_height#,0);
  176.  italcorr cap_height#*slant-.5u#;
  177.  adjust_fit(0,0);
  178.  pickup fine.nib; pos1(cap_hair,0); pos2(cap_band,90);
  179.  pos3(cap_curve,180); pos4(cap_band,270); pos5(hair,360);
  180.  rt x1r=rt x5r=hround(w-u); lft x3r=hround u; x2=x4=.55[x3,x1];
  181.  top y2r=cap_height+o; bot y4r=-o; y3=.5[y2,y4];
  182.  bot y1=min(vround max(.6cap_height,x_height-.5vair),bot y2l-eps);
  183.  y5=max(good.y .95(cap_height-y1),y4l+eps);
  184.  (x2l',y2l)=whatever[z2r,z1l]; x2l:=min(x2l',x2l+.5u);
  185.  (x4l',y4l)=whatever[z4r,z5l]; x4l:=min(x4l',x4l+.5u);
  186.  filldraw stroke z1e{x2-x1,10(y2-y1)}
  187.   ...pulled_arc.e(2,3) & pulled_arc.e(3,4)...{up}z5e; % arc
  188.  pos6(.3[fine.breadth,cap_hair],0); x6r=x1r; top y6=cap_height+o;
  189.  x1r-x1'=2cap_curve-fine; y1'=y1;
  190.  path upper_arc; upper_arc=z1{x2-x1,10(y2-y1)}..z2{left};
  191.  numeric t; t=xpart(upper_arc intersectiontimes (z6l--z1'));
  192.  filldraw z1r--z6r--z6l--subpath(t,0) of upper_arc--cycle; % barb
  193. else: beginchar(oct"203",11.5u#,cap_height#+acc_height#,0);
  194.  italcorr cap_height#*slant-.5u#;
  195.  adjust_fit(0,0);
  196.  pickup fine.nib; pos1(1.2flare,80); pos2(slab,90);
  197.  pos3(cap_curve,180); pos4(slab,270); pos5(flare,275);
  198.  rt x1r=hround(w-1.1u); x2=x4=.5w+1.25u;
  199.  lft x3r=hround max(u,2u-.5cap_curve); rt x5r=hround(w-.9u)