XpsSerializationManager.SetFontSubsettingPolicy Method (FontSubsetterCommitPolicies)


Sets the granularity at which font-subsetting is performed.

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

public void SetFontSubsettingPolicy(
	FontSubsetterCommitPolicies 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
Available since 3.0
Return to top