IFont::SetRatio method

Converts the scaling factor for this font between logical units and HIMETRIC units. HIMETRIC units are used to express the point size in the IFont::get_Size and IFont::put_Size methods. The values passed to IFont::SetRatio are used to compute the display size of the font in logical units from the value in the Size property:

Display Size = ( cyLogical / cyHimetric ) * Size

Syntax


HRESULT SetRatio(
  [in] LONG cyLogical,
  [in] LONG cyHimetric
);

Parameters

cyLogical [in]

The font size, in logical units.

cyHimetric [in]

The font size, in HIMETRIC units.

Return value

The method supports the standard return values E_UNEXPECTED, E_INVALIDARG, and S_OK.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

OCIdl.h

IDL

OCIdl.idl

IID

IID_IFont is defined as BEF6E002-A874-101A-8BBA-00AA00300CAB

See also

IFont
IFont::get_Size
IFont::put_Size

 

 

Show: