TexturePackFont.new

From GiderosMobile
Revision as of 17:06, 6 September 2021 by Hgy29 (talk | contribs) (Created page with "'''Available since:''' Gideros 2021.9<br/> '''Class:''' TexturePackFont<br/> === Description === Creates a new TexturePackFont object. <source lang="lua"> TexturePack...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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)