I am trying to adjust the line height of a text-field that I have set the attribute "rich-text-type" to "text/html". I believe there may be a bug in PRD and am wondering if someone can help me figure out if I am doing something wrong or if there is a bug. And if there is a bug how to get this fixed. It is very difficult to explain this but I will try my best.
This is what I have found. In PRD when I change the attribute "rich-text-type" from "text/plain" to "text/html" the styling no longer allows me to manipulate the font "family" and "font-size" using the style tab. This is expected behavior.
In order to change the font family and font-size I need to insert in the attribute "value" an expression. Since I want the font to be Times New Roman with a font-size of 10 and the field I am working with is called data1, I insert the following expression into the attribute "value".
="<html><body><span style=""font-family: 'Times New Roman'; font-size: 10pt; "">" & [data1] & " <span></body></html>"
Now my font family and font size come out as I want them (i.e. Times New Roman and font-size 10).
If I want to create more space between the lines I can increase the style "line-height" (although if my text field is under an inline band I need to change the "line-height" of the band). But I can only decrease the space between the lines to a certain amount. This is expected behavior as the line-height can not be smaller than the font. But when I go all the way down to "0" for "line-height" the space between lines when I am using a relatively small font size like 10pt is larger than it should be. Again this behavior occurs when I have set the attribute "rich-text-type" to "text/html". It is even more dramatic if I use a smaller font size like 5pt. Then it is very easy to see that the spacing between the lines is larger than should be.
See
this document, which shows reports from the different examples I explained above (Sorry I wan't able to upload an attachment to the pentaho forum site).
What I think is happening here is that when the attribute "rich-text-type" is set to "text/html" PRD picks a default font and font-size. Although one can latter modify the font and font-size PRD still won't allow the line spacing to be smaller than the default font-size. Therefore if one sets the font-size smaller than the default the line spacing will be too big.
So is this a bug? I really need to be able to reduce the line spacing to 0.
Please let me know if I can explain this any better. Thanks.