Previous section To contents Next section

12.26 Image.TTF

DESCRIPTION
This module adds TTF (Truetype font) capability to the Image module.

NOTE
This module needs the libttf "Freetype" library

METHOD
Image.TTF.`

SYNTAX
object `()(string filename)
object `()(string filename, mapping options)

DESCRIPTION
Makes a new TTF Face object.

ARGUMENTS
argument(s)description
string filename
The filename of the TTF font or the TTC font collection.
mapping options
advanced options:
"face":int
If opening a font collection,  '.TTC',
this is used to get other fonts than the first.

RETURNS
0 if failed.

12.26.1 Image.TTF.Face

12.26.2 Image.TTF.FaceInstance


Previous section To contents Next section