Re: Auto-sized block?

2004-07-01 Thread Adam Augusta
On Wed, 30 Jun 2004, Richard Evans wrote:

 I want to have a block of text with a border and background colour which is
 just wide enough for the text.

The only solution I can think of involves having either a transform or 
simple program run through the XML font metric file and assess the width + 
kerning of your text to come up with an appropriate width for your block 
container.

-Adam



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Auto-sized block?

2004-07-01 Thread Chris Bowditch
Richard Evans wrote:
I want to have a block of text with a border and background colour which 
is just wide enough for the text.

 

Ive tried fo:block with border and background-color attributes but the 
block always seems to extend across the whole page.
You need to use fo:inline or fo:inline-container for what you want. 
Unfortunately these elements have not been implemented properly, i.e. border 
and background color do not apply, and fo:inline is functionally the same as 
fo:wrapper.

Chris

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]