From acdb56d8948353849e141c777dc55a17df03c01d Mon Sep 17 00:00:00 2001 From: Andy Meneely Date: Wed, 1 Apr 2015 10:02:16 -0400 Subject: [PATCH] Travis fix: adding save/restore to fix matrix problem --- lib/squib/graphics/text.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/squib/graphics/text.rb b/lib/squib/graphics/text.rb index 3ace5af..2422b10 100644 --- a/lib/squib/graphics/text.rb +++ b/lib/squib/graphics/text.rb @@ -161,8 +161,9 @@ module Squib cc.move_to(0, vertical_start) cc.update_pango_layout(layout) - + cc.save cc.show_pango_layout(layout) + cc.restore embed_draws.each { |ed| ed[:draw].call(self, ed[:x], ed[:y] + vertical_start) } draw_text_hint(cc, x, y, layout, hint, angle) extents = { width: layout.extents[1].width / Pango::SCALE,