Chapter 6. Building a Word Processor
In this chapter, we build a word processor that is capable of handling text on character level: that is, a single character that has its own font, color, size, and style. We also introduce caret handling, printing and print previewing, and file dropping, as well as clipboard handling with ASCII and Unicode text, which means that we can cut and paste between this application and, for instance, a text editor.
A document in this application is made up of pages, paragraphs, lines, and characters. Let me try to explain how it all hangs together:
- First of all, the document is made up of a list of characters. ...