You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by zhaiyun <zh...@sunjapan.com.cn> on 2002/07/23 10:33:32 UTC
unknown font error
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
Anyone got any ideas?
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: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>
Re: unknown font error
Posted by Oleg Tkachenko <ol...@multiconn.com>.
zhaiyun wrote:
> 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?
Try to turn on debug mode somehow in order to see what's going on.
--
Oleg Tkachenko
Multiconn International, Israel