IPXC_Document::CreateNewFont Method
From PDF XChange PDF SDK
m (Automatic page editing by robot) |
|||
(4 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
[[Category:Editor]] | [[Category:Editor]] | ||
{{#customTitle:IPXC_Document::CreateNewFont Method}} | {{#customTitle:IPXC_Document::CreateNewFont Method}} | ||
− | {{#parentPage:PXV:IPXC_Document|CreateNewFont | + | {{#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 12: | Line 11: | ||
[in, defaultvalue(0)] ULONG nFlags, | [in, defaultvalue(0)] ULONG nFlags, | ||
[in, defaultvalue(0)] ULONG nWeight, | [in, defaultvalue(0)] ULONG nWeight, | ||
− | [out, retval] IPXC_Font** | + | [out, retval] IPXC_Font** pFont);</pre> |
== 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 |
− | :[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 == | ||
Line 28: | Line 27: | ||
== See Also == | == See Also == | ||
− | [[PXV:IPXC_Document|IPXC_Document]] | + | [[PXV:IPXC_Document|IPXC_Document]] |
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.