class Prawn::Table::Cell::Text
def with_font
def with_font @pdf.save_font do options = {} options[:style] = @text_options[:style] if @text_options[:style] options[:style] ||= @pdf.font.options[:style] if @pdf.font.options[:style] @pdf.font(defined?(@font) && @font || @pdf.font.family, options) yield end end