samples/embed_text.rb in squib-0.5.1 vs samples/embed_text.rb in squib-0.6.0

- old
+ new

@@ -59,10 +59,10 @@ embed_text = ':tool:Center-aligned works :tool: with :health: and :purse:' text(str: embed_text, font: 'Sans 21', x: 400, y: 320, width: 180, height: 300, align: :center, ellipsize: false, justify: false, hint: :magenta) do |embed| - embed.svg key: ':tool:', width: 28, height: 28, file: 'spanner.svg' + embed.svg key: ':tool:', width: 28, height: 28, data: File.read('spanner.svg') embed.svg key: ':health:', width: 28, height: 28, file: 'glass-heart.svg' embed.png key: ':purse:', width: 28, height: 28, file: 'shiny-purse.png' end embed_text = 'Markup --- and typography replacements --- with ":tool:" icons <i>won\'t</i> fail' \ No newline at end of file