Graphics::setFontSize

Description

void Graphics::setFontSize( uint8_t size )

Graphics::setFontSize sets the size of the font being drawn.

Parameters

  • uint8_t size: size of the font (1 being smallest, 2 being double etc.)

Returns

none

Example

#include <Gamebuino-Meta.h>

void setup() {
  gb.begin();
}

void loop() {
  if (gb.update()) {
    gb.display.clear();

    // set the font size to double
    gb.display.setFontSize(2);

    gb.display.println("Hello World");
  }
}