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... | |
Sfont functions.
SFONT sfont.load | ( | STRING | path | ) |
Load a SFont ready to use.
path | Sfont Path. |
NUMBER sfont.print | ( | SFONT | sfnt, |
NUMBER | x, | ||
NUMBER | y, | ||
STRING | txt | ||
) |
Print screen text using the previously loaded Sfont.
sfnt | Sfont-type object. |
x | X Coordinate where text will be printed. |
y | Y Coordinate where text will be printed.. |
txt | Text to print. |
NUMBER sfont.letters | ( | SFONT | sfnt | ) |
amount of characters of the Sfont object.
sfnt | Sfont-type Object. |
NUMBER sfont.width | ( | SFONT | sfnt, |
STRING | txt | ||
) |
Sfont object text width.
sfnt | Sfont object. |
txt | Text to calculate the width. |