Getting text to work

This commit is contained in:
Andy Meneely
2014-07-16 11:26:48 -04:00
parent 9c51b03783
commit c5bc1fc103
5 changed files with 30 additions and 9 deletions
+4
View File
@@ -1,5 +1,8 @@
module Squib
class Deck
def fontify (font)
font
end
def font(type: 'Arial', size: 12, **options)
end
@@ -10,6 +13,7 @@ module Squib
def text(range: :all, str: '', font: :use_set, x: 0, y: 0, **options)
range = rangeify(range)
str = [str] * @cards.size unless str.respond_to? :each
font = fontify(font)
range.each do |i|
cards[i].text(str[i], font, x, y, options)
end