Drawing text with methods of the Cairo class is possible, as this project shows. As the text is available as a PDF file, it can be displayed immediately and printed out without any problems - an advantage that should not be underestimated. On the other hand, it would be very time-consuming to expand the project into a text editor. At the very least, you would have to insert a pagination and hyphenation or use a landscape format for longer lines of text.
Consider the project as a demonstration of the possibilities of drawing text on exactly one page with Cairo:
Figure 25.1.14.1: View of the generated PDF file (excerpt)
The complete source code can be found in the project archive, which is available for testing in the download area.
Chapter & Projects