IPXC_Document::CreateNewFont Method

From PDF XChange PDF SDK
Jump to: navigation, search


Creates new IPXC_Font by the given font's face name and style parameters.

Syntax

HRESULT CreateNewFont([in]                   LPWSTR       pFaceName,
                      [in, defaultvalue(0)]  ULONG        nFlags,
                      [in, defaultvalue(0)]  ULONG        nWeight,
                      [out, retval]          IPXC_Font**  pFont);

Parameters

pFaceName
[in] Value of LPWSTR containing the font's face name.
nFlags
[in, defaultvalue(0)] Value of ULONG containing the create font flags.
nWeight
[in, defaultvalue(0)] Value of ULONG containing the weight of the font. FW_NORMAL by default.
pFont
[out, retval] Pointer to IPXC_Font containing the resulting font.

Return Value

Returns S_OK if operation was successful or error code in other cases.

See Also

IPXC_Document