This documentation is archived and is not being maintained.

XpsFont Class

Represents a font in an XpsDocument.

Namespace:  System.Windows.Xps.Packaging
Assembly:  ReachFramework (in ReachFramework.dll)

'Declaration
Public Class XpsFont _
	Inherits XpsResource
'Usage
Dim instance As XpsFont
You cannot directly create an instance of this class in XAML.

The XpsFont class has no public constructor.

Use the AddFont method to add a font and obtain a reference to it in a new document.

Use the GetFont method to obtain a font reference in an existing document.

Based on settings of XpsSerializationManager and XpsPackagingPolicy, such as FontSubsetterCommitPolicies and PackageInterleavingOrder, the flush operation of the Commit method of the XpsFont class may be delayed until the whole XpsDocument is closed.

The following example shows how to add fonts to an XpsDocument.

No code example is currently available or this language may not be supported.

For the complete sample, see Creating an XPS Document Sample.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

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.

.NET Framework

Supported in: 3.5, 3.0
Show: