fix font size

This commit is contained in:
Pete Matsyburka
2024-03-15 22:46:07 +02:00
parent c1f3e6ff13
commit d989b61d19
3 changed files with 25 additions and 17 deletions
@@ -71,7 +71,7 @@ module Submissions
width = page.box.width
height = page.box.height
font_size = ((page.box.width / A4_SIZE[0].to_f) * FONT_SIZE).to_i
font_size = (([page.box.width, page.box.height].min / A4_SIZE[0].to_f) * FONT_SIZE).to_i
value = submitter.values[field['uuid']]