Small caps in PDF output

Here should go questions about transforming XML with XSLT and FOP.
chymical
Posts: 16
Joined: Wed Nov 24, 2010 12:37 pm

Small caps in PDF output

Post 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
Radu
Posts: 9439
Joined: Fri Jul 09, 2004 5:18 pm

Re: Small caps in PDF output

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Briotti
Posts: 16
Joined: Mon Jan 10, 2011 6:02 pm

Re: Small caps in PDF output

Post 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.
Post Reply