Added a font_size override for font description

This commit is contained in:
Andy Meneely
2014-09-19 23:31:44 -04:00
parent 350314f2a8
commit fd2d10771a
5 changed files with 14 additions and 7 deletions
+3
View File
@@ -22,6 +22,9 @@ Squib::Deck.new(width: 825, height: 1125, cards: 3) do
text str: "Font strings are expressive!", x:65, y: 300,
font: 'Arial,Verdana weight=900 style=oblique 36'
text str: "Font string sizes can be overridden per card.", x: 65, y: 350,
font: 'Impact 36', font_size: [16, 20, 24]
text str: "This text has fixed width, fixed height, center-aligned, middle-valigned, and has a red hint",
hint: :red,
x: 65, y: 400,