You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Fastweb <pa...@fastwebnet.it> on 2002/03/24 01:55:02 UTC
Embedded fonts on fop+cocoon2
please replay to paolo@teorematour.it
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?
Re: Embedded fonts on fop+cocoon2
Posted by Matteo Di Giovinazzo <ma...@infinito.it>.
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 -->
<configuration>
<fonts>
<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>
<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>
<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>
<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"/>
</font>
</fonts>
</configuration>
<!-- end userconfig.xml -->
--
matteo
See www.unipdleague.da.ru = OUR FANTACALCIO LEAGUE!
--
----- Original Message -----
From: "Fastweb" <pa...@fastwebnet.it>
To: <co...@xml.apache.org>
Sent: Sunday, March 24, 2002 1:55 AM
Subject: Embedded fonts on fop+cocoon2
please replay to paolo@teorematour.it
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. <http://xml.apache.org/cocoon/faqs.html>
To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>