Chris Bowditch wrote:
The renderer should add this to the X offset for every piece of text it places in the renderText method. It is missing ATM, but it is easy enough to add.

Unfortunately, ther is more to justification than just expanding spaces. In the long term, you'll have to deal with leader expansion as well as start and end space for inlines and perhaps letter spacing. Leaders are particularly nasty because of they mey be aligned. It may be necessary to insert spaces in order to get alignment, but still avoiding inserting unnecessary spaces. For example in <fo:block>foo<fo:leader leader-alignment="reference-area" ... it may be necessary to fiddle with letter spacing in "foo" or insert some space (not "a space") after "foo" in order to get the leader aligned, while in <fo:block>foo bar<fo:leader leader-alignment="reference-area" ... the space between "foo" and "bar" should be used. There's also the problem that the leaders have to be aligned *after* space justification, which is still broken in 0.20.5.


I'm going to change this to set TSAdjust to dAdjust.

Is this really a good idea?


J.Pietschmann

Reply via email to