home *** CD-ROM | disk | FTP | other *** search
/ Atari FTP / ATARI_FTP_0693.zip / ATARI_FTP_0693 / Tex / mf_three.arc / ROMSUB.MF < prev    next >
Text File  |  1988-11-22  |  1KB  |  39 lines

  1. % This file defines characters that go into a text font when |ligs<=1|.
  2.  
  3. % Character codes \0013--\0015, \0074, and \0076 are generated when |ligs=1|;
  4. % in addition, codes \0040, \0042, \0055, \0134, \0137, and \0173--\0175
  5. % are generated, if |ligs=0|.
  6.  
  7. up_arrow=oct"013"; down_arrow=oct"014";
  8. less=ASCII"<"; greater=ASCII">";
  9. if ligs=0: straight_quotes=oct"042"; minus=ASCII"-";
  10.  backslash=ASCII"\"; underbar=ASCII"_";
  11.  left_brace=ASCII"{"; vertical=ASCII"|"; right_brace=ASCII"}"; fi
  12.  
  13. input sym;
  14.  
  15. cmchar "Straight single quote";
  16. beginchar(oct"015",5u#,asc_height#,0);
  17. italcorr asc_height#*slant+.5 if serifs: flare# else: stem# fi -2u#;
  18. adjust_fit(0,0);
  19. x1=x2=.5w; y2=max(.5[bar_height,x_height]+.5vair,h-x_height);
  20. if serifs: pickup crisp.nib; pos1(flare,0); pos2(vair,0);
  21.  y1+.5stem=h; filldraw circ_stroke z1e--z2e;  % stem and bulb
  22. else: pickup fine.nib; pos1(stem,0); pos2(vair,0);
  23.  top y1=h; filldraw stroke z1e--z2e; fi  % stem
  24. penlabels(1,2); endchar;
  25.  
  26. iff ligs=0: cmchar "Blank-space sign";
  27. beginchar(oct"040",9u#,bar_height#,.5desc_depth#);
  28. italcorr bar_height#*slant-.25u#;
  29. adjust_fit(0,0);
  30. numeric thin_vair#; thin_vair#=.7vair#;
  31. define_whole_blacker_pixels(thin_vair);
  32. forsuffixes $=1,2,3,4: penpos$(thin_vair,0); endfor
  33. penpos0(thin_vair,90); x0=.5w; y0l=vround(-d-.5thin_vair);
  34. x1=x2; x3=x4=w-x1; lft x1l=hround .75u;
  35. y1=y4=h; y2=y3=y0;
  36. fill z1l---z2l...(x2,y0l)---(x3,y0l)...z3r---z4r
  37.  ..z4l---(x3l,y0r)--(x2r,y0r)---z1r..cycle;  % the stroke
  38. penlabels(0,1,2,3,4); endchar;
  39.