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 Ancient <ha...@hotmail.com> on 2010/09/17 12:43:12 UTC

FOP 0.20.5 and text-align end

Hi!

I have a huge problem right-aligning text. We have a server with fop 0.20.5.
Everytime I use right-aligning all the lines within the document end on a
different places (see the image). How to get them aligned so that the text
will end at the same spot?

Any help appreciated!

Thanks!

http://old.nabble.com/file/p29737124/test.jpg 
-- 
View this message in context: http://old.nabble.com/FOP-0.20.5-and-text-align-end-tp29737124p29737124.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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


Re: FOP 0.20.5 and text-align end

Posted by Ancient <ha...@hotmail.com>.

This is the php-generated xsl-fo. Font used is gill-sans as you can see.

"<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<!-- edited with XMLSPY v5 rel. 3 U (http://www.xmlspy.com)  -->
<fo:root xmlns:fo=\"http://www.w3.org/1999/XSL/Format\">
<fo:layout-master-set>

	<fo:simple-page-master master-name=\"kortti\" page-height=\"5.6cm\"
margin-top=\"0.0cm\" page-width=\"9.6cm\" writing-mode=\"lr-tb\">
		<fo:region-start extent=\"0cm\" precedence=\"true\"
region-name=\"page-start\"/>
		<fo:region-end extent=\"6.05mm\" precedence=\"true\"
region-name=\"page-end\"/>
		<fo:region-after extent=\"1.79cm\" precedence=\"false\"
region-name=\"page-after\"/>
		<fo:region-body/>
		<fo:region-before extent=\"3.80cm\" precedence=\"false\"
region-name=\"page-before\"/>
	</fo:simple-page-master>

	<fo:page-sequence-master master-name=\"sivu\">
		<fo:single-page-master-reference master-reference=\"kortti\"/>
	</fo:page-sequence-master>

</fo:layout-master-set>

<fo:page-sequence master-reference=\"kortti\">

	<fo:static-content flow-name=\"page-before\" line-height=\"1.16\">
		<fo:block font-family=\"GillSans\" font-size=\"9pt\"
font-weight=\"normal\" color=\"".$tekstin_vari."\"
text-align=\"right\">&#160;</fo:block>
		<fo:block font-family=\"GillSans\" font-size=\"9pt\"
font-weight=\"normal\" color=\"".$tekstin_vari."\"
text-align=\"right\">&#160;</fo:block>
		<fo:block font-family=\"GillSans\" font-size=\"9pt\"
font-weight=\"normal\" color=\"".$tekstin_vari."\"
text-align=\"right\">&#160;</fo:block>
		<fo:block font-family=\"GillSans\" font-size=\"9pt\"
font-weight=\"normal\" color=\"".$tekstin_vari."\"
text-align=\"right\">&#160;</fo:block>
		<fo:block font-family=\"GillSans\" font-size=\"9pt\"
font-weight=\"normal\" color=\"".$tekstin_vari."\"
text-align=\"right\">&#160;</fo:block>
		<fo:block font-family=\"GillSans\" font-size=\"19pt\"
font-weight=\"normal\" color=\"".$tekstin_vari."\"
text-align=\"right\">&#160;</fo:block>

		<fo:block font-family=\"GillSans\" font-size=\"8.5pt\"
