Cyrillic in reports is printed only by free fonts like dejavu ... and free ... Of these, only ... mono and ... monoi print correctly, the rest either cut the line, or wrap to another line, or give an error (corrected by increasing the width Fields). In the previous version, this was not observed and the fonts were not mono.kev1n wrote:What fonts are you using? There is no extra margin when using some English strings.
Welcome to the nuBuilder forums!
Please register and login to view forums and other content only available to registered users.
Please register and login to view forums and other content only available to registered users.
Upgrade nuBuilder 4 to nuBuilder 4.5
-
- Posts: 322
- Joined: Sat Apr 11, 2020 12:03 am
- Contact:
Re: Upgrade nuBuilder 4 to nuBuilder 4.5
-
- Posts: 322
- Joined: Sat Apr 11, 2020 12:03 am
- Contact:
Re: Upgrade nuBuilder 4 to nuBuilder 4.5
It seems to me that the report designer incorrectly calculates the column widths for Cyrillic in UT8, doubling the number of characters, because Cyrillic takes 2 bytes per character, unlike English.Now all my reports have gone from portrait to landscape and look awful.kev1n wrote:What fonts are you using? There is no extra margin when using some English strings.
-
- Posts: 322
- Joined: Sat Apr 11, 2020 12:03 am
- Contact:
-
- Posts: 322
- Joined: Sat Apr 11, 2020 12:03 am
- Contact:
Re: Upgrade nuBuilder 4 to nuBuilder 4.5
I returned the old tcpdf folder, but the reporting behavior did not change - the same is wrong. Hence the conclusion that tcpdf has nothing to do with it - the problem is in updating nubuilder.
-
- nuBuilder Team
- Posts: 3826
- Joined: Sun Oct 14, 2018 6:43 pm
- nuBuilder Version: 4.5
- Has thanked: 2 times
- Been thanked: 9 times
- Contact:
Re: Upgrade nuBuilder 4 to nuBuilder 4.5
Also try using the old nurunpdf.php together with the old tcpdf.
https://github.com/nuBuilder/nubuilder4 ... runpdf.php
Adapt the paths to the new locations:
if you get an error, also remove these 2 lines:
https://github.com/nuBuilder/nubuilder4 ... runpdf.php
Adapt the paths to the new locations:
Code: Select all
require_once('libs/tcpdf/tcpdf.php');
define('FPDF_FONTPATH','libs/tcpdf/font/');
Code: Select all
$label = str_replace('#description#', $JSON->sre_description, $label);
$label = str_replace('#code#', $JSON->sre_code, $label);
-
- Posts: 322
- Joined: Sat Apr 11, 2020 12:03 am
- Contact: