XSL-FO special character to PDF

B

Bal

Hi,
I am trying to generate a pdf using a XML file and rendering the page
through XSL Stylesheet to a PDF. But the page has some special
characters, as its for a chequ website.

My Code below is

<--xsl:page-->

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template match="/">
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">.....
Ň

<--/xsl:page-->

My problem is that when the page renders in the PDF the special
character Ň
renders as just #.
I have trawled through most of the newsgroups and no luck, only to
know (or think) that the problem is with the unicoding.
Please could you help me
Thanks

Brandon
 
J

John Root

My problem is that when the page renders in the PDF the special
character Ň
renders as just #.

Brandon,

The font-family you are calling does not contain a glyph for this character.
Hence the output '#'. By default, FOP only uses the base 14 fonts.

To use a font that includes this glyph, you need to build a font metrics
file (in xml) for the font using either PFMReader or TTFReader (part of the
Apache FOP distribution), then register the font with FOP by modifying or
setting up an FOP configuration file.

John

~~~~~~~~~~~~~~
John Root
Publishing Systems
(e-mail address removed)
~~~~~~~~~~~~~~
 
B

Bal

John Root said:
Brandon,

The font-family you are calling does not contain a glyph for this character.
Hence the output '#'. By default, FOP only uses the base 14 fonts.

To use a font that includes this glyph, you need to build a font metrics
file (in xml) for the font using either PFMReader or TTFReader (part of the
Apache FOP distribution), then register the font with FOP by modifying or
setting up an FOP configuration file.

John

~~~~~~~~~~~~~~
John Root
Publishing Systems
(e-mail address removed)
~~~~~~~~~~~~~~



Thanks John,
I have tried changing the config file, and it seems to have worked:)))!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,817
Latest member
DicWeils

Latest Threads

Top