updated font sizes for cpeprov labels

This commit is contained in:
Luca Haid
2025-09-09 12:09:33 +00:00
parent a46a25af10
commit e121bd074d

View File

@@ -1,10 +1,10 @@
<?php
$maxLength = max(mb_strlen($firstline ?? ''), mb_strlen($secondline ?? ''));
$maxLength = max(mb_strlen($firstline ?? ''), mb_strlen($secondline ?? ''), mb_strlen($thirdline ?? ''));
$fontSize = '12px';
if ($maxLength <= 15) $fontSize = '24px';
elseif ($maxLength <= 24) $fontSize = '18px';
elseif ($maxLength <= 50) $fontSize = '16px';
$fontSize = '13px';
if ($maxLength <= 11) $fontSize = '28px';
elseif ($maxLength <= 20) $fontSize = '18px';
elseif ($maxLength <= 45) $fontSize = '16px';
$this->setReturnValue(['filename' => "xyz." . time() . "pdf"]);
?>
@@ -42,4 +42,4 @@ $this->setReturnValue(['filename' => "xyz." . time() . "pdf"]);
<div><?= $fourthline ?></div>
</div>
</body>
</html>
</html>