• 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: Simple way to find out baseline for NSAttributedString?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Simple way to find out baseline for NSAttributedString?


  • Subject: RE: Simple way to find out baseline for NSAttributedString?
  • From: "Jonathan E. Jackel" <email@hidden>
  • Date: Thu, 4 Sep 2003 13:27:43 -0400

> I am trying to calculate the overall metrics for an NSAttributedString
> (to display on a single line) -- basically, its total height, width,
> and offset from the bottom the the baseline. I can use
> -[NSAttributedString size] to get the width and height of the string --
> but what about the baseline?
>

Have you looked at NSFont's ascender, descender, and
defaultLineHeightForFont methods?

Jonathan
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: Simple way to find out baseline for NSAttributedString?
      • From: email@hidden
References: 
 >Simple way to find out baseline for NSAttributedString? (From: email@hidden)

  • Prev by Date: programmatically decompress lzw data
  • Next by Date: Re: NSComboBox problem
  • Previous by thread: Simple way to find out baseline for NSAttributedString?
  • Next by thread: Re: Simple way to find out baseline for NSAttributedString?
  • Index(es):
    • Date
    • Thread