# lcd.sizeText(text \[, flags])

Get the width and height of a text string drawn with flags

@status current Introduced in 2.5.0

## Parameters

* `text` (string)
* `flags` (optional) please see [flags](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/constants/flags-and-pattern-constants) and [color](https://luadoc.edgetx.org/edgetx-v2.8/part_iii_-_opentx_lua_api_reference/constants/color-constants) constants

## Return value

* `w,h` (integers) width and height of the text
