> -----Original Message-----
> From: Abhijit Junnare [mailto:[EMAIL PROTECTED]
>
> I am having trouble with the font variant property.
> Here is my sample FO
>
> <fo:inline font-family="Arial"
> font-variant="small-caps">some small caps text
> <fo:inline font-family="Arial"
> font-variant="normal">regular text</fo:inline> some
> small caps text</fo:inline>
>

Hmmm, using nested fo:inline's... not exactly my favourite choice.

> I expect the output to be
>
> SOME SMALL CAPS TEXT regular text SOME SMALL CAPS TEXT
>

Can you make it:

<fo:inline font-family="Arial" font-variant="normal">
  <fo:inline font-variant="small-caps">some small caps text</fo:inline>
  <fo:inline> some regular text </fo:inline>
  <fo:inline font-variant="small-caps">some small caps text</fo:inline>
</fo:inline>

?

> but here is what I get
>
> SOME SMALL CAPS TEXT REGULAR TEXT SOME SMALL CAPS TEXT
>

It's weird but consider it this way:
You have one (surrounding) fo:inline with a property requiring its
text-content to be converted to uppercase. I'm betting the font-variant
setting on the inner fo:inline *is* having an impact, but just not the one
you'd expect...

Greetz,

Andreas


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

Reply via email to