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!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Upgrade nuBuilder 4 to nuBuilder 4.5
-
- Posts: 366
- Joined: Sat Apr 11, 2020 12:03 am
- Has thanked: 3 times
- Been thanked: 4 times
- Contact:
Re: Upgrade nuBuilder 4 to nuBuilder 4.5
-
- Posts: 366
- Joined: Sat Apr 11, 2020 12:03 am
- Has thanked: 3 times
- Been thanked: 4 times
- 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.
-
- nuBuilder Team
- Posts: 4292
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 444 times
- Contact:
-
- Posts: 366
- Joined: Sat Apr 11, 2020 12:03 am
- Has thanked: 3 times
- Been thanked: 4 times
- 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: 4292
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 444 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);