Difference between revisions of "Gb.display.fontSize"

From Gamebuino Wiki
Jump to: navigation, search
m (Rodot moved page Gb.display.textSize to Gb.display.fontScale without leaving a redirect: wrong name)
m (Rodot moved page Gb.display.fontScale to Gb.display.fontSize without leaving a redirect)
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
__NOTOC__
 
__NOTOC__
 
== Description ==
 
== Description ==
Change the scale of the font when using <code>gb.display.print</code>.
+
Change the size of the font when using <code>gb.display.print</code>.
  
 
== Syntax ==
 
== Syntax ==
<pre>gb.display.setTextSize(scale);</pre>
+
<pre>gb.display.fontSize = size;</pre>
  
== Parameters ==
+
== Value ==
* scale (''byte''): how much you want to scale up the font. Default value is 1. You probably don't wan't do go over 2-3 or the font won't fit the screen.
+
* how much you want to scale up the font. Default value is 1. You probably don't wan't do go over 2-3 or the font won't fit the screen.
 
 
== Returns ==
 
none
 
  
 
== Example ==
 
== Example ==

Latest revision as of 2014-06-24T21:37:15

Description

Change the size of the font when using gb.display.print.

Syntax

gb.display.fontSize = size;

Value

  • how much you want to scale up the font. Default value is 1. You probably don't wan't do go over 2-3 or the font won't fit the screen.

Example

See also