IUIX_Inst::CreateFontFromFont Method
From PDF XChange PDF SDK
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 CreateFontFromFont([in] IUIX_Font* | + | <pre class="brush:cpp;gutter:false">HRESULT CreateFontFromFont([in] IUIX_Font* SrcFont, |
− | [in, defaultvalue(0.0)] double | + | [in, defaultvalue(0.0)] double NewFontSize, |
− | [in, defaultvalue(0)] LONG | + | [in, defaultvalue(0)] LONG Flags, |
− | [in, defaultvalue(0)] LONG | + | [in, defaultvalue(0)] LONG FlagsMask, |
− | [out, retval] IUIX_Font** | + | [out, retval] IUIX_Font** Font);</pre> |
== Parameters == | == Parameters == | ||
− | ; | + | ;SrcFont |
:[in] source ''font'' object of [[PXV:IUIX_Font|IUIX_Font]] interface. | :[in] source ''font'' object of [[PXV:IUIX_Font|IUIX_Font]] interface. | ||
− | ; | + | ;NewFontSize |
:[in, defaultvalue(0.0)] specifies new font size. | :[in, defaultvalue(0.0)] specifies new font size. | ||
− | ; | + | ;Flags |
:[in, defaultvalue(0)] specifies font style with flags from [[PXV:UIX_CreateFontFlags|UIX_CreateFontFlags]] enumeration. | :[in, defaultvalue(0)] specifies font style with flags from [[PXV:UIX_CreateFontFlags|UIX_CreateFontFlags]] enumeration. | ||
− | ; | + | ;FlagsMask |
− | :[in, defaultvalue(0)] specifies style mask with flags from [[PXV:UIX_CreateFontFlags|UIX_CreateFontFlags]] enumeration. This parameter removes specified styles from previous font and applies only those flags of ''' | + | :[in, defaultvalue(0)] specifies style mask with flags from [[PXV:UIX_CreateFontFlags|UIX_CreateFontFlags]] enumeration. This parameter removes specified styles from previous font and applies only those flags of '''Flags''' parameter to the new font that were set in '''FlagsMask'''. For instance, if previous font style was <code>UIX_CreateFont_Underline</code>, and new font style in '''Flags''' parameter is set to <code>UIX_CreateFont_Bold</code> with '''nStyleMask''' parameter set to <code>(UIX_CreateFont_Bold | UIX_CreateFont_Underline)</code>, then given font will be first set to ''non-underlined'', and then to ''bold''. If '''nStyleMask''' is set to <code>UIX_ComboItemStyle_Bold</code>, then font style will be changed to ''bold'', but remain ''underlined''. |
− | ; | + | ;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:50, 12 June 2015
Creates new object of IUIX_Font interface from another IUIX_Font object.
Syntax
HRESULT CreateFontFromFont([in] IUIX_Font* SrcFont, [in, defaultvalue(0.0)] double NewFontSize, [in, defaultvalue(0)] LONG Flags, [in, defaultvalue(0)] LONG FlagsMask, [out, retval] IUIX_Font** Font);
Parameters
- SrcFont
- [in] source font object of IUIX_Font interface.
- NewFontSize
- [in, defaultvalue(0.0)] specifies new font size.
- Flags
- [in, defaultvalue(0)] specifies font style with flags from UIX_CreateFontFlags enumeration.
- FlagsMask
- [in, defaultvalue(0)] specifies style mask with flags from UIX_CreateFontFlags enumeration. This parameter removes specified styles from previous font and applies only those flags of Flags parameter to the new font that were set in FlagsMask. For instance, if previous font style was
UIX_CreateFont_Underline
, and new font style in Flags parameter is set toUIX_CreateFont_Bold
with nStyleMask parameter set to(UIX_CreateFont_Bold | UIX_CreateFont_Underline)
, then given font will be first set to non-underlined, and then to bold. If nStyleMask is set toUIX_ComboItemStyle_Bold
, then font style will be changed to bold, but remain underlined. - Font
- [out, retval] return object of IUIX_Font interface.
Return Value
Returns S_OK if operation was successful or error code in other cases.