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 Abhijit Junnare <ma...@yahoo.com> on 2003/10/29 21:17:01 UTC
font-variant property getting inherited ?
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>
I expect the output to be
SOME SMALL CAPS TEXT regular text SOME SMALL CAPS TEXT
but here is what I get
SOME SMALL CAPS TEXT REGULAR TEXT SOME SMALL CAPS TEXT
I am using xsl and fop to render a PDF. the sample FO
above i generated using xalan utility that comes with
fop.
Is there anything that I need to modify in my
stylesheet. Depending on the attributes on the
elements in XML I am setting the font-variant property
in XSL and looks like XSL is working correctly as
verified from the intermediate FO.
Any help is appreciated.
Thanks,
Abhi
__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
RE: font-variant property getting inherited ?
Posted by "Andreas L. Delmelle" <a_...@pandora.be>.
> -----Original Message-----
> From: Abhijit Junnare [mailto:mavlaabhi@yahoo.com]
>
> 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: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org
Re: font-variant property getting inherited ?
Posted by Abhijit Junnare <ma...@yahoo.com>.
Replying to myself.
Oops it is workijng. The capital was coming from XML i
mean the xml said REGULAR TEXT instead of regular
text.
Thanks,
Abhi
--- Abhijit Junnare <ma...@yahoo.com> wrote:
> 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>
>
> I expect the output to be
>
> SOME SMALL CAPS TEXT regular text SOME SMALL CAPS
> TEXT
>
> but here is what I get
>
> SOME SMALL CAPS TEXT REGULAR TEXT SOME SMALL CAPS
> TEXT
>
> I am using xsl and fop to render a PDF. the sample
> FO
> above i generated using xalan utility that comes
> with
> fop.
>
> Is there anything that I need to modify in my
> stylesheet. Depending on the attributes on the
> elements in XML I am setting the font-variant
> property
> in XSL and looks like XSL is working correctly as
> verified from the intermediate FO.
> Any help is appreciated.
> Thanks,
> Abhi
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> Exclusive Video Premiere - Britney Spears
> http://launch.yahoo.com/promos/britneyspears/
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> fop-user-unsubscribe@xml.apache.org
> For additional commands, e-mail:
> fop-user-help@xml.apache.org
>
__________________________________
Do you Yahoo!?
Exclusive Video Premiere - Britney Spears
http://launch.yahoo.com/promos/britneyspears/
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-user-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-user-help@xml.apache.org