You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Satish_Gunda <Sa...@satyam.com> on 2002/02/15 13:40:49 UTC

Embedding fonts - works from command line FOP but not in Cocoon 2

> Hello,
> 
> 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 seen messages related to the same topic in the forum. A few people
> seemed to get this work. 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.
**************************************************************************

---------------------------------------------------------------------
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>