Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!think.com!linus!progress!mikep From: mikep@progress.COM (Mike Pacholec) Newsgroups: comp.windows.x Subject: Proportional vs. Fixed Fonts Summary: Proportional vs. Fixed Fonts Keywords: FONTS Message-ID: <1990Dec14.224219.23658@progress.com> Date: 14 Dec 90 22:42:19 GMT Sender: news@progress.com (The News User) Organization: Progress Software Corp., Bedford, MA Lines: 21 Nntp-Posting-Host: mikep Is there a "standard" method for determining if a font is fixed (all characters the same width) or proportionally (each character has a unique width) spaced? I've tried checking to see if the min_bounds.width equaled the max_bounds.width (in the XFontStruct). This works great under Motif, but under OpenWindows the min_bounds.width is zero in most cases (even fixed). This may be because many OpenWindows fonts cover all 255 chars where the X fonts covered 32 to 255 only. The first 32 under OpenWindows would be of width 0 (undefined)??? Another method is checking to see if the XTextWidth() of "M" is the same as "i". But this is fairly kludgy. Is there a better method that I can use? -- ------------------------------------------------------------------------------- Mike Pacholec UUCP: mit-eddie!progress!mikep Progress Software Corp. Internet: mikep@progress.com Bedford, MA