Article View: comp.windows.x
Article #37164Re: Determining font size values: R2 vs. R3
From: Benjamin Ellsworth
Date: Wed, 21 Feb 1990 17:34
Date: Wed, 21 Feb 1990 17:34
15 lines
1181 bytes
1181 bytes
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.
-----------------------------------------------------------------------
Technical Details
Message-ID:
<100920171@hpcvlx.cv.hp.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucsd!ucsdhub!hp-sdd!hp-pcd!hpcvlx!benReferences:
<3630008@hpindda.HP.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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