Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (38 sloc) 1.11 KB

No. 1: para

banner : Character size 48 pixels
title : 34 pixels
subtitle : 26 pixels
tagline : 18 pixels
caption : 14 pixels
para (paragraph) : 12 pixels
inscription : 10 pixels

# sample1.rb
Shoes.app :width => 230, :height => 80 do
  para 'Testing, test, test. ',
    'Breadsticks. ',
    'Breadsticks. ',
    'Breadsticks. ',
    'Very good.'
end

sample1.png

sample1.png

strong : bold
em (emphasized) : italics
code : monospace font
ins (inserted) : single underline
sub (subscript) : lowers the text by 10 pixels, x-small font

# sample2.rb
Shoes.app :width => 240, :height => 95 do
  para 'Testing, test, test. ',
    strong('Breadsticks. '),
    em('Breadsticks. '),
    code('Breadsticks. '),
    strong(ins('EVEN BETTER.')),
    sub('fine!')
end

sample2.png

sample2.png

Policeman

The sample1.rb and sample2.rb worked well with Shoes-0.r1263