JezK
Edit File: draw_text-i.ri
U:RDoc::AnyMethod[iI"draw_text:EFI"Prawn::Text#draw_text;FF:publico:RDoc::Markup::Document:@parts["o:RDoc::Markup::Paragraph; [I"PDraws text on the page, beginning at the point specified by the :at option ;TI"Hthe string is assumed to be pre-formatted to properly fit the page.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"3pdf.draw_text "Hello World", :at => [100,100] ;TI"@pdf.draw_text "Goodbye World", :at => [50,50], :size => 16 ;T:@format0o; ; [ I"GIf your font contains kerning pair data that Prawn can parse, the ;TI"Jtext will be kerned by default. You can disable kerning by including ;TI"La false <tt>:kerning</tt> option. If you want to disable kerning on an ;TI"Centire document, set default_kerning = false for that document;T@S:RDoc::Markup::Heading: leveli: textI"Text Positioning Details:;T@o; ; [I"NPrawn will position your text by the left-most edge of its baseline, and ;TI"Fflow along a single line. (This means that :align will not work);T@S;;i;I" Rotation;T@o; ; [I"MText can be rotated before it is placed on the canvas by specifying the ;TI"S<tt>:rotate</tt> option with a given angle. Rotation occurs counter-clockwise.;T@S;;i;I" Encoding;T@o; ; [I"KNote that strings passed to this function should be encoded as UTF-8. ;TI"KIf you get unexpected characters appearing in your rendered document, ;TI"check this.;T@o; ; [I"HIf the current font is a built-in one, although the string must be ;TI"Eencoded as UTF-8, only characters that are available in WinAnsi ;TI"are allowed.;T@o; ; [I"JIf an empty box is rendered to your PDF instead of the character you ;TI"Mwanted it usually means the current font doesn't include that character.;T@S;;i;I"*Options (default values marked in []);T@o:RDoc::Markup::List: @type: NOTE:@items[ o:RDoc::Markup::ListItem:@label[I"<tt>:at</tt>;T; [o; ; [I"G<tt>[x, y]</tt>(required). The position at which to start the text;To;;[I"<tt>:kerning</tt>;T; [o; ; [I"<<tt>boolean</tt>. Whether or not to use kerning (if it ;TI"(is available with the current font);To;;: LABEL;[o;;[I"value of default_kerning?;T; [@o;;[I"<tt>:size</tt>;T; [o; ; [I":<tt>number</tt>. The font size to use. [current font ;TI" size];To;;[I"<tt>:style</tt>;T; [o; ; [I";The style to use. The requested style must be part of ;TI".the current font familly. [current style];T@o;;[I"<tt>:rotate</tt>;T; [o; ; [I"7<tt>number</tt>. The angle to which to rotate text;T@S;;i;I"Exceptions;T@o; ; [I"ARaises <tt>ArgumentError</tt> if <tt>:at</tt> option omitted;T@o; ; [I"ERaises <tt>ArgumentError</tt> if <tt>:align</tt> option included;T: @fileI"lib/prawn/text.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(text, options);T@nFI" Text;FcRDoc::NormalModule00