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 alessio <al...@gmail.com> on 2011/05/04 11:48:41 UTC

Keep multiple columns aligned also with inline images inside.

Hello everyone,

I've a multi column page, with 12pt text and 14pt line-height.

Sometimes i need to insert inside the text an unknown size image, that scales to 
fill all the column width.

This way the height of the image changes and often the text rows in different 
columns are no longer aligned.

How can i fix the size of the image in "steps" (ex. multiple of 14pt) or add a 
variable "space-before" to adjust the image height with the text line height?

Thanks,

alessio


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


Re: Keep multiple columns aligned also with inline images inside.

Posted by Pascal Sancho <pa...@takoma.fr>.
Hi Alessio,

I realize that you didn't get any answer...

You should get the image height.
>From this, you can easisly calculate a ceiling value, multiple of
line-height, to set the fo:external-graphic height property.

In addition, you should ensure that your half leading (space before and
after inline area) for the fo:block containing the image (that can be
done by setting both font-size and line-height to 0).

Le 04/05/2011 11:48, alessio a écrit :
> Hello everyone,
> 
> I've a multi column page, with 12pt text and 14pt line-height.
> 
> Sometimes i need to insert inside the text an unknown size image, that scales to 
> fill all the column width.
> 
> This way the height of the image changes and often the text rows in different 
> columns are no longer aligned.
> 
> How can i fix the size of the image in "steps" (ex. multiple of 14pt) or add a 
> variable "space-before" to adjust the image height with the text line height?
> 
> Thanks,
> 
> alessio
-- 
Pascal

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