• 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
Choose an NSFont with specific line height?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Choose an NSFont with specific line height?


  • Subject: Choose an NSFont with specific line height?
  • From: Mike Blaguszewski <email@hidden>
  • Date: Mon, 17 Apr 2006 14:33:43 -0400

I'm trying to draw a few lines of text into a custom NSCell of arbitrary height. So I know what height I need each line of text to be, and I'd like to get an instance of NSFont with that line height. (Line wrapping isn't an issue here.) I know how to calculate line height given a font of a certain point size, but short of doing a brute force search, I don't know how to go the other way. Any ideas?

--
Mike Blaguszewski / Ambrosia Software, Inc.



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Choose an NSFont with specific line height?
      • From: Douglas Davidson <email@hidden>
  • Prev by Date: Re: Resolving a alias w/o mounting file systems
  • Next by Date: Re: Resolving a alias w/o mounting file systems
  • Previous by thread: Re: Different context in Core Data
  • Next by thread: Re: Choose an NSFont with specific line height?
  • Index(es):
    • Date
    • Thread