IPXC_Document::CreateNewFont Method
From PDF XChange PDF SDK
(Automatic page editing by robot) |
|||
(9 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
+ | __NOTOC__ | ||
[[Category:Editor]] | [[Category:Editor]] | ||
{{#customTitle:IPXC_Document::CreateNewFont Method}} | {{#customTitle:IPXC_Document::CreateNewFont Method}} | ||
+ | {{#parentPage:PXV:IPXC_Document#Methods|CreateNewFont|method}} | ||
+ | {{ToReview}} | ||
− | + | Creates new [[PXV:IPXC_Font|IPXC_Font]] by the given font's face name and style parameters. | |
== Syntax == | == Syntax == | ||
− | <pre class="brush:cpp;gutter:false">HRESULT CreateNewFont([in] | + | <pre class="brush:cpp;gutter:false">HRESULT CreateNewFont([in] LPWSTR pFaceName, |
+ | [in, defaultvalue(0)] ULONG nFlags, | ||
+ | [in, defaultvalue(0)] ULONG nWeight, | ||
+ | [out, retval] IPXC_Font** pFont);</pre> | ||
== Parameters == | == Parameters == | ||
− | ; | + | ;pFaceName |
− | :[in] Value of | + | :[in] Value of LPWSTR containing the font's face name. |
− | ; | + | ;nFlags |
− | :[in, | + | :[in, defaultvalue(0)] Value of ULONG containing the [[PXV:PXC_CreateFontFlags|create font flags]]. |
− | ; | + | ;nWeight |
− | :[in, | + | :[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 21: | Line 27: | ||
== See Also == | == See Also == | ||
− | + | [[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.