# File lib/prawn/document/text.rb, line 70 def text(text,options={}) # we'll be messing with the strings encoding, don't change the users # original string text = text.to_s.dup save_font do options = text_options.merge(options) process_text_options(options) font.normalize_encoding(text) unless @skip_encoding if options[:at] x,y = translate(options[:at]) font_size(options[:size]) { add_text_content(text,x,y,options) } else if options[:rotate] raise ArgumentError, "Rotated text may only be used with :at" end wrapped_text(text,options) end end end