• 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: what size is the menu bar font?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: what size is the menu bar font?


  • Subject: Re: what size is the menu bar font?
  • From: Ricky Sharp <email@hidden>
  • Date: Wed, 09 Feb 2005 14:16:50 -0600

On Wednesday, February 09, 2005, at 12:23PM, Matt Neuburg <email@hidden> wrote:

>According to the docs, calling NSFont +menuFontOfSize with size 0 returns
>the default menu font in the default size. But I am constructing a menu in
>the menu bar using attributed strings, and when I set the size this way, it
>comes out smaller than all my other menus. This is true whether I say
>menuFontOfSize, systemFontOfSize, menuBarFontOfSize, or whatever. Is this a
>bug? If my menus are not already in the "default size", in what sense *is*
>this size the default? And how am I supposed to learn what font and size the
>menus are in, if not by this very method? m.

Interesting.  I wrote a quick app to show what value was returned by [[NSFont menuFontOfSize:0] pointSize].  Under 10.3.7, I got a value of 13.

I then took a screen shot of TextEdit's Format menu.  Then, in TextEdit, I set the font to Lucida Grande 13pt and entered the text "Prevent Editing" and "Wrap to Page".  Took a screenshot of the text.

Using Photoshop, I superimposed one screenshot over the other and sure enough, the 13pt text in the TextEdit documement was smaller.

Upping the text size in the doc to 14pt then yielded a perfect match when superimposing the resultant screenshots.

Looks like an off-by-one bug to me.

--
Rick Sharp
Instant Interactive(tm)

 _______________________________________________
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

References: 
 >what size is the menu bar font? (From: Matt Neuburg <email@hidden>)

  • Prev by Date: Fade out the window content
  • Next by Date: Re: spawing a server...
  • Previous by thread: what size is the menu bar font?
  • Next by thread: Fade out the window content
  • Index(es):
    • Date
    • Thread