Table of Contents

TTFont.new

Available since version: Gideros 2011.6

Description:

Creates a new TTFont object.

Syntax:

TTFont.new(filename, size, text, filtering)

Parameters:

  • filename: (string) The name of the TTF file to be loaded
  • size: (number) size of the font
  • text: (string, optional) if specified, TTFont caches the characters of specified text to speed up the rendering
  • filtering: (boolean, default = false) Whether or not the font texture is filtered