IPXC_Document::CreateNewFont Method
From PDF XChange PDF SDK
m (Automatic page editing by robot) |
|||
Line 3: | Line 3: | ||
{{#customTitle:IPXC_Document::CreateNewFont Method}} | {{#customTitle:IPXC_Document::CreateNewFont Method}} | ||
{{#parentPage:PXV:IPXC_Document#Methods|CreateNewFont|method}} | {{#parentPage:PXV:IPXC_Document#Methods|CreateNewFont|method}} | ||
− | |||
{{ToReview}} | {{ToReview}} | ||
− | + | Creates new [[PXV:IPXC_Font|IPXC_Font]] by the given font's face name and style parameters. | |
== Syntax == | == Syntax == | ||
Line 16: | Line 15: | ||
== Parameters == | == Parameters == | ||
;pFaceName | ;pFaceName | ||
− | :[in] Value of LPWSTR. | + | :[in] Value of LPWSTR containing the font's face name. |
;nFlags | ;nFlags | ||
− | :[in, defaultvalue(0)] Value of ULONG. | + | :[in, defaultvalue(0)] Value of ULONG containing the [[PXV:PXC_CreateFontFlags|create font flags]]. |
;nWeight | ;nWeight | ||
− | :[in, defaultvalue(0)] Value of ULONG. | + | :[in, defaultvalue(0)] Value of ULONG containing the weight of the font. ''FW_NORMAL'' by default. |
;pFont | ;pFont | ||
− | :[out, retval] Pointer to [[PXV:IPXC_Font|IPXC_Font]]. | + | :[out, retval] Pointer to [[PXV:IPXC_Font|IPXC_Font]] containing the resulting font. |
== Return Value == | == Return Value == |
Latest revision as of 06:35, 9 June 2016
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.