IUIX_Inst::CreateNewFont Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
 
(8 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
[[Category:Editor]]
 
[[Category:Editor]]
 
{{#customTitle:IUIX_Inst::CreateNewFont Method}}
 
{{#customTitle:IUIX_Inst::CreateNewFont Method}}
{{#parentPage:PXV:IUIX_Inst|CreateNewFont Method|method}}
+
{{#parentPage:PXV:IUIX_Inst#Methods|CreateNewFont|method}}
{{ToWrite}}
+
{{ToReview}}
+
  
The method of interface of PDF-XChange Editor SDK.
+
 
 +
Creates new ''font'' object of [[PXV:IUIX_Font|IUIX_Font]] interface.
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT CreateNewFont([in]                  BSTR        pFontName,
+
<pre class="brush:cpp;gutter:false">HRESULT CreateNewFont([in]                  BSTR        sFontName,
 
                       [in]                  double      nFontSize,
 
                       [in]                  double      nFontSize,
 
                       [in, defaultvalue(0)]  LONG        nFlags,
 
                       [in, defaultvalue(0)]  LONG        nFlags,
                       [out, retval]          IUIX_Font**  ppFont);</pre>
+
                       [out, retval]          IUIX_Font**  pFont);</pre>
  
 
== Parameters ==
 
== Parameters ==
;pFontName
+
;sFontName
:[in]  Value of BSTR.
+
:[in]  specifies name of the font that should be used.
 
;nFontSize
 
;nFontSize
:[in]  Value of double.
+
:[in]  specifies the size of the font.
 
;nFlags
 
;nFlags
:[in, defaultvalue(0)]  Value of LONG.
+
:[in, defaultvalue(0)]  specifies font style (bold, underline etc.) with flags from [[PXV:UIX_CreateFontFlags|UIX_CreateFontFlags]] enumeration.
;ppFont
+
;pFont
:[out, retval]  Pointer to [[PXV:IUIX_Font|IUIX_Font]].
+
:[out, retval]  return object of [[PXV:IUIX_Font|IUIX_Font]] interface.
  
 
== Return Value ==
 
== Return Value ==
Returns S_OK if operation was successful or error code in other cases.
+
Returns S_OK if the operation was successful, or will return an error code if it fails.  
  
 
== See Also ==
 
== See Also ==
[[PXV:IUIX_Inst|IUIX_Inst]].
+
[[PXV:IUIX_Inst|IUIX_Inst]]

Latest revision as of 10:04, 16 June 2015


Creates new font object of IUIX_Font interface.

Syntax

HRESULT CreateNewFont([in]                   BSTR         sFontName,
                      [in]                   double       nFontSize,
                      [in, defaultvalue(0)]  LONG         nFlags,
                      [out, retval]          IUIX_Font**  pFont);

Parameters

sFontName
[in] specifies name of the font that should be used.
nFontSize
[in] specifies the size of the font.
nFlags
[in, defaultvalue(0)] specifies font style (bold, underline etc.) with flags from UIX_CreateFontFlags enumeration.
pFont
[out, retval] return object of IUIX_Font interface.

Return Value

Returns S_OK if the operation was successful, or will return an error code if it fails.

See Also

IUIX_Inst