Skip navigation.
 
mlRe: Forcing Black on RTF Text generated from NSAttributedString
FROM : Douglas Davidson
DATE : Thu Dec 09 20:55:27 2004

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

Related mailsAuthorDate
mlForcing Black on RTF Text generated from NSAttributedString R. Scott Thompson Dec 9, 18:56
mlRe: Forcing Black on RTF Text generated from NSAttributedString Douglas Davidson Dec 9, 20:55
mlRe: Forcing Black on RTF Text generated from NSAttributedString John Stiles Dec 9, 22:40
mlRe: Forcing Black on RTF Text generated from NSAttributedString Andrew Farmer Dec 10, 00:45
mlRe: Forcing Black on RTF Text generated from NSAttributedString John Stiles Dec 10, 01:03
mlRe: Forcing Black on RTF Text generated from NSAttributedString R. Scott Thompson Dec 10, 02:30
mlRe: Forcing Black on RTF Text generated from NSAttributedString Ali Ozer Dec 10, 20:47
mlRe: Forcing Black on RTF Text generated from NSAttributedString R. Scott Thompson Dec 10, 20:52