Expanding the Working With Text section

[skip ci]
This commit is contained in:
Andy Meneely
2015-07-29 12:20:35 -04:00
parent 10202edb52
commit 40ac6d2b6b
3 changed files with 30 additions and 14 deletions
+4 -3
View File
@@ -50,14 +50,15 @@ Squib::Deck.new(width: 825, height: 1125, cards: 3) do
# Text hints are guides for showing you how your text boxes are laid out exactly
hint text: :cyan
text str: 'Text hints are also globally togglable!',
x: 65, y: 625,
font: 'Arial 22'
set font: 'Serif 20' # Impacts all future text calls (unless they specify differently)
text str: 'Text hints & fonts are globally togglable!', x: 65, y: 625
set font: :default # back to Squib-wide default
hint text: :off
text str: 'See? No hint here.',
x: 565, y: 625,
font: 'Arial 22'
# Text can be rotated, in radians, about the upper-left corner of the text box.
text str: 'Rotated',
x: 565, y: 675, angle: 0.2,
font: 'Arial 18', hint: :red