Getting text to work
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user