IUIX_Inst::CreateNewFont Method

From PDF XChange PDF SDK
Revision as of 03:04, 4 June 2015 by Dsbot (Talk | contribs) (Automatic page editing by robot)

Jump to: navigation, search


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 operation was successful or error code in other cases.

See Also

IUIX_Inst