Alright, that's easy: Just don't register your own Symbol font and just use the implicit Symbol font that's in the Base 14 font set and everything should work.
On 13.03.2007 00:40:25 Jeff Powanda wrote: > Yes, I'm using Type 1 fonts. I've attached a ZIP file containing the > AFM, PFM, and XML files for the Symbol (Type 1) font. > > I used org.apache.fop.fonts.apps.PFMReader to generate the XML file from > the PFM file. Here's the command I used to do that: > > java -cp > "..\..\fop093\lib\commons-io-1.1.jar;..\..\fop093\build\fop.jar;..\..\fo > p093\lib\xercesImpl.jar;..\..\fop093\lib\xalan.jar;..\..\fop093\lib\comm > ons-logging-1.0.4.jar" org.apache.fop.fonts.apps.PFMReader > PFM/SY______.PFM output/SY______.xml > > Regards, > Jeff Powanda > Vocera Communications > Senior Technical Writer > 408-790-4256 > > > -----Original Message----- > From: Jeremias Maerki [mailto:[EMAIL PROTECTED] > Sent: Monday, March 12, 2007 3:12 PM > To: fop-users@xmlgraphics.apache.org > Subject: Re: FOP 0.93: NullPointerException > > You seem to be using custom fonts, so it is difficult for me to > reproduce the problem. In my own tests, everything worked fine. I > suspect you are using a font which has a special encoding that is not > handled properly by FOP. Are you using Type 1 fonts or TrueType fonts? > Given that the error happens in SingleByteFont I assume Type 1. In that > case, try the TrueType equivalents if you can get them. Otherwise, > please post one of the XML font metric files you generated for your > fonts. > > On 12.03.2007 21:02:04 Jeff Powanda wrote: > > I'm using xsltproc.exe and FOP 0.93 to try to convert DocBook 4 > (version > > 1.72) to PDF output. I keep getting this NullPointerException. From > > other messages posted here, I assumed it had to do with an older > version > > of Xalan included with JRE 1.5, but I've placed the FOP 0.93 JAR files > > into the <JRE>\lib\endorsed folder and that hasn't fixed the problem. > > Anyone have any idea what's wrong. I've attached the FO file I'm > using. > > > > > > > > SEVERE: Exception > > > > java.lang.NullPointerException > > > > at > > org.apache.fop.cli.InputHandler.transformTo(InputHandler.java:168) > > > > at > org.apache.fop.cli.InputHandler.renderTo(InputHandler.java:115) > > > > at org.apache.fop.cli.Main.startFOP(Main.java:160) > > > > at org.apache.fop.cli.Main.main(Main.java:191) > > > > > > > > --------- > > > > > > > > java.lang.NullPointerException > > > > at > > org.apache.fop.fonts.SingleByteFont.hasChar(SingleByteFont.java:103) > > > > at org.apache.fop.fonts.LazyFont.hasChar(LazyFont.java:166) > > > > at org.apache.fop.fonts.Font.hasChar(Font.java:189) > > > > at org.apache.fop.fonts.Font.getCharWidth(Font.java:231) > <snip/> > > > Jeremias Maerki Jeremias Maerki --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]