- gcx:font(newfont)
- fnt = gcx:font()
SYNOPSIS
DESCRIPTION
If specified, newfont makes the graphics context gcx use it as the font
for drawing text.
With no arguments, returns the font currently used by gcx.
With no arguments, returns the font currently used by gcx.
RETURN VALUE
The font handle which is currently used by gcx.
ERRORS
Raises an error if gcx is not a graphics context or if newfont is not a font handle.
EXAMPLE
>
gcx:font(gfx.default_font())