I'm programming for windows using mfc VC++ 2003 and need a suggestion on ways to solve this problem...
My windows mfc app creates a small amount of formatted text (bold, italics and different size fonts). Later the text needs to be drawn or printed, but the lower level library that does the drawing & printing, gets a CDC* and a char* and that is it (I'm exaggerating a bit but the point is windows/mfc api and controls are not available at the lower level). Currently all the drawing is done via CDC->DrawText
I was thinking I could use CRichEditCtrl to create RTF text (assuming that's what it does) and then later hand code the drawing of RTF text, but I'd rather not rewrite how to draw from RTF. Is this approach reasonable? Are there libraries that do draw/print RTF already? Is there a better way?