From 014646ce9fdc42a69a85a3ab24828fef815442da Mon Sep 17 00:00:00 2001 From: Andy Meneely Date: Mon, 23 Mar 2015 13:52:54 -0400 Subject: [PATCH] Better default to avoid CAIRO_STATUS_INVALID_SIZE errors For some silly reason Cairo checks the width and height for invalid size, not the product: http://lists.cairographics.org/archives/cairo/2010-December/021424.html --- lib/squib/constants.rb | 2 +- lib/squib/graphics/save_doc.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/squib/constants.rb b/lib/squib/constants.rb index a6ee06a..b1e503a 100644 --- a/lib/squib/constants.rb +++ b/lib/squib/constants.rb @@ -8,7 +8,7 @@ module Squib :angle => 0, :blend => :none, :color => :black, - :columns => 1, + :columns => 5, :count_format => '%02d', :default_font => 'Arial 36', :dir => '_output', diff --git a/lib/squib/graphics/save_doc.rb b/lib/squib/graphics/save_doc.rb index b2c2523..8f0f147 100644 --- a/lib/squib/graphics/save_doc.rb +++ b/lib/squib/graphics/save_doc.rb @@ -67,7 +67,7 @@ module Squib # save_sheet prefix: 'sheet_', margin: 75, gap: 5, trim: 37 # # @option opts [Enumerable] range (:all) the range of cards over which this will be rendered. See {file:README.md#Specifying_Ranges Specifying Ranges} - # @option opts colulmns [Integer] (1) the number of columns in the grid + # @option opts colulmns [Integer] (5) the number of columns in the grid # @option opts rows [Integer] (:infinite) the number of rows in the grid. When set to :infinite, the sheet scales to the rows needed. If there are more cards than rows*columns, new sheets are started. # @option opts [String] prefix (card_) the prefix of the file name(s) # @option opts [String] count_format (%02d) the format string used for formatting the card count (e.g. padding zeros). Uses a Ruby format string (see the Ruby doc for Kernel::sprintf for specifics)