A font is an instance of the Font class, which includes a font family, a size, and a font style. And, as you might expect, a font family is an instance of the FontFamily class, which is a group of typefaces that differ only in style. A typeface is a named collection of drawing strokes that make up the outlines of the characters, such as those you're reading right now. It's the typeface name that you're used to seeing in the “Font” menu of most programs. The font style constitutes the variations within a typeface, such as bold, italics, and underline. So a typeface would be “Arial,” a font family would include “Arial Regular” and “Arial Bold,” and a font would be “12-point Arial Bold.”

Fonts can be measured in several sizes, including pixels, ...

Get Windows Forms Programming in C# now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.