Page 1 of 1

Small caps in PDF output

Posted: Thu Mar 17, 2011 7:28 pm
by chymical
Hi,

Has anyone else had a problem trying to get Small caps in PDF output?

In my attribute set, I have this line as one of the attributes:

<xsl:attribute name="font-variant">small-caps</xsl:attribute>

The .fo file has output on all the correct blocks, like:

<fo:block font-size="10" font-variant="small-caps" space-after="0.6em">Some text</fo:block>

The PDF file never has any small cap text. Can anyone think of a reason why this is not working?

Thanks,

John

Re: Small caps in PDF output

Posted: Fri Mar 18, 2011 11:10 am
by Radu
Hi John,

Apache FOP does not seem to have any support for font-variant:
http://xmlgraphics.apache.org/fop/compl ... nt-variant

From what I've tested neither does XEP.

Regards,
Radu

Re: Small caps in PDF output

Posted: Mon May 09, 2011 4:22 pm
by Briotti
I solved this problem in FOP adopting a dedicated small cap font variant, say Times New Roman Small Cap and declaring a configuration xml file for FOP to embed the font in PDF output.