Method: FPDF#Text
- Defined in:
- lib/fpdf.rb
#Text(x, y, txt) ⇒ Object
559 560 561 562 563 564 565 566 567 568 |
# File 'lib/fpdf.rb', line 559 def Text(x, y, txt) # Output a string txt.gsub!(')', '\\)') txt.gsub!('(', '\\(') txt.gsub!('\\', '\\\\') s=sprintf('BT %.2f %.2f Td (%s) Tj ET',x*@k,(@h-y)*@k,txt); s=s+' '+dounderline(x,y,txt) if @underline and txt!='' s='q '+@TextColor+' '+s+' Q' if @ColorFlag out(s) end |