This sounds much like a problem I had some time back, wherein I needed to make a small-caps font without using an actual small-caps font. Recalling that a typographer friend once told me that the small caps is really an all caps font with the lower-case letters set to 5/8 the size of the upper-case letters, I wrote a recursive template in XSLT 1.0 to produce the desired effect. For that project, I was working in HTML, so I used span elements. I didn't want to use a span element for each character, so I grouped them by case (upper or lower).
I suspect you have an application that would benefit from something similar, with the i-f-o elements replacing the span elements. Jay Bryant Bryant Communication Services (presently consulting at Synergistic Solution Technologies) Andreas L Delmelle <[EMAIL PROTECTED]> 10/18/2005 11:15 AM Please respond to [email protected] To [email protected] cc Subject Re: height of instream-foreign-object On Oct 18, 2005, at 14:08, robert frapples wrote: > On 10/17/05, Andreas L Delmelle <[EMAIL PROTECTED]> wrote: > >> The effect you get right now is that of a different block being >> created for each i-f-o, the default height of which is always the >> line-height (1.2em IIC). AFAICT, the only way to manipulate the >> height would be to specify a different font-size/line-height for each >> created block --but then again, this seems somewhat suboptimal. I >> think you'll fare far better with putting all of the characters >> inside one single instream-foreign-object. >> > > I can't use a single instream-foreign-object because I have no idea > how many letters there are, so I have no idea what the height should > be. Using line-height="0.8em" is giving me good results though. I see. Still, even if you don't know how many letters there will be, you can still use one instream-foreign-object. I'd even say that you *do* now the number of characters, since you start from a full string which you split into separate chars. All you'd need to do is determine the string-length and set content-height/block-progression- dimension accordingly. FWIW... HTH! Cheers, Andreas --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
