home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / programm / 19670 < prev    next >
Encoding:
Internet Message Format  |  1992-12-11  |  1.2 KB

  1. Path: sparky!uunet!think.com!paperboy.osf.org!hsdndev!dartvax!Eric.J.Baumgartner
  2. From: Eric.J.Baumgartner@dartmouth.edu (Eric J. Baumgartner)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Alg. for Detection of Monspaced Fonts
  5. Message-ID: <1992Dec11.174609.27269@dartvax.dartmouth.edu>
  6. Date: 11 Dec 92 17:46:09 GMT
  7. References: <scott.724029618@phylo>
  8. Sender: news@dartvax.dartmouth.edu (The News Manager)
  9. Organization: Dartmouth College, Hanover, NH
  10. Lines: 17
  11. X-Posted-From: InterNews1.0b2@newshost.dartmouth.edu
  12.  
  13. In article <scott.724029618@phylo>
  14. scott@phylo.life.uiuc.edu (Scott Howard) writes:
  15.  
  16. > My Application requires that all fonts it uses are monospaced
  17. > and will allow the user to choose display fonts that meet that requirement.
  18. > The application chooses two non-equal chars of a font at random,
  19. > and compare their charwidth at an equal pt size. If they are 
  20. > equivalent, well, you get the point.
  21.  
  22. Check out the FontRec structure and FMSwapFont. The first field in
  23. FontRec tells you if the font's proportional or fixed width.
  24.  
  25. Eric Baumgartner                   *  ebaum@dartmouth.edu
  26. Interactive Media Lab              *  - When in danger or in doubt,
  27. Dartmouth Medical School           *      run in circles, scream and
  28. shout.
  29.