## Font::GetHeight(const SharedPtr\<Graphics\>\&) method


Returns the line spacing of the font represented by the current object, in the current unit of a specified [Graphics](../../graphics/) object.

```cpp
float System::Drawing::Font::GetHeight(const SharedPtr<Graphics> &graphics)
```


| Parameter | Type | Description |
| --- | --- | --- |
| graphics | const SharedPtr\<Graphics\>\& | A [Graphics](../../graphics/) object that specifies the measurement units |

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Graphics](../../graphics/)
* Class [Font](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.TeX for C++](../../../)
## Font::GetHeight(float) method


Returns the height of the font represented by the current object when drawn to a display device with the specified vertical resolution.

```cpp
float System::Drawing::Font::GetHeight(float dpi=DEFAULT_FONT_OPERATIONS_DPI)
```


| Parameter | Type | Description |
| --- | --- | --- |
| dpi | float | The vertical resolution of the display device |

### ReturnValue

The hegiht of the font in pixels

## See Also

* Class [Font](../)
* Namespace [System::Drawing](../../)
* Library [Aspose.TeX for C++](../../../)
