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: John Stiles <email@hidden>
- Date: Thu, 9 Dec 2004 13:40:50 -0800
You could make a pseudo black with RGB(1,1,1) instead of RGB(0,0,0).
Obviously not a solution if this is for prepress or something, but for
display only, it'll look 99.61% as good as real black.
On Dec 9, 2004, at 11:55 AM, Douglas Davidson wrote:
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
_______________________________________________
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