Ticket #599 (reopened enhancement)
Add lineSpacing support for text blocks
| Reported by: | olt | Owned by: | jeichar |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | Version: | SVN | |
| Keywords: | linespacing, text formating, print, itext | Cc: | |
| State: |
Description
This patch makes the lineSpacing configurable for textblocks.
There were some tricky parts on the side of itext. Nesting of Phrases into Paragraphs didn't work well with lineSpacing/leading, so I changed PDFUtils.renderString to return the string, and not a Phrase.
A Paragraph needs to be inserted into a Cell in composite-mode to retain the styling. Thats done with cell.addElement.
cell.setUseAscender is necessary to remove the leading in the first line of a cell.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
