CompositeFont.new

From GiderosMobile
Revision as of 03:47, 30 March 2020 by MoKaLux (talk | contribs) (made it more clear to use curly braces)


Available since: Gideros 2019.1
Class: CompositeFont

Description

Creates a new CompositeFont object.

Each layer of the composited font is defined by a table. The following fields are possible:

  • font: The font object to use for this layer (mandatory)
  • color: The color to use when rendering this layer
  • alpha: The alpha value to use with the color
  • x: The X offset to apply
  • y: The Y offset to apply

Note: TTFont without any character list specification aren't supported in composite fonts.

CompositeFont.new{definition} -- * please notice the curly braces instead of the parenthesis *

Note 2: CompositeFont uses curly braces { } instead of parentheses ( ).

Parameters

definition: (table) A list of layer definition tables