fix cell render

pull/601/head
Pete Matsyburka 4 weeks ago
parent 5073f2eefb
commit 451f83421a

@ -575,7 +575,11 @@ module Submissions
fill_color:, fill_color:,
font_size:) font_size:)
line_height = layouter.fit([text], cell_width, height).lines.first.height line = layouter.fit([text], width, height).lines.first
line_height = line.height
cell_width = [line.width, cell_width].max
if preferences_font_size.blank? && line_height > (area['h'] * height) if preferences_font_size.blank? && line_height > (area['h'] * height)
text = HexaPDF::Layout::TextFragment.create(char, text = HexaPDF::Layout::TextFragment.create(char,

Loading…
Cancel
Save