Hi,

 

I'm going the following error when attempting to use an AFM font file. If
you could provide any information on the cause that would be appreciated as
google came up a little short.

 

com.lowagie.text.DocumentException: Missing StartCharMetrics in
C:\\WINDOWS\\Fonts_AFM\\HelveNeuBla.AFM

        at com.lowagie.text.pdf.Type1Font.process(Unknown Source)

        at com.lowagie.text.pdf.Type1Font.<init>(Unknown Source)

        at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source)

        at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source)

        at com.lowagie.text.pdf.BaseFont.createFont(Unknown Source)

 

The code i'm using when creating the font is as follows :

 

return new
Font(BaseFont.createFont("C:\\WINDOWS\\Fonts_AFM\\HelveNeuBla.AFM",
BaseFont.CP1252,BaseFont.EMBEDDED));

 

Any help would be appreciated.

 

Regards

Damian

 

 

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to