Home
Analytics
LineBreak counter in text report item
kosta
Hello BIRT community,
how can I know how many lines are rendered from a string as parameter placed in a text-report-item in the PDF output.
I want to know that because I want to resize two grid rows depend on that information.
I have tried to test Fontmetrics and LineBreakMeasurer but the "size" of the text length is different (java2d and grid width).
the conversion between points and mm doesnt fit.
In the rptdesign library I use 374 points and the same break line happends in java 2d with 430 (Fontmetrics) and 400 (LineBreakMeasurer) points width.
For any hits and suggestions thanks in advance.
Find more posts tagged with
Comments
There are no comments yet