RichEdit SetCharFormat Character Size and Spacing
Posted on 2008-06-23
I have hundreds of reports that have been manually formatted using <SPACES> to make characters align. The text is either 10CPI or 17.xx CPI as in the old dot matrix printers.
I'm trying to import them to a CRichEditDoc/View type of arrangement. I've tried fixed pitch fonts such as Courier New and Lucida Console, and though each will change size, they seem to do so in some sort of secret increment, and are sometimes almost unreadable on the screen.
Within the documents, if a line is compressed, then the entire line is compressed. I'm NOT trying to line up decimals using different fonts, etc. It is simply that on an 8 1/2 x 11 sheet of paper, it would be nice if the compressed lines began and ended at approximately the same place as the non-compressed ones.
How can I SetCharFormat so that I end up with 80 characters per line, and 132 characters per line, or you could think of it as 10 CPI and 16.5 CPI?
Thanks in advance, rick