Home  Contents

gfx.font

Graphics Core4 Lua Commands

SYNOPSIS

fnt = gfx.font(filename)

DESCRIPTION

Loads font at filename. The font must be in the Core4 specific .lfn bitmap format.
A converter and design software for Windows and Linux is available from Teratronik.

RETURN VALUE

A font handle which can be used to draw text into a graphics context.

ERRORS

On error (file not found, not a font file, ...) the function returns nil.

EXAMPLE

fnt = gfx.font("/lib/fonts/fsexc8x16.lfn")

SEE ALSO