Quantcast

Problems with text spacing

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Problems with text spacing

rfthomas
We have found problems with the display of text in description fields in:

PDFCustOrderConfPortrait.php
PrintCustTransPortrait.php

The fields are spacing out the length of the field creating strange white space between words.  The following changes had to be made:

PrintCustTransPortrait.php:
line 368 add ,'left' before )
$LeftOvers = $pdf->addTextWrap($Left_Margin+80,$YPos,186,$FontSize,$myrow2['description'],'left');

line 372 add ,'left' before )
$LeftOvers = $pdf->addTextWrap($Left_Margin+80,$YPos-(10*$lines),186,$FontSize,$LeftOvers,'left');


PDFCustOrderConfPortrait.php:
line 132 add ,'left' before )
line 133 add ,'left' before )
$LeftOvers = $pdf->addTextWrap($XPos+1,$YPos,100,$FontSize,$myrow2['stkcode'],'left');
$LeftOvers = $pdf->addTextWrap(145,$YPos,295,$FontSize,$myrow2['description'],'left');

There are probably more places where such needs to be added.  Is the default to space out text?  One would expect the default to be language specific, i.e. left justify for English, Romance, and most European languages, and right justify for Hebrew, etc.  Is there a default justification that is not being properly set?

We have seen this problem in the last few releases of weberp.  We are running 4.13.1

Bob Thomas
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problems with text spacing

Pak Ricard
Hi Thomas:
Please check http://www.weberp.org/forum/showthread.php?tid=2976

Regards,
Ricard

2017-02-07 23:37 GMT+08:00 rfthomas <[hidden email]>:

> We have found problems with the display of text in description fields in:
>
> PDFCustOrderConfPortrait.php
> PrintCustTransPortrait.php
>
> The fields are spacing out the length of the field creating strange white
> space between words.  The following changes had to be made:
>
> PrintCustTransPortrait.php:
> line 368 add ,'left' before )
> $LeftOvers =
> $pdf->addTextWrap($Left_Margin+80,$YPos,186,$FontSize,
> $myrow2['description'],'left');
>
> line 372 add ,'left' before )
> $LeftOvers =
> $pdf->addTextWrap($Left_Margin+80,$YPos-(10*$lines),
> 186,$FontSize,$LeftOvers,'left');
>
>
> PDFCustOrderConfPortrait.php:
> line 132 add ,'left' before )
> line 133 add ,'left' before )
> $LeftOvers =
> $pdf->addTextWrap($XPos+1,$YPos,100,$FontSize,$myrow2['stkcode'],'left');
> $LeftOvers =
> $pdf->addTextWrap(145,$YPos,295,$FontSize,$myrow2['description'],'left');
>
> There are probably more places where such needs to be added.  Is the
> default
> to space out text?  One would expect the default to be language specific,
> i.e. left justify for English, Romance, and most European languages, and
> right justify for Hebrew, etc.  Is there a default justification that is
> not
> being properly set?
>
> We have seen this problem in the last few releases of weberp.  We are
> running 4.13.1
>
> Bob Thomas
>
>
>
>
> --
> View this message in context: http://weberp-accounting.
> 1478800.n4.nabble.com/Problems-with-text-spacing-tp4658739.html
> Sent from the web-ERP-developers mailing list archive at Nabble.com.
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Web-erp-developers mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/web-erp-developers
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Web-erp-developers mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/web-erp-developers
Loading...