Chapter 15. Text

Fonts, as we discussed in the last chapter, serve as a basic building block for text drawing, which is the topic of this chapter. In this chapter, we are going to discuss logical fonts, text drawing functions, simple text formatting, high-quality and high-precision text formatting, and text drawing effects.

LOGICAL FONTS

Chapter 14 covers substantial details about the three major font technologies used in Windows programming—that is, bitmap fonts, vector fonts, and TrueType/OpenType fonts. Even with in-depth knowledge of physical fonts, working directly with them is hard, time consuming, and not a good way to spend an application programmer's time.

To make text drawing easier for Windows applications, physical fonts are not handled ...

Get Windows Graphics Programming Win32 GDI and DirectDraw® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.