Re: NSForegroundColorAttributeName + NSStrokeWidthAttributeName
Re: NSForegroundColorAttributeName + NSStrokeWidthAttributeName
- Subject: Re: NSForegroundColorAttributeName + NSStrokeWidthAttributeName
- From: Douglas Davidson <email@hidden>
- Date: Tue, 5 Jun 2007 16:58:00 -0700
On Jun 5, 2007, at 4:52 PM, Lorenzo wrote:
when I set the NSStrokeWidthAttributeName to my string, I lose the
NSForegroundColorAttributeName attribute. So I see a transparent
string with
a white stroke line. Strangely instead, the
NSBackgroundColorAttributeName
works well. Do I forget something?
Read the comments in AppKit/NSAttributedString.h.
NSForegroundColorAttributeName is used as the fill color. The
absolute value of the stroke width attribute determines the stroke
width, and the sign determines the drawing mode: stroke alone for
positive values of the attribute, stroke and fill for negative
values, fill only for zero or no attribute.
Douglas Davidson
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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