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 and color constants

Return value

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

Last updated