Difference between revisions of "Gb.display.setFont"
From Gamebuino Wiki
m (syntax) |
(→Description: default fonts character map added) |
||
Line 3: | Line 3: | ||
== Description == | == Description == | ||
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> | ||
+ | |||
+ | {| class="wikitable" style="text-align: center;" | ||
+ | |+Default fonts | ||
+ | |[[File:Font3x3.png]] | ||
+ | |[[File:Font3x5.png]] | ||
+ | |[[File:Font5x7.png]] | ||
+ | |- | ||
+ | |font3x3 | ||
+ | |font3x5 | ||
+ | |font5x7 | ||
+ | |} | ||
== Syntax == | == Syntax == |
Revision as of 2014-08-12T20:11:54
Description
Change the font used in gb.display.print
and gb.display.drawChar
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. It can be either a default font (font3x5 or font5x7) or a custom font embedded in the game. You can tools to edit the default fonts and create your own on Gamebuino's GitHub in /utilities/font/font_editor.
Returns
none
Example