> For the complete documentation index, see [llms.txt](https://refresh-cx.gitbook.io/refresh.cx-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://refresh-cx.gitbook.io/refresh.cx-docs/fonts/get-text-height.md).

# Get Text Height

Returns the height of the text at the given size, optionally in a named font.

## **Syntax**

```lua
refresh.Fonts.GetTextHeight(text, size [, fontName]) -> Float
```

## **Return**

{% hint style="success" %}
Float (height)
{% endhint %}

## Usage Example

```lua
local h = refresh.Fonts.GetTextHeight("Hello", 15.0)
```
