Re: Forcing Black on RTF Text generated from NSAttributedString
Re: Forcing Black on RTF Text generated from NSAttributedString
- Subject: Re: Forcing Black on RTF Text generated from NSAttributedString
- From: Douglas Davidson <email@hidden>
- Date: Thu, 9 Dec 2004 11:55:27 -0800
On Dec 9, 2004, at 11:46 AM, R. Scott Thompson wrote:
As it turns out, however, if you then round-trip that same code
through RTF (that is, you generate an RTF from it, and then generate a
string from the RTF) you loose all the lovely work you did in applying
your own black to the ranges.
RTF stores colors as RGB, 0-255 for each component. If you use your
own black, the difference is that you will get an explicit entry in the
color table rather than relying on the implicit automatic entry 0.
Douglas Davidson
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden