Sha256: a907b669fc65278ef71fbd4ef4a42d94f0ee17fe7e8e61ac1ae74aefbb122771

Contents?: true

Size: 720 Bytes

Versions: 13

Compression:

Stored size: 720 Bytes

Contents

require 'squib'

Squib::Deck.new(config: 'config_text_markup.yml') do
  background color: :white
  text str: %{"'Yaml ain't markup', he says"},
       x: 10, y: 10, width: 300, height: 200, font: 'Serif 7',
       markup: true, hint: :cyan

  text str: 'Notice also the antialiasing method.',
       x: 320, y: 10, width: 300, height: 200, font: 'Arial Bold 7'

  save_png prefix: 'config_text_'
end

Squib::Deck.new(config: 'config_disable_quotes.yml') do
  text str: %{This has typographic sugar --- and ``explicit'' quotes --- but the quotes are "dumb"},
       x: 10, y: 10, width: 300, height: 200, font: 'Serif 7',
       markup: true, hint: :cyan
  save_png prefix: 'config_disable_text_'
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
squib-0.18.0 samples/config/config_text_markup.rb
squib-0.17.2 samples/config/config_text_markup.rb
squib-0.17.1 samples/config/config_text_markup.rb
squib-0.17.0 samples/config/config_text_markup.rb
squib-0.16.0 samples/config/config_text_markup.rb
squib-0.16.0.pre.preview2 samples/config/config_text_markup.rb
squib-0.16.0.pre.preview1 samples/config/config_text_markup.rb
squib-0.15.3 samples/config/config_text_markup.rb
squib-0.15.0 samples/config/config_text_markup.rb
squib-0.14.3.pre1 samples/config/config_text_markup.rb
squib-0.14.1 samples/config/config_text_markup.rb
squib-0.14.0 samples/config/config_text_markup.rb
squib-0.14.beta1 samples/config/config_text_markup.rb