cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scherler, Thorsten" <>
Subject AW: FOP - Adding Font and compile the fop.jar for cocoon?
Date Fri, 15 Nov 2002 15:32:24 GMT
Hi Denis,

Once you created the xml font file, you should just update the
'conf/config.xml' file
that is included with the fop package shipped with cocoon and not replacing
this jar.
I got it working chinese chars and other ttf fonts.

Where is this config.xml? I can't find it anywhere. Neither in the scr nor in the bin distribution?



----- Original Message -----
From: "Scherler, Thorsten" <>
To: "Cocoon-Dev (E-Mail)" <>; "Cocoon-Users
(E-Mail)" <>
Sent: Friday, November 15, 2002 3:37 PM
Subject: FOP - Adding Font and compile the fop.jar for cocoon?

Hello group,

I have compiled a fop.jar where Arial is supported (I am not sure whether it
is compiled right). Now I replace the
PATHTo\webapps\cocoon\WEB-INF\lib\fop-0.20.3.jar with the new fop.jar. I
have name it fop-0.20.3.jar again. But now I am getting this error:
The org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode notifies
that org.apache.avalon.framework.configuration.ConfigurationException says:

Type 'fo2pdf' is not defined for 'serialize' at

More precisely:

org.apache.avalon.framework.configuration.ConfigurationException: Type
'fo2pdf' is not defined for 'serialize' at

But in the above mentioned sitemap there is <map:serializer name="fo2pdf"
logger="sitemap.serializer.fo2pdf" mime-type="application/pdf"/>. Which is
working fine withe original fop.jar of cocoon.

What am I doing wrong?

I found this page:

I did (there is a error if you use the original [...C:\myfonts\arial.ttf
C:\myfonts\arial.ttf arial.xml]):
java -cp
lib\batik.jar org.apache.fop.fonts.apps.TTFReader C:\myfonts\arial.ttf

Now I have:
TTF Reader v1.1.1

Reading C:\myfonts\arial.ttf...

Number of glyphs in font: 1296
Creating xml font file...

Creating CID encoded metrics
Writing xml font file C:\myfonts\arial.xml...

This font contains no embedding license restrictions

Then I did:
Register the fonts within FOP
Edit conf/userconfig.xml and add entries for the font if the fonts section,
 <font metrics-file="arial.xml" kerning="yes" embed-file="arial.ttf">
    <font-triplet name="Arial" style="normal" weight="normal"/>
    <font-triplet name="ArialMT" style="normal" weight="normal"/>

BUT I am using FOP as servlet (Tomcat and cocoon). I now have to compile a
fop.jar with my userconfig.xml, or not?
Then I have to replace the old fop.jar @tomcat\webapps\cocoon\WEB-INF\lib.
And then I have Arial within fo, or not

> Mit freundlichem Gruss,
> Thorsten Scherler
> Marketing / Telefonmarketing
> Weidmüller GmbH & Co.
> P.O. Box 2807
> 33058 Paderborn
> Tel.:+ 49 - 5252-960-350
> Fax:+ 49 - 5252-960-116
> eMail:

To unsubscribe, e-mail:
For additional commands, email:

To unsubscribe, e-mail:
For additional commands, email:

To unsubscribe, e-mail:
For additional commands, email:

View raw message