home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!umd5!mac06-pg2.umd.edu!user
- From: de19@umail.umd.edu (Dana S Emery)
- Newsgroups: comp.sys.mac.programmer
- Subject: Re: Alg. for Detection of Monspaced Fonts
- Message-ID: <de19-141292204941@mac06-pg2.umd.edu>
- Date: 15 Dec 92 02:25:39 GMT
- References: <scott.724029618@phylo> <6534.2b28a410@hayes.com>
- Sender: news@umd5.umd.edu
- Followup-To: comp.sys.mac.programmer
- Organization: personal
- Lines: 40
-
- In article <6534.2b28a410@hayes.com>, bcoleman@hayes.com (Bill Coleman)
- wrote:
- >
- > 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.
- >
- > Perhaps your application needs to be rewritten to allow proportional fonts
- >
- > > [...]
- >
- > I ran into this in 1984. Our solution was to create our own fonts. Today the
- > better solution is to support proportional fonts.
-
- ??? This is an issue of UI, some user will want to specify monospaced fonts
- for certain situations.
-
- Computer code, Email and plaintext documents often look best when rendered
- in a monospaced font, especially when they contain tabular material which
- was laid out using a monospaced font. The user is not always knowledgable
- as to what fonts are monospaced, and program help is often considered
- welcome for this.
-
- Anyway, to determine if a font is monospaced, one must decide/determine if
- international fonts are to be supported. If not, then one has only to
- exclude symbolic fonts (by FOND ID range), and incomplete fonts (by
- inspection of the FontRec structure), and then compare selected characters
- (say "WWWMMMiii".
-
- Short of a comitment from Apple, I hesitate to offer a strategy for
- international fonts, those which are discused in Apples literature are
- amenable to the test given above, but I suspect that some font will someday
- be invented which would fool it.
-
- BTW, dont try to analyse the entirety of ALL fonts, some are rather a bit
- larger than you would think :-).
- --
-
- Dana S Emery <de19@umail.umd.edu>
-