IUIX_Inst::CreateNewFont Method
From PDF XChange PDF SDK
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.