Smart quotes!

Closes #50
This commit is contained in:
Andy Meneely
2015-04-04 16:02:20 -04:00
parent 874bdba8bc
commit 674397c005
8 changed files with 93 additions and 12 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ end
Squib::Deck.new(cards: 3) do
embed_text = 'Take 1 :tool: and gain 2 :health:.'
text(str: embed_text, font: 'Sans', font_size: [18, 25, 32],
text(str: embed_text, font: 'Sans', font_size: [18, 32, 45],
x: 0, y: 0, width: 180, height: 300, valign: :bottom,
align: :left, ellipsize: false, justify: false, hint: :cyan) do |embed|
embed.svg key: ':tool:', width: 28, height: 28, file: 'spanner.svg'
+3 -3
View File
@@ -23,12 +23,12 @@ Squib::Deck.new(width: 825, height: 1125, cards: 3) do
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',
text str: 'This text has fixed width, fixed height, center-aligned, middle-valigned, has a red hint, and "smart quotes"',
hint: :red,
x: 65, y: 400,
width: 300, height: 125,
align: :center, valign: 'MIDDLE', #case-insenstive strings allowed too.
font: 'Arial 18'
align: :center, valign: 'MIDDLE', # these can be specified with case-insenstive strings too
font: 'Serif 16', quotes: [:smart,:smart, :dumb]
extents = text str: 'Ink extent return value',
x: 65, y: 550,