Skip to content

surface.getTextSize

CrazedProgrammer edited this page Apr 23, 2017 · 3 revisions

surface.getTextSize(str, font)

  • str (string)
    Drawing text
  • font (font)
    Drawing font

Returns the total size in pixels (width, height) of the text when drawn with surf:drawText.

Clone this wiki locally