TexturePackFont.new

From GiderosMobile
Revision as of 16:11, 6 September 2021 by Hgy29 (talk | contribs)

Available since: Gideros 2021.9
Class: TexturePackFont

Description

Creates a new TexturePackFont object.

TexturePackFont.new(texturePack,mappings,scale,anchor)

Parameters

texturePack: (TexturePack) The TexturePack object that will be wrapped in this font
mappings: (table) A character to filename map to assictae characters with TexturePack images
scale: (double) A scale factor to apply to the texture pack images (default = 1)
anchor: (double) Where the images should be laid relative to the text baseline (default = 1)