Xref: utzoo comp.windows.open-look:268 comp.windows.x.motif:1472 Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!think.com!linus!progress!mikep From: mikep@progress.COM (Mike Pacholec) Newsgroups: comp.windows.open-look,comp.windows.x.motif Subject: Fixed vs. Proportional Fonts Summary: How to differentiate fixed vs proportionally spaced fonts Keywords: FONTS Message-ID: <1990Dec14.224728.23718@progress.com> Date: 14 Dec 90 22:47:28 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