mikep@progress.COM (Mike Pacholec) (12/15/90)
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