• 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
Fonts in TableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Fonts in TableView
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Obtaining the color of the screen at a known point
  • Next by Date: Re: Fonts in TableView
  • Previous by thread: Re: Obtaining the color of the screen at a known point
  • Next by thread: Re: Fonts in TableView
  • Index(es):
    • Date
    • Thread