• 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: NSObliquenessAttributeName, labelFontOfSize, & Italic
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSObliquenessAttributeName, labelFontOfSize, & Italic


  • Subject: Re: NSObliquenessAttributeName, labelFontOfSize, & Italic
  • From: Eric Gorr <email@hidden>
  • Date: Tue, 24 Mar 2009 08:20:44 -0400


On Mar 23, 2009, at 10:34 AM, Eric Gorr wrote:

I found this old thread:

http://lists.apple.com/archives/Cocoa-dev/2007/Jan/msg00181.html

which discusses the same problem I am experiencing. I need an italic version of Lucida Grande, which is the font currently returned by labelFontOfSize.

But, of course, I need a generic solution since labelFontOfSize may not always return Lucida Grande. Now, I could select a font like Helvetica Neue which has all of the various traits I need, but I would rather use the font returned by labelFontOfSize since I am drawing a label.

The solution proposed in the thread was to just add NSObliquenessAttributeName, which is easy enough, but I am not sure what the appropriate angle should be.

Is there a standard angle which should be used in this situation?

Well, actually, considering that using NSObliquenessAttributeName caused the text to look blury, I switched to userFontOfSize which provides a font with a clean italic version.


If anyone has a better solution, I would be interested.

I filed bug report rdar://6715356 requesting that labelFontOfSize return a font with a clean italic and bold-italic variant and suggest others do the same if they want this as well.

_______________________________________________

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: NSObliquenessAttributeName, labelFontOfSize, & Italic
      • From: Andrew Farmer <email@hidden>
References: 
 >NSObliquenessAttributeName, labelFontOfSize, & Italic (From: Eric Gorr <email@hidden>)

  • Prev by Date: Trouble with NSAnimationContext
  • Next by Date: Using NSValueTransformer to convert NSImage to NSData
  • Previous by thread: NSObliquenessAttributeName, labelFontOfSize, & Italic
  • Next by thread: Re: NSObliquenessAttributeName, labelFontOfSize, & Italic
  • Index(es):
    • Date
    • Thread