font-weight=\"normal\" color=\"".$tekstin_vari."\" text-align=\"end\"
letter-spacing=\"0.9pt\" ".$lisaargumentit.">".strtoupper($nimi1_puoli1."
".$nimi2_puoli1).$rivinpaatemerkki."</fo:block>
		
		<fo:block font-family=\"GillSansLightItalic\" font-size=\"7pt\"
font-weight=\"normal\" color=\"".$tekstin_vari."\" text-align=\"end\"
letter-spacing=\"0.72pt\"
".$lisaargumentit.">".$toimenkuva.$rivinpaatemerkki."</fo:block>

		<fo:block font-family=\"GillSansLightItalic\" font-size=\"7pt\"
font-weight=\"normal\" color=\"".$tekstin_vari."\" text-align=\"end\"
letter-spacing=\"".$letterspacing."\"
".$lisaargumentit.">".$lisakentta1_puoli1.$rivinpaatemerkki."</fo:block>

		<fo:block font-family=\"GillSansLightItalic\" font-size=\"7pt\"
font-weight=\"normal\" color=\"".$tekstin_vari."\" text-align=\"end\"
letter-spacing=\"".$letterspacing."\"
".$lisaargumentit.">".$lisakentta2_puoli1.$rivinpaatemerkki."</fo:block>
	</fo:static-content>

	<fo:static-content flow-name=\"page-after\" line-height=\"1.29\">

		<fo:block font-family=\"GillSans-Light\" font-size=\"7pt\"
font-weight=\"normal\" color=\"".$tekstin_vari."\" text-align=\"end\" 
		letter-spacing=\"".$letterspacing."\"
".$lisaargumentit.">".strtoupper($yritys_puoli1)."|".$rivinpaatemerkki."</fo:block>

		<fo:block font-family=\"GillSans-Light\" font-size=\"7pt\"
font-weight=\"normal\" color=\"".$tekstin_vari."\" text-align=\"end\" 
		letter-spacing=\"".$letterspacing."\" ".$lisaargumentit.">".$osoiterivi1."
- ".$osoiterivi2."|".$rivinpaatemerkki."</fo:block>

		<fo:block font-family=\"GillSans-Light\" font-size=\"7pt\"
font-weight=\"normal\" color=\"".$tekstin_vari."\" text-align=\"end\" 
		letter-spacing=\"".$letterspacing."\"
".$lisaargumentit.">".$puhelin_rivi.$matkapuhelin.$faxi_rivi."|".$rivinpaatemerkki."</fo:block>

		".$emailwww_rivi."
		
	</fo:static-content>
		
	<fo:flow flow-name=\"xsl-region-body\" padding-top=\"0.5cm\"
padding-left=\"0.5cm\">
		<fo:external-graphic src=\"".$sivujen_paikallisosoite."tiedostot/Oulun
yliopisto/Oulun_yo_kpohja.jpg\"/>
	</fo:flow>

</fo:page-sequence>
</fo:root>"



What about when you use a recent release like 1.0? 0.20.5 is prehistoric.

You'll need to supply a bit more information. The XSL-FO file and 
command-line parameters used to generate the file would be a start, 
along with any extra fonts used if necessary.

If fop is embedded in a program, you might want to produce a 
self-contained compilable and runnable test case that can demonstrate 
the problem using only fop its self.

-- 
Craig Ringer


-- 
View this message in context: http://old.nabble.com/FOP-0.20.5-and-text-align-end-tp29737124p29776286.html
Sent from the FOP - Users mailing list archive at Nabble.com.


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


Re: FOP 0.20.5 and text-align end

Posted by Pascal Sancho <pa...@takoma.fr>.
 Hi,
I vaguely remember such issue, but I'm not sure at all;
try a blank border, sometimes that gave good results.
Pascal

Le 18/09/2010 07:27, Craig Ringer a écrit :
> On 17/09/2010 6:43 PM, Ancient wrote:
>> Hi!
>>
>> I have a huge problem right-aligning text. We have a server with fop 0.20.5.
> What about when you use a recent release like 1.0? 0.20.5 is prehistoric.
>
>> Everytime I use right-aligning all the lines within the document end on a
>> different places (see the image). How to get them aligned so that the text
>> will end at the same spot?
> You'll need to supply a bit more information. The XSL-FO file and 
> command-line parameters used to generate the file would be a start, 
> along with any extra fonts used if necessary.
>
> If fop is embedded in a program, you might want to produce a 
> self-contained compilable and runnable test case that can demonstrate 
> the problem using only fop its self.
>


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


Re: FOP 0.20.5 and text-align end

Posted by Craig Ringer <cr...@postnewspapers.com.au>.
On 17/09/2010 6:43 PM, Ancient wrote:
>
> Hi!
>
> I have a huge problem right-aligning text. We have a server with fop 0.20.5.

What about when you use a recent release like 1.0? 0.20.5 is prehistoric.

> Everytime I use right-aligning all the lines within the document end on a
> different places (see the image). How to get them aligned so that the text
> will end at the same spot?

You'll need to supply a bit more information. The XSL-FO file and 
command-line parameters used to generate the file would be a start, 
along with any extra fonts used if necessary.

If fop is embedded in a program, you might want to produce a 
self-contained compilable and runnable test case that can demonstrate 
the problem using only fop its self.

-- 
Craig Ringer

Tech-related writing at http://soapyfrogs.blogspot.com/

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