## GetHeight() {#getheight}

Returns the line spacing, in pixels, of this font.

```csharp
public float GetHeight()
```

### Return Value

The line spacing, in pixels, of this font.

### See Also

* class [Font](../)
* namespace [Aspose.Drawing](../../font/)
* assembly [Aspose.Drawing.Common](../../../)

---

## GetHeight(Graphics) {#getheight_1}

Returns the line spacing, in the current unit of a specified Graphics, of this font.

```csharp
public float GetHeight(Graphics graphics)
```

| Parameter | Type | Description |
| --- | --- | --- |
| graphics | Graphics | A Graphics that holds the vertical resolution, in dots per inch, of the display device as well as settings for page unit and page scale. |

### Return Value

The line spacing, in pixels, of this font.

### See Also

* class [Graphics](../../graphics/)
* class [Font](../)
* namespace [Aspose.Drawing](../../font/)
* assembly [Aspose.Drawing.Common](../../../)

---

## GetHeight(float) {#getheight_2}

Returns the height, in pixels, of this Font when drawn to a device with the specified vertical resolution.

```csharp
public float GetHeight(float dpi)
```

| Parameter | Type | Description |
| --- | --- | --- |
| dpi | Single | The vertical resolution, in dots per inch, used to calculate the height of the font. |

### Return Value

The height, in pixels, of this Font.

### See Also

* class [Font](../)
* namespace [Aspose.Drawing](../../font/)
* assembly [Aspose.Drawing.Common](../../../)


