UIDLGLOGFONT::lfHeight Field

 

Specifies the height, in logical units, of the character cell or character of the font.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

public:
[ComAliasNameAttribute("Microsoft.VisualStudio.OLE.Interop.LONG")]
int lfHeight

Field Value

Type: System::Int32

The character height value, also known as the em height, is the character cell height value minus the internal-leading value. The font mapper interprets the value specified in lfHeight in the following manner.

Value

Meaning

> 0

The font mapper transforms this value into device units and matches it against the cell height of the available fonts.

0

The font mapper uses a default height value when it searches for a match.

< 0

The font mapper transforms this value into device units and matches its absolute value against the character height of the available fonts.

For all height comparisons, the font mapper looks for the largest font that does not exceed the requested size. This mapping occurs when the font is used for the first time.

From uilocale.idl.

[C++]

Return to top
Show: