home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.windows.x
- Path: sparky!uunet!gatech!darwin.sura.net!spool.mu.edu!enterpoop.mit.edu!bloom-beacon!INTERNET!dont-send-mail-to-path-lines
- From: mahan@TGV.COM (Patrick L. Mahan)
- Subject: RE: maximum string width
- Message-ID: <930107093311.20800431@code-z.tgv.com>
- Sender: root@athena.mit.edu (Wizard A. Root)
- Organization: The Internet
- Date: Thu, 7 Jan 1993 17:33:11 GMT
- Lines: 19
-
- #
- #I am looking for creative ways to solve the following problem:
- #
- #I have a bunch of strings (~1500) and I want to figure out what the
- #width of the widest string is exactly. Things to consider:
- # 1) It can be for any font (especially var. width).
- # 2) I *don't* want just the maximum char width for that font
- # multiplied by the number of chars in the largest string.
- #
-
- Use XTextWidth(). See your Xlib documentation for details.
-
- Patrick L. Mahan
-
- --- TGV Window Washer ------------------------------- Mahan@TGV.COM ---------
-
- Waking a person unnecessarily should not be considered - Lazarus Long
- a capital crime. For a first offense, that is From the Notebooks of
- Lazarus Long
-