Hi All, I am trying to embed OCR-B-1 font in the pdf document using cocoon2.0 on tomcat 4.0.1. I followed the instructions by pdf serializer and generated metrics file.
Here's my config.xml file - <configuration> <fonts> <font metrics-file="D:/fonts/FG_OCRB1.TTF.xml" kerning="yes" embed-file="d:/FONTS/Fg_ocrb1.ttf"> <font-triplet name="OCR-B-1" weight="normal"/> </font> </fonts> </configuration> Here's the snippet from metrics file - <font-name>OCR-B-1,Normal</font-name> I've embedded the font in the sitemap.xmap as follows - <map:serializer name="fo2pdf" src="org.apache.cocoon.serialization.FOPSerializer" mime-type="application/pdf"> <user-config src="D:/fonts/config.xml"/> </map:serializer> Now when i try to convert the xml file, i am getting the pdf but with default font. The message in log file is - "unknown font OCR-B-1,normal,normal so defaulted font to any" I am using the ocr-b-1 font in my xml file like this - <fo:table-body font-family="OCR-B-1" font-weight="normal" font-size="12pt"> Can someone tell where i am going wrong. Thanks & Regards, Anil.K ************************************************************************** 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: <[EMAIL PROTECTED]> For additional commands, e-mail: <[EMAIL PROTECTED]>