Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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
[in] cyLogical
The font size, in logical units.
[in] cyHimetric
The font size, in HIMETRIC units.
Return value
The method supports the standard return values E_UNEXPECTED, E_INVALIDARG, and S_OK.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | ocidl.h |