Reference   Language | Libraries | Comparison | Changes

ArduinoGraphics : ArduinoGraphics class

textFont()

Description

Sets the font uses for text. The library current has the Font_4x6 and Font_5x7 built in.

Syntax

YourScreen.textFont(font)

Parameters

font: font to set

Returns

Nothing

Example


YourScreen.beginDraw();
YourScreen.clear();
YourScreen.stroke(255, 255, 255);
YourScreen.textFont(Font_5x7);
YourScreen.text("abc", 0, 1);
YourScreen.endDraw();

See Also



Reference Home

Corrections, suggestions, and new documentation should be posted to the Forum.

The text of the Arduino reference is licensed under a Creative Commons Attribution-ShareAlike 3.0 License. Code samples in the reference are released into the public domain.