Article View: comp.sys.next.programmer
Article #1809Re: Determining dimensions of text object
From: Ray Spalding
Date: Wed, 18 Nov 1992 19:26
Date: Wed, 18 Nov 1992 19:26
13 lines
1135 bytes
1135 bytes
In article <1992Nov16.080646.2606@worg.questor.wimsey.bc.ca> david@worg.questor.org (David Lau) writes: >Suppose I want to make a text object big enough to hold m-by-n characters from >a fixed-width font, how do I go about determining its dimensions? You can use NXTextFontInfo() to get the font's line height. You can use the getWidthOf: method of Font to get the width of any single, arbitrary character (they should all be the same in a fixed-width font). Then, just multiply it out... -- Ray Spalding, Office of Information Technology Georgia Institute of Technology, Atlanta Georgia, 30332-0715 Internet: ray.spalding@oit.gatech.edu (NeXT Mail accepted)
Technical Details
Message-ID:
<75311@hydra.gatech.EDU>Path:
arc1-ca.pugleaf.net!sparky!uunet!destroyer!gatech!prism!xray.gatech.edu!cc100aaReferences:
<1992Nov16.080646.2606@worg.questor.wimsey.bc.ca> <1992Nov18.144225.28136@csus.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!destroyer!gatech!prism!xray.gatech.edu!cc100aa From: cc100aa@xray.gatech.edu (Ray Spalding) Newsgroups: comp.sys.next.programmer Subject: Re: Determining dimensions of text object Message-ID: <75311@hydra.gatech.EDU> Date: 18 Nov 92 19:26:42 GMT References: <1992Nov16.080646.2606@worg.questor.wimsey.bc.ca> <1992Nov18.144225.28136@csus.edu> Sender: news@prism.gatech.EDU Organization: Georgia Institute of Technology Lines: 13