> For the complete documentation index, see [llms.txt](https://doc.open-tx.org/opentx-2-2-lua-reference-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.open-tx.org/opentx-2-2-lua-reference-guide/part_iii_-_opentx_lua_api_reference/lcd_functions/drawtext.md).

# lcd.drawText(x, y, text \[, flags])

Draw a text beginning at (x,y)

@status current Introduced in 2.0.0, `SHADOWED` introduced in 2.2.1

### Parameters

* `x,y` (positive numbers) starting coordinate
* `text` (string) text to display
* `flags` (unsigned number) drawing flags. All values can be combined together using the + character. ie BLINK + DBLSIZE. See the [Appendix](/opentx-2-2-lua-reference-guide/part_vii_-_appendix/fonts.md) for available characters in each font set.
  * `0 or not specified` normal font
  * `XXLSIZE` jumbo sized font
  * `DBLSIZE` double size font
  * `MIDSIZE` mid sized font
  * `SMLSIZE` small font
  * `INVERS` inverted display
  * `BLINK` blinking text
  * `SHADOWED` Horus only, apply a shadow effect

### Return value

none

## Examples

[lcd/drawText-example](https://raw.githubusercontent.com/opentx/lua-reference-guide/opentx_2.2/lcd/drawText-example.lua)

```lua
local function run(event)
  lcd.clear()
  lcd.drawText(1, 1,"drawText() example", 0)
  lcd.drawText(1, 11,"0 - default", 0)
  lcd.drawText(1, 21,"BLINK", BLINK)
  lcd.drawText(1, 31,"INVERS + BLINK", INVERS + BLINK)
  lcd.drawText(120, 1,"XXLSIZE", DBLSIZE)
  lcd.drawText(120, 21,"MIDSIZE", MIDSIZE)
  lcd.drawText(120, 36,"SMLSIZE", SMLSIZE)
end

return{run=run}
```

![](/files/-MRzpRJ0aMzsXiWb88gg)
