• 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: Problem with fontDescriptorWithFontAttributes:
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Problem with fontDescriptorWithFontAttributes: (From: Laurent Daudelin <email@hidden>)
 >Re: Problem with fontDescriptorWithFontAttributes: (From: "John C. Randolph" <email@hidden>)
 >Re: Problem with fontDescriptorWithFontAttributes: (From: Laurent Daudelin <email@hidden>)
 >Re: Problem with fontDescriptorWithFontAttributes: (From: Kyle Sluder <email@hidden>)
 >Re: Problem with fontDescriptorWithFontAttributes: (From: Laurent Daudelin <email@hidden>)
 >Re: Problem with fontDescriptorWithFontAttributes: (From: Steve Christensen <email@hidden>)

  • Prev by Date: Re: NSManagedObject Initialization Methods Not Called
  • Next by Date: Re: Problem with fontDescriptorWithFontAttributes:
  • Previous by thread: Re: Problem with fontDescriptorWithFontAttributes:
  • Next by thread: access to object from a different class
  • Index(es):
    • Date
    • Thread