lib/prawn/table/cell/text.rb in prawn-0.11.1 vs lib/prawn/table/cell/text.rb in prawn-0.12.0

- old
+ new

@@ -72,19 +72,19 @@ :at => [0, @pdf.cursor]).render end end end - protected - def set_width_constraints # Sets a reasonable minimum width. If the cell has any content, make # sure we have enough width to be at least one character wide. This is # a bit of a hack, but it should work well enough. min_content_width = [natural_content_width, styled_width_of("M")].min @min_width ||= padding_left + padding_right + min_content_width super end + + protected def with_font @pdf.save_font do options = {} options[:style] = @text_options[:style] if @text_options[:style]