fix field render

This commit is contained in:
Pete Matsyburka
2025-12-16 21:54:36 +02:00
parent 881d189715
commit 178809dad7
@@ -648,7 +648,7 @@ module Submissions
text_params = { font:, fill_color:, font_size: }
text_params[:line_height] = text_params[:font_size] * (FONTS_LINE_HEIGHT[font_name] || 1)
text = HexaPDF::Layout::TextFragment.create(value, **text_params)
text = HexaPDF::Layout::TextFragment.create(value.tr("\u00A0", ' '), **text_params)
lines = layouter.fit([text], area['w'] * width, height).lines
box_height = lines.sum(&:height)