Module: Prawn::Text::Formatted
- Included in:
- Prawn::Text
- Defined in:
- lib/prawn/text/formatted.rb,
lib/prawn/text/formatted/box.rb,
lib/prawn/text/formatted/wrap.rb,
lib/prawn/text/formatted/parser.rb,
lib/prawn/text/formatted/arranger.rb,
lib/prawn/text/formatted/fragment.rb,
lib/prawn/text/formatted/line_wrap.rb
Overview
Fancy pretty text.
Defined Under Namespace
Stable API collapse
-
#formatted_text_box(array, options = {}) ⇒ Array<Hash>
Draws the requested formatted text into a box.
Instance Method Details
#formatted_text_box(array, options = {}) ⇒ Array<Hash>
Draws the requested formatted text into a box.
When the text overflows the rectangle shrink to fit or truncate the text. Text boxes are independent of the document y position.
Source Code
lib/prawn/text/formatted.rb, line 73
73 | def formatted_text_box(array, options = {}) |
74 | Text::Formatted::Box.new(array, options.merge(document: self)).render |
75 | end
|