TCPDF cyrrilic
Posted: Tue Feb 15, 2022 3:02 pm
TCPDF in nubuilder incorrectly calculates the field width for Cyrillic fonts, increasing the required field width by 2 times, because of this, it was necessary to make very large fields for correct display.
The settings of TCPDF itself do not affect the report in nubuilder.
The solution is in nurunpdf.php:
Change line 718
'if($O->width - 2 > $this->PDF->GetStringWidth((utf8_encode($text))))'
on the
if($O->width - 2 > $this->PDF->GetStringWidth((utf8_encode($text)))/2)
before: after: I hope that this will help someone and will be included in the fixes.
The settings of TCPDF itself do not affect the report in nubuilder.
The solution is in nurunpdf.php:
Change line 718
'if($O->width - 2 > $this->PDF->GetStringWidth((utf8_encode($text))))'
on the
if($O->width - 2 > $this->PDF->GetStringWidth((utf8_encode($text)))/2)
before: after: I hope that this will help someone and will be included in the fixes.