Shoesters:

Here's a snip of Shoeage that displays one of Pango's sample text files, in 
Tamil:

  tamility = File.read(File.expand_path(
    '~/tools/pango-1.19.3/pango-view/test-tamil.txt'))

  Shoes.app :height => 500, :width => 450 do
    background rgb(55, 77, 55)
    stack :margin => 10 do
      para tamility, :stroke => white
    end
  end

Tamil is an awesome cursive script, full of twisty swirly knobby letters that look like a rigger's final exam.

To learn some Shoe, lets rotate it 45 degrees. (I'm sure a Tamil could still read it!) And the Shoe source has a 'rotate' hook.

So how does the rotate method work? I tried it before, around, and after that para, but the letters remain firmly horizontal.

(Along the way, I note that neither of these lines throw errors:

      para tamility, :stroke => white, :foo => 42
      para tamility, :stroke => white, :rotate => 45

(As errors are the "stick" side of programmers' positive reinforcement, shouldn't Shoes double check all its arguments against their Cairo & Pango properties?

(I got 'curious', btw...)

--
  Phlip

Reply via email to