> -----Original Message-----
> From: Patrick JUSSEAU [mailto:[EMAIL PROTECTED]
>
> In other word I want the right side of my text to be aligned. The
> fo:leader should expand as much as it can to fill the middle part. I
> also want the parent block to have a 10cm width.
>

As I understand, behaviour of the fo:leader is very vaguely described in the
spec, and apart from that, the FOP compliance page,
http://xml.apache.org/fop/compliance.html#fo-object-leader, indicates only
partial support for this object.

What definitely works, are fixed-length leaders and leaders aligned
according to the settings of the reference area (mostly: the surrounding
fo:block).
The latter _seems_ a good choice in combination with text-align="justify"
and text-align-last="justify", but from my experience, it can only be used
in practice to create layouts like this:

<fo:block text-align="justify" text-align-last="justify">
  <fo:inline>line1</fo:inline>
  <fo:leader leader-pattern="dots" leader-pattern-width="3pt"
leader-alignment="reference-area" />
</fo:block>
<fo:block text-align="justify" text-align-last="justify">
  <fo:inline>line2withlongername</fo:inline>
  <fo:leader leader-pattern="dots" leader-pattern-width="3pt"
leader-alignment="reference-area" />
</fo:block>

would yield

line1 .........................
line2withlongername ...........

If you add another fo:inline to the above fo:blocks, the fo:leader will
expand to fill the line and the last fo:inline will end up on a new line.

AFAIK there is currently no workaround to achieve the particular effect
you're seeking.

Maybe someone else has an idea?


Greetz,

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to