Export (0) Print
Expand All

XpsSerializationManager.SetFontSubsettingPolicy Method

Sets the granularity at which font-subsetting is performed.

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

public void SetFontSubsettingPolicy(
	FontSubsetterCommitPolicies policy
)

Parameters

policy
Type: System.Windows.Xps.Serialization.FontSubsetterCommitPolicies

One of the enumeration values that specifies the font-subsetting policy.

The default font-subsetting policy is CommitEntireSequence.

When font glyphs for text in an XPS document are saved in the document package, the document text displays identically on any computer or printer. If glyphs are not saved in document and the required font is not installed on the local computer or printer, the rendering device must substitute glyphs from another font. Substituting glyphs can change the appearance of the text when a different font is used.

SetFontSubsettingPolicy determines the granularity of font-subsetting.

CommitEntireSequence (default) is the most efficient and enables the pages of all documents in a document sequence to share one font-subset that contains only the glyphs that are actually used.

When creating interleaved documents, font-subsetting across a document sequence can require a large amount of memory to hold the complete document until the final font-subset can be determined. CommitPerPage or CommitPerDocument can be specified to reduce application memory requirements when you create interleaved documents.

When policy is None, all the glyphs for all fonts that are used in the XPS document are saved, even glyphs for characters that not actually used in the text.

.NET Framework

Supported in: 4.5.2, 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft