Add text rotation

This commit is contained in:
David Turner
2014-10-17 08:17:07 -04:00
committed by Andy Meneely
parent cdc994b77a
commit 91e7adafd5
5 changed files with 14 additions and 7 deletions
+2 -2
View File
@@ -39,13 +39,13 @@ module Squib
# @api public
def text(opts = {})
opts = needs(opts, [:range, :str, :font, :font_size, :x, :y, :width, :height, :color, :wrap,
:align, :justify, :spacing, :valign, :markup, :ellipsize, :hint, :layout])
:align, :justify, :spacing, :valign, :markup, :ellipsize, :hint, :layout, :rotation])
opts[:range].each do |i|
@cards[i].text(opts[:str][i], opts[:font][i], opts[:font_size][i], opts[:color][i],
opts[:x][i], opts[:y][i], opts[:width][i], opts[:height][i],
opts[:markup][i], opts[:justify][i], opts[:wrap][i],
opts[:ellipsize][i], opts[:spacing][i], opts[:align][i],
opts[:valign][i], opts[:hint][i])
opts[:valign][i], opts[:hint][i], opts[:rotation][i])
end
end