Home
Analytics
BIRT -line spacing in report design.
Ninfea
Hi!
I wonder how to define the line spacing in a multi-line lable or text item for pdf output. While increasing the line height within a style works fine, decreasing the height to reduce line spacing doesn't seem to work.
Any suggestions on how to reduce the line pitch?
version Birt 2.5.1.
Thanks!
Find more posts tagged with
Comments
mwilliams
Hi Ninfea,
Can you show an example of what you're meaning by this exactly? Are you talking about vertical spacing between lines or about horizontal spacing between characters? Let me know.
Ninfea
I speak about the vertical spacing between lines. Has shown in drawing.
mwilliams
Ninfea,
In the simple testing I did with text size in a label, if the size of the text is reduced, the line spacing is also reduced. I put the same text in 3 different label elements. One with size 4, one with size 10, and one with size 24. There was a noticeable difference between all of them. What are the different sizes you're dealing with that you don't notice a change?
EDIT: Or, are you talking about changes in sizes of text within a single label? I may have misunderstood. Let me know.
Ninfea
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="69812" data-time="1288213632" data-date="27 October 2010 - 02:07 PM"><p>
EDIT: Or, are you talking about changes in sizes of text within a single label? I may have misunderstood. Let me know.<br /></p></blockquote>
<br />
<br />
Thanks huge for answers!!!<br />
<br />
Yes I mean a line spacing in the text.<br />
In my example the text isn't located at row grid because of the big line spacing. How to reduce a line spacing in the text?
mwilliams
It doesn't seem to work for PDF in 2.5.1, but you can change your line height in the property editor under advanced > text and you can decrease the spacing between lines. I'll check in 2.6.1 to see if there is any change in spacing for PDF and post back in here.
mwilliams
Doesn't seem to affect the PDF output in 2.6.1 either, but you can see a difference in the HTML outputs. You can log a bug for the spacing issue at
http://www.birt-exchange.org/org/resources/bug-reporting/
.
Ninfea
I see a different change in HTML, but in my work I need PDF only.
At installation of an line spacing of 200 % the line spacing increases, at installation of line spacing 10 % changes nothing. Similarly with other dimension.
I see that it is a real bug in Birt
Thank you for you answers!!!!
mwilliams
When you log a bug, please put the bug info in here for future info and for others who have the same issue to know there is a bug reported. Thanks!
Ninfea
The link to an bug -->> <a class='bbc_url' href='
https://bugs.eclipse.org/bugs/show_bug.cgi?id=276045'>Hyperlink
to bug </a>
mwilliams
Thanks! Sorry we weren't able to resolve your issue. Maybe they'll have some sort of workaround for you. Anyways, let us know whenever you have questions!
kosta
It seems that the line height attribute still doesnt works (BIRT 2.6.2 - export to PDF). Setting the line height space to lower value that normal will be ignored. If you want larger space between the lines than the normal height then you can use the "Line height"-attribute very well.
mwilliams
In 3.7.2, at least, the line heights look better than they did in the earlier versions. I didn't look in 2.6.2, but it doesn't seem that in 3.7.2 that there'd be much reason to decrease the line height. You might take a look at 3.7.2, if you can. Maybe it'd be better.
Looks like the line-height algorithm, for PDF, changed in 3.7.0:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=350685
kosta
Thanks Michael, I will check that as soon as possible.