BTW, this should be most typical for Ruby (assuming you already know the
coordinates
where you want to draw):
str = "foo\nbar" # or "foo\r\nbar"
lines = str.split(/[\r]?\n/)
nr = 0
lines.each do |line|
dc.drawText(x, y + dc.font.fontAscent + nr * dc.font.fontHeight,
line)
nr += 1
end
Hails,
Jannis