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 Georg Datterl <ge...@geneon.de> on 2009/02/20 17:01:30 UTC

Confused about spacing between inlines

Hi everybody,

in this small example:

<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
	<fo:layout-master-set>
		<fo:simple-page-master master-name="content">
			<fo:region-body/>
		</fo:simple-page-master>
	</fo:layout-master-set>
<fo:page-sequence master-reference="content">
		<fo:flow flow-name="xsl-region-body">
			<fo:block background-color="blue" >
				<fo:inline font-size="8.5pt" background-color="yellow">L</fo:inline>
				<fo:inline font-size="6.0pt" background-color="yellow" baseline-shift="-1.5pt">B</fo:inline>
				<fo:inline font-size="8.5pt" background-color="yellow">X</fo:inline>
			</fo:block>
		</fo:flow>
	</fo:page-sequence>
</fo:root>

Which parameter is responsible for the gaps between the yellow blocks?

Regards,
 
Georg Datterl
 
------ Kontakt ------
 
Georg Datterl
 
Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg
 
HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert 

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20
 
www.geneon.de
 
Weitere Mitglieder der Willmy MediaGroup:
 
IRS Integrated Realization Services GmbH:    www.irs-nbg.de 
Willmy PrintMedia GmbH:                            www.willmy.de
Willmy Consult & Content GmbH:                 www.willmycc.de 

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


AW: Confused about spacing between inlines

Posted by Georg Datterl <ge...@geneon.de>.
Thanks Andreas, that explains a lot. 

Regards,
 
Georg Datterl
 
------ Kontakt ------
 
Georg Datterl
 
Geneon media solutions gmbh
Gutenstetter Straße 8a
90449 Nürnberg
 
HRB Nürnberg: 17193
Geschäftsführer: Yong-Harry Steiert 

Tel.: 0911/36 78 88 - 26
Fax: 0911/36 78 88 - 20
 
www.geneon.de
 
Weitere Mitglieder der Willmy MediaGroup:
 
IRS Integrated Realization Services GmbH:    www.irs-nbg.de 
Willmy PrintMedia GmbH:                            www.willmy.de
Willmy Consult & Content GmbH:                 www.willmycc.de 
-----Ursprüngliche Nachricht-----
Von: Andreas Delmelle [mailto:andreas.delmelle@telenet.be] 
Gesendet: Freitag, 20. Februar 2009 18:18
An: fop-users@xmlgraphics.apache.org
Betreff: Re: Confused about spacing between inlines

On 20 Feb 2009, at 17:01, Georg Datterl wrote:

Hi Georg

> <snip />
> Which parameter is responsible for the gaps between the yellow blocks?

No parameters. It's just the initial value for linefeed-treatment, which is "treat-as-space", and that results in one preserved space character between the fo:inlines.

Possible solutions:
a) use linefeed-treatment="ignore" (on the surrounding block, the entire page-sequence or fo:root; the property is inherited)
b) make sure no linefeeds are generated between the inlines (which will typically be the case if the FO is a result from a stylesheet
transformation)


HTH!

Cheers

Andreas

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


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


Re: Confused about spacing between inlines

Posted by Andreas Delmelle <an...@telenet.be>.
On 20 Feb 2009, at 17:01, Georg Datterl wrote:

Hi Georg

> <snip />
> Which parameter is responsible for the gaps between the yellow blocks?

No parameters. It's just the initial value for linefeed-treatment,  
which is "treat-as-space", and that results in one preserved space  
character between the fo:inlines.

Possible solutions:
a) use linefeed-treatment="ignore" (on the surrounding block, the  
entire page-sequence or fo:root; the property is inherited)
b) make sure no linefeeds are generated between the inlines (which  
will typically be the case if the FO is a result from a stylesheet  
transformation)


HTH!

Cheers

Andreas

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