Table of Contents

Available since version: Gideros 2011.6


Creates a new TextField object with the specified font and text. Gideros runtime includes a
default font. If you specify nil for the font parameter while creating the TextField object, default font is used.

Syntax:, text [, sample, layout])


  • font: (FontBase) The font used for displaying this `TextField` object. If nil, default font is used.
  • text: (string, optional) The text to be displayed.
  • sample: (string) sample to determine line height
  • layout: (table) Layout parameters, see `TextField:setLayout`