Fellow FOP Devs,

I've been thnking about how to implement Justified text in HEAD, and would appreciate some suggestions/comments on my thought process.

I know Joerg posted something on this back in November in which he said the missing piece was the renderer not resizing the spaces, but the problem is deeper than this.

The child LM of Line LM is Text LM. It appears that when dealing with just plain text paragraphs, i.e. no fo:inlines or fo:wrapper changing fonts within a line, etc, then there is almost a 1:1 relationship between Line LM and Text LM. So when renderText is called on the renderer it is presented with a whole line of text, and there is no opportunity to insert extra spaces. Unless the renderer is going to break this string and place individual characters, but that to me seems wrong.

So question is should TextLM.getNextBreakPoss be splitting the line into individual words? Which can then be placed by the renderer with the space adjustment required for justification. I believe this is similar to how it works in the maintenance branch. Although I'm sure TextLM is keeping lines together for a good reason.

Chris


Reply via email to