Table of Contents

FontBase:getBounds

Available since version: Gideros 2011.6

Description:

Returns the tight bounding rectangle of the characters in the string specified by text.

Syntax:

(number), (number), (number), (number) = FontBase:getBounds(text)

Parameters:

  • text: (string)

Return value:

  • number: x coordinate of the bound
  • number: y coordinate of the bound
  • number: width of the bound
  • number: height of the bound