Skip to main content
All docs
V25.1
  • 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.v25.1.dll

    NuGet Package: DevExpress.Drawing

    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