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

  1. Path: sparky!uunet!haven.umd.edu!umd5!mac06-pg2.umd.edu!user
  2. From: de19@umail.umd.edu (Dana S Emery)
  3. Newsgroups: comp.sys.mac.programmer
  4. Subject: Re: Alg. for Detection of Monspaced Fonts
  5. Message-ID: <de19-141292204941@mac06-pg2.umd.edu>
  6. Date: 15 Dec 92 02:25:39 GMT
  7. References: <scott.724029618@phylo> <6534.2b28a410@hayes.com>
  8. Sender: news@umd5.umd.edu
  9. Followup-To: comp.sys.mac.programmer
  10. Organization: personal
  11. Lines: 40
  12.  
  13. In article <6534.2b28a410@hayes.com>, bcoleman@hayes.com (Bill Coleman)
  14. wrote:
  15. > In article <scott.724029618@phylo>, scott@phylo.life.uiuc.edu (Scott Howard) writes:
  16. > > My Application requires that all fonts it uses are monospaced
  17. > > and will allow the user to choose display fonts that meet that 
  18. > > requirement.
  19. > Perhaps your application needs to be rewritten to allow proportional fonts
  20. > > [...]
  21. > I ran into this in 1984. Our solution was to create our own fonts. Today the
  22. > better solution is to support proportional fonts.
  23.  
  24. ??? This is an issue of UI, some user will want to specify monospaced fonts
  25. for certain situations.
  26.  
  27. Computer code, Email and plaintext documents often look best when rendered
  28. in a monospaced font, especially when they contain tabular material which
  29. was laid out using a monospaced font.  The user is not always knowledgable
  30. as to what fonts are monospaced, and program help is often considered
  31. welcome for this.  
  32.  
  33. Anyway, to determine if a font is monospaced, one must decide/determine if
  34. international fonts are to be supported.  If not, then one has only to
  35. exclude symbolic fonts (by FOND ID range), and incomplete fonts (by
  36. inspection of the FontRec structure), and then compare selected characters
  37. (say "WWWMMMiii".
  38.  
  39. Short of a comitment from Apple, I hesitate to offer a strategy for
  40. international fonts, those which are discused in Apples literature are
  41. amenable to the test given above, but I suspect that some font will someday
  42. be invented which would fool it.
  43.  
  44. BTW, dont try to analyse the entirety of ALL fonts, some are rather a bit
  45. larger than you would think :-).
  46. --
  47.  
  48. Dana S Emery <de19@umail.umd.edu>
  49.