cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matteo Di Giovinazzo" <matte...@infinito.it>
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 -->
<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" <paolo.bolla@fastwebnet.it>
To: <cocoon-users@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: <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


Mime
View raw message