| title | Text |
|---|---|
| subtitle | Learn how draw text |
| next_topic | audio |
| layout | learn |
Text with OpenType fonts (.ttf or .otf file extension) can be drawn in the window like so:
Text.new(text: 'Hello')Here are all the possible instance attributes:
Text.new(
text: 'Hello',
x: 150, y: 470,
font: 'vera.ttf',
size: 20,
color: 'blue',
rotate: 90,
z: 10
)Continue to the [next topic »](/learn/{{ page.next_topic }})