NSObliquenessAttributeName, labelFontOfSize, & Italic
NSObliquenessAttributeName, labelFontOfSize, & Italic
- Subject: NSObliquenessAttributeName, labelFontOfSize, & Italic
- From: Eric Gorr <email@hidden>
- Date: Mon, 23 Mar 2009 10:34:29 -0400
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?
_______________________________________________
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