You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Ti...@materna.de on 2004/10/19 16:16:02 UTC

text alignment

hi, 

i got a problem which hasn 't been described in the mailing list archives.

i have a standard block article, what i know want is that the right-most
char of every line of text output 
is exactly aligned to every other right-most char of the other lines of this
article.
in other words, is there a way i can tell fop to adjust char padding in a
way that the left-most /
right-most char of a line is exactly aligned to that of the other lines?

thanks in advance, Timo Roessner

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org


Re: text alignment

Posted by Chris Bowditch <bo...@hotmail.com>.
Timo.Roessner@materna.de wrote:

> hi, 
> 
> i got a problem which hasn 't been described in the mailing list archives.
> 
> i have a standard block article, what i know want is that the right-most
> char of every line of text output 
> is exactly aligned to every other right-most char of the other lines of this
> article.
> in other words, is there a way i can tell fop to adjust char padding in a
> way that the left-most /
> right-most char of a line is exactly aligned to that of the other lines?

This is the definition of justified text. To justify a block of text, use the 
text-align="justify" attribute, e.g.

<fo:block text-align="justify">
The fox jumped over the lazy cow. The fox jumped over the lazy cow. The fox 
jumped over the lazy cow. The fox jumped over the lazy cow. The fox jumped 
over the lazy cow. The fox jumped over the lazy cow. The fox jumped over the 
lazy cow. The fox jumped over the lazy cow. The fox jumped over the lazy cow. 
The fox jumped over the lazy cow.
</fo:block>

<snip/>

Chris


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org