cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matteo Di Giovinazzo" <>
Subject Re: Embedded fonts on fop+cocoon2
Date Sun, 24 Mar 2002 01:28:02 GMT
See on FOP->FAQ for fonts inclusion in fop.

This userconfig.xml fragment works for me with Verdana font:
for Trebuchet font create your xml file from ttf.

(it's a strange misture of "file:" protocol and *empty* protocol!!!)

<!-- start userconfig.xml -->
 <font metrics-file="file:///C:/Fop-0.20.0/conf/verdana.ttf.xml"
   embed-file="C:\WINNT\Fonts\verdana.ttf" kerning="yes">
  <font-triplet name="Verdana" style="normal" weight="normal"/>
 <font metrics-file="file:///C:/Fop-0.20.0/conf/verdanab.ttf.xml"
   embed-file="C:\WINNT\Fonts\verdanab.ttf" kerning="yes">
  <font-triplet name="Verdana" style="normal" weight="bold"/>
 <font metrics-file="file:///C:/Fop-0.20.0/conf/verdanai.ttf.xml"
   embed-file="C:\WINNT\Fonts\verdanai.ttf" kerning="yes">
  <font-triplet name="Verdana" style="italic" weight="normal"/>
 <font metrics-file="file:///C:/Fop-0.20.0/conf/verdanaz.ttf.xml"
   embed-file="C:\WINNT\Fonts\verdanaz.ttf" kerning="yes">
  <font-triplet name="Verdana" style="italic" weight="bold"/>

<!-- end userconfig.xml -->


----- Original Message -----
From: "Fastweb" <>
To: <>
Sent: Sunday, March 24, 2002 1:55 AM
Subject: Embedded fonts on fop+cocoon2

please replay to

Help me, i use cocoon2 to make a PDF. I create a xml file with a servlet and
i use FOPSerializer to convert, using a xslt configuring a <user-config>
file, but i have on apache log this message:

[fop] HttpProcessor[8180][4]/MessageHandler: unknown font
Trebuchet,normal,normal so defaulted font to any.

I've already fixed the problem of user-config path files, i have put
absolute path or the relative path starting from $TOMCAT_HOME

How i can solve it?

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message