xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vincent Hennebert <vhenneb...@gmail.com>
Subject Re: block-container with Attribute overflow="hidden" and right-aligned text
Date Wed, 13 Apr 2011 10:40:28 GMT
Hi Michael,

Provided that your text is meant to fit on one line, you may want to try
something like this:

    <fo:block-container width="50pt" overflow="hidden"
      border="1pt solid black">
      <fo:block text-align-last="justify"><fo:leader
      <fo:block text-align-last="justify"><fo:leader

Basically you put some elastic space at the beginning of the line, that
will push the word against the right margin if it’s short enough, and
reduce to nothing if the word is too long.


On 13/04/11 11:03, Michael Seeberger wrote:
> Hi there,
> i have a problem with the attribute overflow="hidden" when using
> text-align="right".
> The behaviour is as following:
> The word 'Instandhaltungsrücklage' is to large to fit in my table-column so
> FOP should crop the word to, for example, *'Instandhalt'.*
> But when using text-align="right" FOP crops the word to, for example,
> *'andhaltungsrücklage'*.
> Is there a way to force FOP to crop the right side of a word?
> thx for your help
> Michael Seeberger

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

View raw message