Try to get DEBUG logs from org.apache.fop.fonts using log4j, I am not sure you
can get them from the Cocoon logs...
I remember solving my issue using these logs because it showed that I needed to
map "SansSerif" to my nice new Arial Unicode font...
Here is the font declaration in fop.xconf:
<font metrics-url="file:///X:/somewhere/arial_uni.xml" kerning="yes"
embed-url="file:///X:/somewhere/ARIAL_UNI.TTF">
<font-triplet name="Arial" style="normal" weight="normal"/>
<font-triplet name="Arial" style="normal" weight="bold"/>
<font-triplet name="Arial" style="italic" weight="normal"/>
<font-triplet name="Arial" style="italic" weight="bold"/>
<font-triplet name="Arial Unicode MS" style="normal" weight="normal"/>
<font-triplet name="Arial Unicode MS" style="normal" weight="bold"/>
<font-triplet name="Arial Unicode MS" style="italic" weight="normal"/>
<font-triplet name="Arial Unicode MS" style="italic" weight="bold"/>
<font-triplet name="SansSerif" style="normal" weight="normal"/>
<font-triplet name="SansSerif" style="normal" weight="bold"/>
<font-triplet name="SansSerif" style="italic" weight="normal"/>
<font-triplet name="SansSerif" style="italic" weight="bold"/>
</font>
I do not know what your document content is but you should try to match all the
possible font triplets from your document...
Laurent
-----Original Message-----
From: Faehndrich Philippe [mailto:[email protected]]
Sent: lundi, 8. novembre 2010 17:09
To: [email protected]
Subject: Re: FOPSerializer user config
Le lundi 08 novembre 2010 10.50:00, Laurent Medioni a écrit :
> Hi,
> The first syntax should work.
> Are you sure the font added in font-config.xml is actually used in your
> document ? To be sure try to get some more logs from fop in DEBUG. It
> should display some messages about what fonts are used...
>
> Laurent
The problem is, with DEBUG, Cocoon gives me a huge amount of informations in
the log file, but just about nothing concerning the fo2pdf process.
Just like if the FOPSerializer wouldn't write a single line in the log file.
Is there a way to get specifically more details on the fo2pdf process in the
log file?
Philippe
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
____________________________________________________________
• This email and any files transmitted with it are CONFIDENTIAL and intended
solely for the use of the individual or entity to which they are addressed.
• Any unauthorized copying, disclosure, or distribution of the material within
this email is strictly forbidden.
• Any views or opinions presented within this e-mail are solely those of the
author and do not necessarily represent those of Odyssey Financial
Technologies SA unless otherwise specifically stated.
• An electronic message is not binding on its sender. Any message referring to
a binding engagement must be confirmed in writing and duly signed.
• If you have received this email in error, please notify the sender immediately
and delete the original.