Update text_options.rb sample, and expected output
This commit is contained in:
@@ -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, has a red hint, and "smart quotes"',
|
||||
text str: 'This text has fixed width, fixed height, center-aligned, middle-valigned, and has a red hint',
|
||||
hint: :red,
|
||||
x: 65, y: 400,
|
||||
width: 300, height: 125,
|
||||
align: :center, valign: 'MIDDLE', # these can be specified with case-insenstive strings too
|
||||
font: 'Serif 16', quotes: [:smart,:smart, :dumb]
|
||||
font: 'Serif 16'
|
||||
|
||||
extents = text str: 'Ink extent return value',
|
||||
x: 65, y: 550,
|
||||
@@ -93,6 +93,5 @@ Squib::Deck.new(width: 825, height: 1125, cards: 3) do
|
||||
valign: :bottom,
|
||||
font: 'Serif 18', hint: :cyan
|
||||
|
||||
|
||||
save prefix: 'text_', format: :png
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user