Difference between revisions of "Font.new"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 4: Line 4:
 
=== Description ===
 
=== Description ===
 
Creates a new '''Font''' object.
 
Creates a new '''Font''' object.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
Font.new(txtfile,imagefile,filtering)
 
Font.new(txtfile,imagefile,filtering)
 
</source>
 
</source>

Revision as of 15:28, 13 July 2023

Available since: Gideros 2011.6
Class: Font

Description

Creates a new Font object. <syntaxhighlight lang="lua"> Font.new(txtfile,imagefile,filtering) </source>

Parameters

txtfile: (string) path to the font text file
imagefile: (string) path to the font image file
filtering: (boolean) whether or not the font texture is filtered (default = false)