IUIX_Inst::CreateNewFont Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
m (Automatic page editing by robot)
Line 8: Line 8:
  
 
== Syntax ==
 
== Syntax ==
<pre class="brush:cpp;gutter:false">HRESULT CreateNewFont([in]                  BSTR        sFontName,
+
<pre class="brush:cpp;gutter:false">HRESULT CreateNewFont([in]                  BSTR        FontName,
                       [in]                  double      nFontSize,
+
                       [in]                  double      FontSize,
                       [in, defaultvalue(0)]  LONG        nFlags,
+
                       [in, defaultvalue(0)]  LONG        Flags,
                       [out, retval]          IUIX_Font**  pFont);</pre>
+
                       [out, retval]          IUIX_Font**  Font);</pre>
  
 
== Parameters ==
 
== Parameters ==
;sFontName
+
;FontName
 
:[in]  specifies name of the font that should be used.
 
:[in]  specifies name of the font that should be used.
;nFontSize
+
;FontSize
 
:[in]  specifies the size of the font.
 
:[in]  specifies the size of the font.
;nFlags
+
;Flags
 
:[in, defaultvalue(0)]  specifies font style (bold, underline etc.) with flags from [[PXV:UIX_CreateFontFlags|UIX_CreateFontFlags]] enumeration.
 
:[in, defaultvalue(0)]  specifies font style (bold, underline etc.) with flags from [[PXV:UIX_CreateFontFlags|UIX_CreateFontFlags]] enumeration.
;pFont
+
;Font
 
:[out, retval]  return object of [[PXV:IUIX_Font|IUIX_Font]] interface.
 
:[out, retval]  return object of [[PXV:IUIX_Font|IUIX_Font]] interface.
  

Revision as of 07:51, 12 June 2015


Creates new font object of IUIX_Font interface.

Syntax

HRESULT CreateNewFont([in]                   BSTR         FontName,
                      [in]                   double       FontSize,
                      [in, defaultvalue(0)]  LONG         Flags,
                      [out, retval]          IUIX_Font**  Font);

Parameters

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

Return Value

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

See Also

IUIX_Inst