Sounds great! I am pretty much newcomer to the latest Prawn
developments. Do you by any chance know how to calculate the width of
a text bounding box?
b = Prawn::Text::Formatted::Box.new([fragment],
options.merge(:document => pdf))
b.render(:dry_run => true)
b.height
But there doesn't seem to be a width method? There is however a width
method on a fragment, but ... and what about the bounding_box and
absolute_bounding_box ?
I guess each letter has a different width, but I would assume that as
the letters/symbols are rendered, their total width could be added up
and stored?
I want to be able to create a border around formatted text and also
allow for a background color.
Thanks!
Kristian