• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Changing the line height of an NSTextField?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Changing the line height of an NSTextField?


  • Subject: Re: Changing the line height of an NSTextField?
  • From: John Stiles <email@hidden>
  • Date: Wed, 26 Mar 2008 09:58:51 -0700

I've found that adjusting the font matrix to include a negative Y transformation has the effect of decreasing the line height. This seemed like a bug to me when I discovered it, since I just wanted the text to be translated upwards in its cell, not shrink the line height. I wasn't sure if it was a bug or desired functionality. If this is the correct behavior, it's one way to do it.


Nicholas J Humfrey wrote:
Hello Cocoa Developers,

I am trying to squeeze an extra line of text into a multiline NSTextField, but I can't work out how to adjust the line height? What is the easiest way of adjusting this?


The purpose of this is that I'm actually using several NSTextFields on an NSView to lay text out for printing on to a sheet of labels, which has been working out very nicely up until this point! Perhaps there is a better way of doing this?



Thanks,

nick.

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Changing the line height of an NSTextField?
      • From: Nicholas J Humfrey <email@hidden>
References: 
 >Changing the line height of an NSTextField? (From: Nicholas J Humfrey <email@hidden>)

  • Prev by Date: Leopard on PPC
  • Next by Date: Re: Leopard on PPC
  • Previous by thread: Changing the line height of an NSTextField?
  • Next by thread: Re: Changing the line height of an NSTextField?
  • Index(es):
    • Date
    • Thread