Difference between revisions of "TexturePackFont.new"

From GiderosMobile
(Created page with "'''Available since:''' Gideros 2021.9<br/> '''Class:''' TexturePackFont<br/> === Description === Creates a new TexturePackFont object. <source lang="lua"> TexturePack...")
 
Line 9: Line 9:
  
 
=== Parameters ===
 
=== Parameters ===
'''texturePack''': (TexturePack) The [[TexturePack] object that will be wrapped in this font<br/>
+
'''texturePack''': (TexturePack) The [[TexturePack]] object that will be wrapped in this font<br/>
 
'''mappings''': (table) A character to filename map to assictae characters with TexturePack images<br/>
 
'''mappings''': (table) A character to filename map to assictae characters with TexturePack images<br/>
 
'''scale''': (double) A scale factor to apply to the texture pack images (default = 1)<br/>
 
'''scale''': (double) A scale factor to apply to the texture pack images (default = 1)<br/>

Revision as of 16:11, 6 September 2021

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)