Fonts

Working with various fonts has never been a trivial task. Each font has specific characteristics such as its height, width, ascent, and decent. Fortunately, working with the Font class provided by the base class libraries makes working with fonts a painless task.

Fonts, like brushes and pens, can be solid or textured and can be any size or color. Included with the .NET Framework SDK is a wonderful font example that includes textured fonts, drop shadows, internalization, and font rotation. For the sake of completeness, the Font Demo application will be shown to illustrate the following topics:

  • Drop shadows

  • Textured fonts

  • Background images

  • Graphics transformations

The Font Demo will be in the style of the Pen Demo presented earlier in this chapter, ...

Get .NET Windows® Forms Custom Controls 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.