The problem is the "UnknownEncoding" in the XML. FOP did not recognize the encoding and can't handle a font like that. I'm sure it can be made to work with some coding but right now, the only thing you can try is to replace "UnknownEncoding" with "StandardEncoding" and check if it works. Otherwise, you should check out http://barcode4j.sourceforge.net as an alternative.
On 30.11.2006 00:56:54 Peter wrote: > Thanks for the reply, > > I started from a Type1 font for which, I have the impression, the -enc ansi > option is not supported/relevant. > > Attached the metrics file. > > All guidance where to look is appreciated, > > Thanks, > > Peter > > > -----Original Message----- > > From: J.Pietschmann [mailto:[EMAIL PROTECTED] > > Sent: Wednesday, November 29, 2006 11:32 PM > > To: fop-users@xmlgraphics.apache.org > > Subject: Re: NPE IN SingleByteFont.hasChar when using IDAutomationC39S > > font > > > > Peter wrote: > > > I am trying to use a Barcode font (IDAutomationC39S) and I am getting an > > NPE > > > with the following trace listed lower. > > > > Barcode fonts are tricky, because barcode glyphs are not separate > > unicode glyphs. > > It seems that the encoding for your font is unknown. Try to generate > > the font metrics using the -enc ansi, although I think you did this > > already. Would you mind sending in your metrics file? > > > > If all else fails, try the barcode4j extension or generate a SVG > > for the barcode and use this (there are XSLT style sheets out there > > for this purpose). > > > > J.Pietschmann Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]