Specifies a physical font face that corresponds to a font file on the disk.
Assembly: PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
The object is a low level text object that corresponds to a single face of a font family as represented by an OpenType font file, or serialized as a block of memory in a document. The correct to use for a run of characters in a given logical font is normally determined by the WPF font system and recorded in the GlyphRun objects generated by the FormattedText object and line formatting text APIs.
The provides properties and methods for:
Obtaining font face common metrics, such as the ratio of ascent and descent to em size.
Obtaining metrics, outlines, and bitmaps for individual glyphs.
Serialization in a document.
The following list describes the type of application scenarios that illustrate the value of using the low-level control that the object provides.
A fixed format document generator may use the to obtain a binary image of the font for embedding in a document container
A printer driver may use the to obtain font glyph outlines or bitmaps, or the entire font image for sending to the printer.
A viewer application may use the to obtain metric and bitmap information.
Each glyph defines metrics that specify how it aligns with other Glyphs. The following graphic defines metric values for glyph characters.
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.