共用方式為


IXpsOMFontResource::GetEmbeddingOption method

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

Syntax

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

Parameters

  • embeddingOption [out, retval]
    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

Minimum supported client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps]

Header

Xpsobjectmodel.h

IDL

XpsObjectModel.idl

See also

XPS_FONT_EMBEDDING

IXpsOMFontResource

XML Paper Specification