You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by zhaiyun <zh...@sunjapan.com.cn> on 2002/07/23 07:43:06 UTC

unknown font error?

Hi
    I am running cocoon-2.0.2 under tomcat-4.0.3 and fop-0.20.3. 
when i used fop to generate PDF. 
following are defined in the userConfig.xml

  <font metrics-file="F:/project/OTSYS/simsun.xml" kerning="yes" embed-file="F:/project/OTSYS/simsun.ttc">
   <font-triplet name="mysimsun" style="normal" weight="normal"/>
  </font>

following error out in the logs of tomcat:

    2002-07-23 13:26:50 ERROR   (2002-07-23) 13:26.50:017   [fop     ] (/OTSYS/report/bill/APL) HttpProcessor[8080][0]/MessageHandler: unknown font mysimsun,normal,normal so defaulted font to any


Anyone got any ideas?

Thanks!

ZhaiYun

Re: unknown font error?

Posted by zhaiyun <zh...@sunjapan.com.cn>.
I have defined in sitemap.xmap as following:

   <map:serializer logger="sitemap.serializer.fop"
mime-type="application/pdf" name="fo2pdf"
src="org.apache.cocoon.serialization.FOPSerializer">
    <user-config src="F:/project/OTSYS/userConfig.xml"/>
   </map:serializer>


----- Original Message -----
From: "Antonio Fiol Bonni'n" <fi...@w3ping.com>
To: <fo...@xml.apache.org>
Sent: Tuesday, July 23, 2002 2:19 PM
Subject: Re: unknown font error?


> zhaiyun wrote:
>
> > following are defined in the userConfig.xml
> > Anyone got any ideas?
>
>
> Are you using that userconfig.xml file? You need to specify which config
> file FOP should use.
>
> Only a dumb idea, but worth verifying.
>
>
> Antonio Fiol
>


Re: unknown font error?

Posted by Antonio Fiol Bonni'n <fi...@w3ping.com>.
zhaiyun wrote:

> following are defined in the userConfig.xml
> Anyone got any ideas?


Are you using that userconfig.xml file? You need to specify which config
file FOP should use.

Only a dumb idea, but worth verifying.


Antonio Fiol