You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Amy Weiss <aw...@yahoo-inc.com> on 2001/11/05 20:39:40 UTC
right align with euro symbol
Hi!
I am trying to display a table of numbers with the euro currency in front of
the numbers. The table displays the text as right aligned. I am displaying
the euro currency using ascii value €, but when I do this, the right
aligning in the table gets messed up. Each time the euro is displayed, the
numbers shift to the right one space further than they should be.
Example:
<fo:table>
...
<fo:table-row>
<fo:table-cell><fo:block text-align="end">111</fo:block></fo:table-cell>
<fo:table-cell><fo:block text-align="end">222</fo:block></fo:table-cell>
<fo:table-cell><fo:block text-align="end">333</fo:block></fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell><fo:block text-align="end">4</fo:block></fo:table-cell>
<fo:table-cell><fo:block text-align="end">5</fo:block></fo:table-cell>
<fo:table-cell><fo:block text-align="end">6</fo:block></fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell><fo:block
text-align="end">€7777</fo:block></fo:table-cell>
<fo:table-cell><fo:block
text-align="end">€8888</fo:block></fo:table-cell>
<fo:table-cell><fo:block
text-align="end">€9999</fo:block></fo:table-cell>
</fo:table-row>
...
</fo:table>
Will display as:
111 222 333
4 5 6
E7777 E8888 E9999
Please help!
Thanks,
Amy Weiss
Technical Yahoo!
Yahoo! Inc.
701 First Ave.
Sunnyvale, CA 94089
(P) 408-349-6232
(E) aweiss@yahoo-inc.com
¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°¤º°
DO YOU YAHOO?
¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°¤º°
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
Re: right align with euro symbol
Posted by Keiron Liddle <ke...@aftexsw.com>.
Hi Amy,
The problem is that the width of the Euro character is not specified for
the font you are using (whatever that is).
Since the width defaults to 0 the right alignment will only include the
other characters in the line. THe text is then placed from the left and the
actual width of the string is greater.
These values are specified in xml files that are converted into java code.
The width for the euro would need to be put in the xml files and then
recompile fop.
Regards,
Keiron Liddle.
On 2001.11.05 20:39 Amy Weiss wrote:
> Hi!
>
> I am trying to display a table of numbers with the euro currency in front
> of
> the numbers. The table displays the text as right aligned. I am
> displaying
> the euro currency using ascii value €, but when I do this, the
> right
> aligning in the table gets messed up. Each time the euro is displayed,
> the
> numbers shift to the right one space further than they should be.
>
> Example:
>
> <fo:table>
> ...
> <fo:table-row>
> <fo:table-cell><fo:block text-align="end">111</fo:block></fo:table-cell>
> <fo:table-cell><fo:block text-align="end">222</fo:block></fo:table-cell>
> <fo:table-cell><fo:block text-align="end">333</fo:block></fo:table-cell>
> </fo:table-row>
> <fo:table-row>
> <fo:table-cell><fo:block text-align="end">4</fo:block></fo:table-cell>
> <fo:table-cell><fo:block text-align="end">5</fo:block></fo:table-cell>
> <fo:table-cell><fo:block text-align="end">6</fo:block></fo:table-cell>
> </fo:table-row>
> <fo:table-row>
> <fo:table-cell><fo:block
> text-align="end">€7777</fo:block></fo:table-cell>
> <fo:table-cell><fo:block
> text-align="end">€8888</fo:block></fo:table-cell>
> <fo:table-cell><fo:block
> text-align="end">€9999</fo:block></fo:table-cell>
> </fo:table-row>
> ...
> </fo:table>
>
> Will display as:
>
> 111 222 333
> 4 5 6
> E7777 E8888 E9999
>
> Please help!
>
> Thanks,
>
> Amy Weiss
>
> Technical Yahoo!
>
> Yahoo! Inc.
> 701 First Ave.
> Sunnyvale, CA 94089
>
> (P) 408-349-6232
> (E) aweiss@yahoo-inc.com
>
>
> ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°¤º°
> DO YOU YAHOO?
> ¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°¤º°
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
> For additional commands, email: fop-dev-help@xml.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org
RE: right align with euro symbol
Posted by Amy Weiss <aw...@yahoo-inc.com>.
Hi!
I am trying to display a table of numbers with the euro currency in front of
the numbers. The table displays the text as right aligned. I am displaying
the euro currency using ascii value €, but when I do this, the right
aligning in the table gets messed up. Each time the euro is displayed, the
numbers shift to the right one space further than they should be.
Example:
<fo:table>
...
<fo:table-row>
<fo:table-cell><fo:block text-align="end">111</fo:block></fo:table-cell>
<fo:table-cell><fo:block text-align="end">222</fo:block></fo:table-cell>
<fo:table-cell><fo:block text-align="end">333</fo:block></fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell><fo:block text-align="end">4</fo:block></fo:table-cell>
<fo:table-cell><fo:block text-align="end">5</fo:block></fo:table-cell>
<fo:table-cell><fo:block text-align="end">6</fo:block></fo:table-cell>
</fo:table-row>
<fo:table-row>
<fo:table-cell><fo:block
text-align="end">€7777</fo:block></fo:table-cell>
<fo:table-cell><fo:block
text-align="end">€8888</fo:block></fo:table-cell>
<fo:table-cell><fo:block
text-align="end">€9999</fo:block></fo:table-cell>
</fo:table-row>
...
</fo:table>
Will display as (where E represents the euro symbol in this case):
111 222 333
4 5 6
E7777 E8888 E9999
Please help!
Thanks,
Amy Weiss
Technical Yahoo!
Yahoo! Inc.
701 First Ave.
Sunnyvale, CA 94089
(P) 408-349-6232
(E) aweiss@yahoo-inc.com
¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°¤º°
DO YOU YAHOO?
¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°¤º°
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org