Difference between revisions of "Gb.display.setFont"
From Gamebuino Wiki
(updated example url) |
m (Fixed link to font editor) |
||
Line 4: | Line 4: | ||
Change the font used in <code>gb.display.print</code> and <code>gb.display.drawChar</code> | Change the font used in <code>gb.display.print</code> and <code>gb.display.drawChar</code> | ||
− | The font can be either one of the default fonts or a custom font. The tools to create your own are on [https://github.com/Rodot/Gamebuino | + | The font can be either one of the default fonts or a custom font. The tools to create your own are on [https://github.com/Rodot/Gamebuino-Font GitHub]. |
To be able to use one of the default fonts, don't forget to add <code>extern const byte font3x3[];</code> at the beginning of your sketch (see example below). | To be able to use one of the default fonts, don't forget to add <code>extern const byte font3x3[];</code> at the beginning of your sketch (see example below). |
Latest revision as of 2016-12-31T10:12:41
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 GitHub.
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).
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