Method: RGhost::TextArea#ps
- Defined in:
- lib/rghost/textarea.rb
#ps ⇒ Object
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/rghost/textarea.rb', line 66 def ps bw=RGhost::Units::parse([:width]) ta=[:text_align] rh=RGhost::Units::parse([:row_height]) graph=RGhost::Graphic.new do set RGhost::Variable.new(':bw',bw) set RGhost::Variable.new('text_align',"/#{ta}") # set Variable.new(':rp',rp) set RGhost::Variable.new(':rh',rh) end graph.set RGhost::Cursor.translate() graph.set RGhost::Cursor.moveto(:x => 0, :y =>0) #graph.raw ":text_area #{text_to_ps} :text_proc" graph.raw text_to_ps graph #final_text=text_to_ps end |