Hello, I have an area on my page that I want to divide into a fixed number of rows (e.g. a table with a single column.) I want to be able to render text into the first row, overflow into the next row, and then shrink to fit all of the text if it overflows the last row.
We have been using #formatted_text_box with a fixed array of strings, which works great for overflow: :truncate, but doesn't have the desired result for overflow: :shrink_to_fit.
Here are some test cases where :truncate is working, but the highlighted :shrink_to_fit is causing problems (not fitting the text into 4 evenly spaced lines.) I'm attempting to use the :leading option to force the lines to have a fixed height, but this option seems to be ignored (or scaled down) when shrinking the text.
#column_box looked promising, but it doesn't look like there is a #row_box where the text flows vertically instead of horizontally. I also saw the GridBox class but am not sure how to use it. I also found the prawn-tables
Does Prawn have any text layout methods that can do this?