cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Satish_Gunda <Satish_Gu...@satyam.com>
Subject Embedding fonts - works from command line FOP but not in Cocoon 2
Date Fri, 15 Feb 2002 13:18:30 GMT
Hello,

I have searched the user forum for this and found that a lot of people seem
to encounter the same problem, so I'm posting it here.

After building metrics file and editing config file, I'm able to embed
OCR-B-1 font into a pdf file when I invoke FOP from command line. But when I
do this thru Cocoon, the font is being ignored and the default Times New
Roman font is being used instead. 

I have read the instructions given in the documentation. Tried giving
absolute path and relative path to the metrics file and font file in the
config file. 

My environment is Windows NT/Tomcat 4.0.1/Cocoon 2.

Can you provide pointers where I'm going wrong?

Thanks,
Satish


Log:
-------

[02.02.14 18:58:29:670 GMT+05:30] 140cf1c7 WebGroup      A SRVE0091I:
[Servlet LOG]: "DEBUG   (2002-02-14) 18:58.29:670   [fop     ]
(/webapp/cocoon/girotest/girotable.pdf) Worker#24/MessageHandler: reading
user configuration file
"
[02.02.14 18:58:29:960 GMT+05:30] 140cf1c7 WebGroup      A SRVE0091I:
[Servlet LOG]: "DEBUG   (2002-02-14) 18:58.29:960   [fop     ]
(/webapp/cocoon/girotest/girotable.pdf) Worker#24/MessageHandler: reading
user configuration file
"
[02.02.14 18:58:34:897 GMT+05:30] c382f1c3 WebGroup      A SRVE0091I:
[Servlet LOG]: "DEBUG   (2002-02-14) 18:58.34:897   [fop     ]
(/webapp/cocoon/girotest/girotable.pdf) Worker#24/MessageHandler: setting up
fonts
"
[02.02.14 18:58:36:660 GMT+05:30] c382f1c3 WebGroup      A SRVE0091I:
[Servlet LOG]: "ERROR   (2002-02-14) 18:58.36:660   [fop     ]
(/webapp/cocoon/girotest/girotable.pdf) Worker#24/MessageHandler: unknown
font OCRB,normal,normal so defaulted font to any
"


sitemap.xconf: 
----------------------

<map:serializer name="fo2pdf"
src="org.apache.cocoon.serialization.FOPSerializer"
mime-type="application/pdf">
<user-config src="D:/fop-fonts/config.xml"/>
</map:serializer>


config.xml:
-----------------

<configuration>
  <fonts>
      <font metrics-file="D:/giro/FG_OCRB1.TTF.xml" kerning="yes"
embed-file="D:/giro/Fg_ocrb1.ttf">
      <font-triplet name="OCRB" style="normal" weight="normal"/>
      </font>
  </fonts>
</configuration>




************************************************************************** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message