xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Bowditch <bowditch_ch...@hotmail.com>
Subject Re: Horizontal and Vertical Alignment with region-start
Date Wed, 05 Nov 2008 15:48:49 GMT
Frank Niedermann wrote:

> Hi,
> 
> I'm new to XSL-FO and I try to center a rotated text horizontally and
> vertically in the region-start area.
> 
> This is the FO-file:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <fo:layout-master-set>
> <fo:simple-page-master margin="0mm" page-width="70.0mm" page-height="38.0mm"
> master-name="kanban">
> <fo:region-body background-color="#EEEEEE" margin-left="8mm"/>
> <fo:region-start reference-orientation="270" background-color="#DDDDDD"
> extent="8mm"/>
> </fo:simple-page-master>
> </fo:layout-master-set>
> <fo:page-sequence master-reference="kanban">
> <fo:static-content flow-name="xsl-region-start">
> <fo:block text-align="center">Hello</fo:block>
> </fo:static-content>
> <fo:flow flow-name="xsl-region-body">
> <fo:block>World</fo:block>
> </fo:flow>
> </fo:page-sequence>
> </fo:root>
> 
> The rotated text is centered horizontally (from text view) but not
> vertically. What do I need to add to center vertically and horizontally?

You can specify display-align="center" on region-start element.

Regards,

Chris



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


Mime
View raw message