gb.display.setFont

From Gamebuino Wiki
Revision as of 2016-12-15T01:43:14 by Yawn (talk | contribs) (updated example url)
Jump to: navigation, search

Description

Change the font used in gb.display.print and gb.display.drawChar

The font can be either one of the default fonts or a custom font. The tools to create your own are on Gamebuino's GitHub in /utilities/font/font_editor.

To be able to use one of the default fonts, don't forget to add extern const byte font3x3[]; at the beginning of your sketch (see example below).

Default fonts
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination
font3x3 font3x5 font5x7

Syntax

gb.display.setFont(font);

Parameters

  • font: the font you want to use.

Returns

none

Example

See also