Renamed text :rotation => :angle

This commit is contained in:
Andy Meneely
2014-10-17 08:17:08 -04:00
parent 91e7adafd5
commit 393eeae450
4 changed files with 9 additions and 8 deletions
+3 -3
View File
@@ -88,12 +88,12 @@ module Squib
def text(str, font, font_size, color,
x, y, width, height,
markup, justify, wrap, ellipsize,
spacing, align, valign, hint, rotation)
Squib.logger.debug {"Placing '#{str}'' with font '#{font}' @ #{x}, #{y}, color: #{color}, etc."}
spacing, align, valign, hint, angle)
Squib.logger.debug {"Placing '#{str}'' with font '#{font}' @ #{x}, #{y}, color: #{color}, rotate: #{rotation} etc."}
use_cairo do |cc|
cc.set_source_color(color)
cc.move_to(x,y)
cc.rotate(rotation)
cc.rotate(angle)
layout = cc.create_pango_layout
font_desc = Pango::FontDescription.new(font)
font_desc.size = font_size * Pango::SCALE unless font_size.nil?