IXpsOMFontResource::GetEmbeddingOption method (xpsobjectmodel.h)

Gets the embedding option that will be applied when the resource is serialized.

Syntax

HRESULT GetEmbeddingOption(
  [out, retval] XPS_FONT_EMBEDDING *embeddingOption
);

Parameters

[out, retval] embeddingOption

The stream's embedding option.

The XPS_FONT_EMBEDDING value describes how the resource is obfuscated. The following possible values are returned in this parameter:

Value Meaning
XPS_FONT_EMBEDDING_NORMAL
Font resource is neither obfuscated nor restricted.
XPS_FONT_EMBEDDING_OBFUSCATED
Font resource is obfuscated but not restricted.
XPS_FONT_EMBEDDING_RESTRICTED
Font resource is both obfuscated and restricted.

Return value

If the method succeeds, it returns S_OK; otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header xpsobjectmodel.h

See also

IXpsOMFontResource

XML Paper Specification

XPS_FONT_EMBEDDING