Using the Font Object

A font is a collection of characters and symbols that share a common design. The major elements of a font include its typeface, style, and size.

In WFC, Windows fonts are encapsulated in the Font object. You can use this object in combination with other font-related objects to define a limitless variety of fonts for display on a Graphics object.

The following table lists the font-related classes supported by WFC.

Class Description
FontDescriptor Provides information about the font that underlies a Font object.
FontFamily Defines a group of constants that represent the families to which a font may belong.
FontMetrics Defines the physical characteristics of a font as it is mapped into a Graphics object.
FontPitch Defines a font’s pitch.
FontSize Defines a group of constants that represent the units in which font sizes can be specified.
FontType Defines a group of constants that represent the devices to which the font will be rendered.
FontWeight Defines constants that represent the different weights that you can associate with a font.

For more information, see: