Hi
    I am running cocoon-2.0.2 under tomcat-4.0.3 and fop-0.20.3.
i used fop to generate PDF.

useconfig file is specified 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>

following are defined in the userconfig.xml

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

in fo i use mysimsun as following:

     <fo:block-container position="absolute" top="16mm" left="5mm"
        width="100mm" height="16mm" font-size="8pt">
      <fo:block text-align="left" font-family="mysimsun">
       <xsl:value-of select="shipper_co_addr" />
      </fo:block>
     </fo:block-container>

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

who can point out the miss?

Thanks!

ZhaiYun


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>

Reply via email to