Bold text on all labels.

pull/6827/head
Richard 11 years ago
parent f24905e492
commit 49e7f72fec
  1. 5
      lib/open_project/pdf_export/export_card/column_element.rb

@ -80,17 +80,16 @@ module OpenProject::PdfExport::ExportCard
:min_font_size => min_font_size, :min_font_size => min_font_size,
:align => text_align}) :align => text_align})
else else
text = label_text + value texts = [{ text: label_text, styles: [:bold], :size => font_size }, { text: value, :size => font_size }]
# Label and Content Textbox # Label and Content Textbox
offset = [@orientation[:x_offset], @orientation[:height] - (@orientation[:text_padding] / 2)] offset = [@orientation[:x_offset], @orientation[:height] - (@orientation[:text_padding] / 2)]
box = @pdf.text_box(text, box = @pdf.formatted_text_box(texts,
{:height => @orientation[:height], {:height => @orientation[:height],
:width => @orientation[:width], :width => @orientation[:width],
:at => offset, :at => offset,
:style => font_style, :style => font_style,
:overflow => overflow, :overflow => overflow,
:size => font_size,
:min_font_size => min_font_size, :min_font_size => min_font_size,
:align => text_align}) :align => text_align})
end end

Loading…
Cancel
Save