lib/prawn/text/box.rb in prawn-1.3.0 vs lib/prawn/text/box.rb in prawn-2.0.0
- old
+ new
@@ -70,11 +70,10 @@
# <tt>:justify</tt> Alignment within the bounding box
# [:left if direction is :ltr, :right if direction is :rtl]
# <tt>:valign</tt>::
# <tt>:top</tt>, <tt>:center</tt>, or <tt>:bottom</tt>. Vertical
# alignment within the bounding box [:top]
- #
# <tt>:rotate</tt>::
# <tt>number</tt>. The angle to rotate the text
# <tt>:rotate_around</tt>::
# <tt>:center</tt>, <tt>:upper_left</tt>, <tt>:upper_right</tt>,
# <tt>:lower_right</tt>, or <tt>:lower_left</tt>. The point around which
@@ -82,12 +81,10 @@
# <tt>:leading</tt>::
# <tt>number</tt>. Additional space between lines [value of
# document.default_leading]
# <tt>:single_line</tt>::
# <tt>boolean</tt>. If true, then only the first line will be drawn [false]
- # <tt>:skip_encoding</tt>::
- # <tt>boolean</tt> [false]
# <tt>:overflow</tt>::
# <tt>:truncate</tt>, <tt>:shrink_to_fit</tt>, or <tt>:expand</tt>
# This controls the behavior when the amount of text
# exceeds the available space. [:truncate]
# <tt>:min_font_size</tt>::
@@ -97,17 +94,12 @@
#
# == Returns
#
# Returns any text that did not print under the current settings.
#
- # NOTE: if an AFM font is used, then the returned text is encoded in
- # WinAnsi. Subsequent calls to text_box that pass this returned text back
- # into text box must include a :skip_encoding => true option. This is
- # unnecessary when using TTF fonts because those operate on UTF-8 encoding.
- #
# == Exceptions
#
- # Raises <tt>Prawn::Errrors::CannotFit</tt> if not wide enough to print
+ # Raises <tt>Prawn::Errors::CannotFit</tt> if not wide enough to print
# any text
#
def text_box(string, options={})
options = options.dup
options[:document] = self