Hi,

If IIUC, what you need is the property 'relative-align' ([1] XSL-FO REC
1.1, §7.14.6).
Unfortunately, this is not implemented in FOP ([2] FOP compliance page).
AFAIK, the only workaround is the one you describe: playing with
margin-before (or padding|space -before).

[1] http://www.w3.org/TR/xsl/#relative-align
[2]
http://xmlgraphics.apache.org/fop/compliance.html#fo-property-relative-align

Le 14/02/2012 13:22, Bernd Koester a écrit :
> Hello,
> 
> 
> the designers responsible for a corporate design placed the first line 
> of block on a baseline position.
> 
> The main text starts at 50 mm (baseline) from top has a font-height of 
> 10pt and a line-height of 14pt.
> The sidebar starts at 50 mm (baseline) from top has a font-height of 
> 7.5pt and a line-height of 10pt.
> 
> The only way I found was starting both regions at 45mm and then adding a 
> calculated margin-top on both
> blocks. This has to be calculated for each font.
> 
> Do you know a better way to place the first baseline of a region on a 
> absolute position?
> 
> Greetings,
> 
> Bernd Köster
-- 
Pascal

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to