Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!samsung!think.com!snorkelwacker.mit.edu!bloom-beacon!LARRY.MCRCIM.MCGILL.EDU!mouse From: mouse@LARRY.MCRCIM.MCGILL.EDU Newsgroups: comp.windows.x Subject: Re: Proportional vs. Fixed Fonts Message-ID: <9012170458.AA08510@Larry.McRCIM.McGill.EDU> Date: 17 Dec 90 04:58:33 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 23 > 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? If it's really important, then look at the character metrics. If you just want a reasonable guess, you could look at the SPACING property (see the XLFD for details). > 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). Then, sorry, the font is not truly fixed-width; it contains at least one zero-width character. Of course, the server may be buggy and returning a zero when it shouldn't - try examining the per_char elements and see. (If there are no per_char elements, and min_bounds is not equal to max_bounds, something is definitely buggy.) der Mouse old: mcgill-vision!mouse new: mouse@larry.mcrcim.mcgill.edu