Thanks Adrian and everyone,

I have sent it to you for you to take a look at it (font and FO). if there's something that is useful for me/others to know, please do tell me.

Otherwise, does anyone has any idea where else I can look for software solution that might accommodate this ?

William.

Adrian Cumiskey wrote:
Hi William,

Yes I think that might be the problem, it does look like an encoding problem to me. I took a quick look at the code and the NullPointerException you are experiencing would indicate that the encoding is not recognised by FOP and its failing to provide a CodePointMapping instance which is used internally by SingleByteFont.

If you send me the font (and fo) I will try and take a quick look at it.

Adrian.

william wrote:
Hi All,

First of all, would like to thank you all developers and commiters at FOP. i've been using it for awhile now.

I haven't had problem with embedding fonts before, except on this Bundesbahn-Pi font and another symbol/pi font. The error message is posted below.
I'm using fop 0.93 and I need help with embedding this font.

Is there anything to do with this?
/"currently present a problem because FOP cannot correctly determine the encoding of these two single-byte fonts through the PFM file. FOP now correctly interprets the "encoding" value in the XML font metrics file, but the PFMReader application writes "UnknownEncoding" to the generated XML file"

/If someone would try to work it out for me, i can send you the font to try out + .fo file.

This is my configuration for the font:
<font metrics-url="Bundesbahn.xml" kerning="yes" embed-url="Bundesba.pfb"> <font-triplet name="Bundesbahn" style="normal" weight="normal"/>
             </font>
/
*Error message generated by FOP:*
10/08/2007 06:16:13 org.apache.fop.cli.Main startFOP
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)
at org.apache.fop.layoutmgr.inline.TextLayoutManager.initialize(TextLayoutManager.java:188)
...........

Thank you,
/



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
William Liem        Email: [EMAIL PROTECTED]
Allette Systems Pty Ltd.
Level 2, 73 Union St
Pyrmont NSW 2009 Australia
Tel: +61 2 9660 8866
Fax: +61 2 9660 8869


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to