Re: Problem with fontDescriptorWithFontAttributes:
Re: Problem with fontDescriptorWithFontAttributes:
- Subject: Re: Problem with fontDescriptorWithFontAttributes:
- From: Laurent Daudelin <email@hidden>
- Date: Mon, 21 Sep 2009 15:08:04 -0700
On Sep 21, 2009, at 14:47, Steve Christensen wrote:
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
Yes, that makes sense. I was just distracted with those APIs in
NSFont, I guess...
-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin http://nemesys.dyndns.org
Logiciels Nemesys Software email@hidden
Photo Gallery Store: http://laurentdaudelin.shutterbugstorefront.com/g/galleries
_______________________________________________
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