You are here: Lua Scripting Resources eGuide > Lua Scripting API Reference Guide > Graphics Library > setFont

9.14 setFont

gc:setFont(family, style, size)

Sets the font for drawing text and measuring text size. Family may be “sansserif” or “serif”. Style may be “r” for regular, “b” for bold, “i” for italic, or “bi” for bold italic.

The point size of the font is restricted on the TI-Nspire™ CX and older handhelds. Choose one of these sizes: 7, 9, 10, 11, 12, or 24. Any font size supported by Windows® or Mac OS® can be used on the desktop software.

Returns the font family, style, and size previously in effect.

Introduced in platform.apiLevel = '1.0'