TexturePackFont.new
From GiderosMobile
Revision as of 16: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...")
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)