|
|
@ -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 |
|
|
|