Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions _pages/learn/text.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ layout: learn
Text with OpenType fonts (`.ttf` or `.otf` file extension) can be drawn in the window like so:

```ruby
Text.new('Hello')
Text.new(text: 'Hello')
```

Here are all the possible instance attributes:

```ruby
Text.new(
'Hello',
text: 'Hello',
x: 150, y: 470,
font: 'vera.ttf',
size: 20,
Expand Down