Skip to main content
All docs
V24.2

DXFont.GetHeight(Single) Method

Gets the font’s line spacing in pixels when drawn on a device with the specified DPI.

Namespace: DevExpress.Drawing

Assembly: DevExpress.Drawing.v24.2.dll

Declaration

public float GetHeight(
    float dpi
)

Parameters

Name Type Description
dpi Single

The vertical resolution used to calculate the font height in dots per inch.

Returns

Type Description
Single

The font height in pixels.

See Also