All Functions Modules Pages
sfont

Functions

SFONT sfont.load (STRING path)
 Load a SFont ready to use. More...
 
NUMBER sfont.print (SFONT sfnt, NUMBER x, NUMBER y, STRING txt)
 Print screen text using the previously loaded Sfont. More...
 
NUMBER sfont.letters (SFONT sfnt)
 amount of characters of the Sfont object. More...
 
NUMBER sfont.width (SFONT sfnt, STRING txt)
 Sfont object text width. More...
 

Detailed Description

Sfont functions.

Function Documentation

SFONT sfont.load ( STRING  path)

Load a SFont ready to use.

Parameters
pathSfont Path.
Returns
Sfont-type object.
NUMBER sfont.print ( SFONT  sfnt,
NUMBER  x,
NUMBER  y,
STRING  txt 
)

Print screen text using the previously loaded Sfont.

Parameters
sfntSfont-type object.
xX Coordinate where text will be printed.
yY Coordinate where text will be printed..
txtText to print.
Returns
Message final position(X coordinate).
NUMBER sfont.letters ( SFONT  sfnt)

amount of characters of the Sfont object.

Parameters
sfntSfont-type Object.
Returns
Amount of characters which Sfont object contains.
NUMBER sfont.width ( SFONT  sfnt,
STRING  txt 
)

Sfont object text width.

Parameters
sfntSfont object.
txtText to calculate the width.
Returns
Text width (pixels).