Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucsd!ucsdhub!hp-sdd!hp-pcd!hpcvlx!ben From: ben@hpcvlx.cv.hp.com (Benjamin Ellsworth) Newsgroups: comp.windows.x Subject: Re: Determining font size values: R2 vs. R3 Message-ID: <100920171@hpcvlx.cv.hp.com> Date: 21 Feb 90 17:34:12 GMT References: <3630008@hpindda.HP.COM> Organization: Hewlett-Packard Co., Corvallis, OR, USA Lines: 15 I believe that you should be using XTextExtents rather than character box stuff. Get a copy of the Xhp widget source and root around in the StaticText widget. There's a block of code to do exactly what you want. ----------------------------------------------------------------------- Benjamin Ellsworth | ben@cv.hp.com | INTERNET Hewlett-Packard Company | {backbone}!hplabs!hp-pcd!ben | UUCP 1000 N.E. Circle | (USA) (503) 750-4980 | FAX Corvallis, OR 97330 | (USA) (503) 757-2000 | VOICE ----------------------------------------------------------------------- All relevant disclaimers apply. -----------------------------------------------------------------------