Fonts in TableView
Fonts in TableView
- Subject: Fonts in TableView
- From: "Gerriet M. Denkmann" <email@hidden>
- Date: Sun, 06 Nov 2016 11:44:17 +0700
macOS 12.1 TableView and OutlineView (View Based) use:
- (void)awakeFromNib
NSRect boundingRect = tableFont.boundingRectForFont;
self.outlineView.rowHeight = ceil( boundingRect.size.height )
and sets attributedStringValue (using the tableFont).
This works mostly ok.
But for tableFont = Avenir or Gill Sans it looks really bad:
The bottom path of all rows is clipped, and the disclosure triangle in the OutlineView points to the top of the string instead to the center.
Setting rowHeight = 1.5 * ceil( …) fixes these problems, but then the rows are of course much too high.
Similar problems with many other fonts, but Gill Sans has the most visible strangeness.
What am I doing wrong?
Gerriet.
_______________________________________________
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