home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!cs.utexas.edu!usc!cheshire.oxy.edu!wirehead
- From: wirehead@cheshire.oxy.edu (David J. Harr)
- Subject: Re: Changing the ascent in a dialog edit text item.
- Message-ID: <1992Aug18.041739.6789@cheshire.oxy.edu>
- Followup-To: comp.sys.mac.programmer
- Summary: OK, I fixed it now.
- Keywords: dialog, edit text item, changing font
- Sender: wirehead@cheshire.oxy.edu(Lone Hacker of the Apocalypse)
- Organization: The Programmers who say NEE!
- References: <1992Aug17.054527.18105@cheshire.oxy.edu>
- Date: Tue, 18 Aug 1992 04:17:39 GMT
- Lines: 26
-
- In article <1992Aug17.054527.18105@cheshire.oxy.edu> I write:
- >OK, I have an edit text item that I need to display in 9 pt
- >Geneva instead of 12 point Chicago. I have an 'ictb' resource
- >that has all the proper information, but it only partially works.
- >The text is indeed drawn in Geneva9, but the spacing between the
- >lines seems more appropriate to Chicago12 than Geneva9. Also, the
- >blinking cursor appears way out to the side of where it should be,
- >as if the width of the string were being computed with the 12 point
- >font agin, instead of the nine point font. There is a nonblinking
- >cursor that is at the proper position, but the blinking cursor is
- >blinking at a different place than the actual insertion point,
- >which is very confusing. If anyone has any ideas as to what I am
- >doing wrong, I would appreciate hearing about them.
- >
-
- I finally got the silly thing to work by calling TextFont and TextSize,
- and then manually stuffing the values for the line height, the ascent,
- the point size, and the font into the text edit record. It's pretty
- sorry that there isn't an Toolbox call that will do all this for you.
-
- David J Harr
- wirehead@cheshire.oxy.edu
-
- "Everybody is quoting everybody else in their .sigs, I don't
- see why I shouldn't be able to quote myself."
- -- David J Harr in comp.sys.mac.programmer
-