Freigeben über


IXpsOMPageReference::HasRestrictedFonts method

Gets a Boolean value that indicates whether the document sub-tree of the referenced page includes any Glyphs that have a font resource whose EmbeddingOption property is set to XPS_FONT_EMBEDDING_RESTRICTED.

Syntax

HRESULT HasRestrictedFonts(
  [out, retval] BOOL *restrictedFonts
);

Parameters

  • restrictedFonts [out, retval]
    A Boolean value that indicates whether the document sub-tree of the referenced page includes any IXpsOMGlyphs interfaces that have a font resource whose EmbeddingOption property is set to XPS_FONT_EMBEDDING_RESTRICTED.

    Value Meaning
    TRUE

    If the referenced page is loaded, the page references at least one font resource whose EmbeddingOption property is set to XPS_FONT_EMBEDDING_RESTRICTED.

    If the referenced page is not loaded, it has a relationship with at least one font resource whose EmbeddingOption property is set to XPS_FONT_EMBEDDING_RESTRICTED.

    FALSE

    If the referenced page is loaded, the page does not reference any font resources whose EmbeddingOption property is set to XPS_FONT_EMBEDDING_RESTRICTED.

    If the referenced page is not loaded, it does not have a relationship with a font resource whose EmbeddingOption property is set to XPS_FONT_EMBEDDING_RESTRICTED.

     

Return value

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

Return code Description
S_OK

The method succeeded.

E_POINTER

restrictedFonts is NULL.

 

Remarks

This value is not updated automatically. If fonts or glyphs are added or removed such that the value changes, HasRestrictedFonts must be called again to get the current value.

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

IXpsOMPageReference

XPS_FONT_EMBEDDING_RESTRICTED

XML Paper Specification