• 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: Set TableView font and rowHeight
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Set TableView font and rowHeight


  • Subject: Re: Set TableView font and rowHeight
  • From: Ivan C Myrvold <email@hidden>
  • Date: Mon, 2 Apr 2007 13:15:57 +0200

If I use the defaultLineHeightForFont setting the table views rowHeight, as suggested in the layout chart, that should correspond to line height, the text is still getting clipped for large font sizes.

When my application starts up, the default font is LucidaGrande 13.00 pt., and the rowHeight of the table is 17.000000. The fonts defaultLineHeightForFont is 16.000000. The ascender is 12.568359 and descender is -2.742188.

I can't see how this adds up to 17, which is the NSTableView's rowHeight.

Ivan

There's a nice layout chart that illustrates how the different font metrics work together:

<file:///Developer/ADC Reference Library/documentation/Cocoa/ Conceptual/FontHandling/Tasks/GettingFontMetrics.html>

Also online:

<http://developer.apple.com/documentation/Cocoa/Conceptual/ FontHandling/Tasks/GettingFontMetrics.html>

sherm--

Web Hosting by West Virginians, for West Virginians: http://wv- www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net






_______________________________________________

Cocoa-dev mailing list (email@hidden)

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: Set TableView font and rowHeight
      • From: Ivan C Myrvold <email@hidden>
References: 
 >Set TableView font and rowHeight (From: Ivan C Myrvold <email@hidden>)
 >Re: Set TableView font and rowHeight (From: Sherm Pendley <email@hidden>)
 >Re: Set TableView font and rowHeight (From: Ivan C Myrvold <email@hidden>)

  • Prev by Date: Re: Set TableView font and rowHeight
  • Next by Date: Re: Set TableView font and rowHeight
  • Previous by thread: Re: Set TableView font and rowHeight
  • Next by thread: Re: Set TableView font and rowHeight
  • Index(es):
    • Date
    • Thread