Re: Problem with fontDescriptorWithFontAttributes:
Re: Problem with fontDescriptorWithFontAttributes:
- Subject: Re: Problem with fontDescriptorWithFontAttributes:
- From: Steve Christensen <email@hidden>
- Date: Mon, 21 Sep 2009 14:47:23 -0700
On Sep 21, 2009, at 2:29 PM, Laurent Daudelin wrote:
On Sep 21, 2009, at 14:23, Kyle Sluder wrote:
Fonts really don't have colors. I don't know why
NSFontColorAttribute
is defined in NSFontDescriptor.h, but none of the other attributed
string attributes are in there.
Why are you trying to attach a color to a font?
--Kyle Sluder
Simple: I want to set the font as a gray to show that the text
field cell is disabled, e.g. cannot be selected.
Yes, but a font describes essentially the shape of all the glyphs.
When it comes time to draw it, -then- you apply characteristics like
color, but to the string you're trying to draw, not to the font.
steve
_______________________________________________
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