IFont::SetRatio

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

HRESULT SetRatio(

long cyLogical ,

//Font size in logical units

long cyHimetric

//Font size in HIMETRIC units

);

Parameters

cyLogical
[in] Font size in logical units.
cyHimetric
[in] Font size in HIMETRIC units.

Return Values

The method supports the standard return values E_UNEXPECTED and E_INVALIDARG, as well as the following:

S_OK
The ratio was set successfully.

See Also

IFont::get_Size, IFont::put_Size