12. Text and Fonts

This chapter covers the process of drawing text using members of the System.Drawing namespace.

THE FOCUS OF THIS CHAPTER is on drawing text on the screen of a smart device using the .NET Compact Framework. As expected, the Compact Framework supports only a subset of text-drawing features of the full .NET Framework. Nonetheless, text-drawing support is surprisingly rich. All commonly required text operations are supported, such as selecting named fonts, along with choosing font sizes, styles, and text color. Some things are missing, but the most common operations are present.

12.1 Drawing Text

A graphical environment gives programmers a rich set of tools for creating a wide range of graphical effects. You can freely mix pictures ...

Get Programming .NET Compact Framework 3.5 Second Edition 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.