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