Difference between revisions of "Gb.display.setFont"

From Gamebuino Wiki
Jump to: navigation, search
(Created page with "{{lowercase}} __NOTOC__ == Description == Change the font used in <code>gb.display.print</code> and <code>gb.display.drawChar<code> == Syntax == <pre>gb.setFont(font);</pre> ...")
 
m (syntax)
Line 2: Line 2:
 
__NOTOC__
 
__NOTOC__
 
== 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>
  
 
== Syntax ==
 
== Syntax ==
Line 8: Line 8:
  
 
== Parameters ==
 
== 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.
+
* 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 [https://github.com/Rodot/Gamebuino Gamebuino's GitHub] in /utilities/font/font_editor.
  
 
== Returns ==
 
== Returns ==

Revision as of 2014-06-24T18:22:06

Description

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

Syntax

gb.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

See also