IUIX_Inst::CreateNewFont Method

From PDF XChange PDF SDK
Jump to: navigation, search
m (Automatic page editing by robot)
Line 3: Line 3:
 
{{#customTitle:IUIX_Inst::CreateNewFont Method}}
 
{{#customTitle:IUIX_Inst::CreateNewFont Method}}
 
{{#parentPage:PXV:IUIX_Inst#Methods|CreateNewFont Method|method}}
 
{{#parentPage:PXV:IUIX_Inst#Methods|CreateNewFont Method|method}}
{{ToWrite}}
 
 
{{ToReview}}
 
{{ToReview}}
  
Line 16: Line 15:
 
== Parameters ==
 
== Parameters ==
 
;pFontName
 
;pFontName
:[in]  specifies font name.
+
:[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
 
;ppFont
 
:[out, retval]  return object of [[PXV:IUIX_Font|IUIX_Font]] interface.
 
:[out, retval]  return object of [[PXV:IUIX_Font|IUIX_Font]] interface.
Line 28: Line 27:
  
 
== See Also ==
 
== See Also ==
[[PXV:IUIX_Inst|IUIX_Inst]].
+
[[PXV:IUIX_Inst|IUIX_Inst]], [[PXV:IUIX_Font|IUIX_Font]].

Revision as of 00:19, 22 May 2015


Creates new font object of IUIX_Font interface.

Syntax

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

Parameters

pFontName
[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.
ppFont
[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, IUIX_Font.