All Functions Modules Pages
font

Functions

FONT font.load (STRING path)
 Load a font for use it later. More...
 
NIL font.setdefault (NUMBER type)
 Set the font type as default for function screen.print(). More...
 
NIL font.setdefault (FONT fnt)
 Sets a font as default for the function screen.print(). More...
 
NIL font.setdefault (STRING path)
 Sets a font as default for the function screen.print(). More...
 
NUMBER font.type (FONT fnt)
 Allows to know the type of the font. More...
 

Detailed Description

Manage pgf or ttf fonts.

Function Documentation

FONT font.load ( STRING  path)

Load a font for use it later.

Parameters
pathPath to the font to load (pgf, pvf or ttf format).
Returns
Font object type, ready to use.
NIL font.setdefault ( NUMBER  type)

Set the font type as default for function screen.print().

Parameters
typeThe type of font to set, could be any of the following values:
  • __FONT_TYPE_PGF
  • __FONT_TYPE_PVF
Note
This argument could be skiped, If done so, Onelua's default pgf font will be set.
Returns
Nothing.
NIL font.setdefault ( FONT  fnt)

Sets a font as default for the function screen.print().

Parameters
fnta font already loaded.
Note
You can omit this argument, If done so, Onelua's default pgf font will be set.
Returns
Nothing.
NIL font.setdefault ( STRING  path)

Sets a font as default for the function screen.print().

Parameters
pathPath to the font to load (pgf or ttf format).
Note
You can omit this argument, If done so, Onelua's default pgf font will be set.
Returns
Nothing.
NUMBER font.type ( FONT  fnt)

Allows to know the type of the font.

Parameters
fntAn font type object.
Returns
A number: 1 font is ttf, 2 font is pgf, 3 font is pvf.