You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Petr Andrs <pa...@artax.karlin.mff.cuni.cz> on 2001/05/19 19:37:27 UTC

problem with embedding TTF font

Hi,

I am receiving following error when trying to embed following TTF 
(Xerox Sans Serif Narrow, Italic). Can some TTF expert state that this 
is FOP error or it is caused by mangled font (normal style of this font 
works fine).

pa

ERROR: null
org.apache.fop.apps.FOPException
	at 
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:65)
	at org.apache.fop.apps.Fop.main(Fop.java:19)

---------

java.lang.NullPointerException
	at 
org.apache.fop.fonts.TTFSubSetFile.remapComposite(TTFSubSetFile.java:465
)
	at 
org.apache.fop.fonts.TTFSubSetFile.scanGlyphs(TTFSubSetFile.java:545)
	at org.apache.fop.fonts.TTFSubSetFile.readFont(TTFSubSetFile.java:579)
	at 
org.apache.fop.render.pdf.fonts.MultiByteFont.getFontFile(MultiByteFont.
java:180)
	at 
org.apache.fop.pdf.PDFDocument.makeFontDescriptor(PDFDocument.java:864)
	at org.apache.fop.pdf.PDFDocument.makeFont(PDFDocument.java:768)
	at 
org.apache.fop.render.pdf.FontSetup.addToResources(FontSetup.java:282)
	at org.apache.fop.render.pdf.PDFRenderer.render(PDFRenderer.java:133)
	at org.apache.fop.apps.Driver.render(Driver.java:471)
	at 
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:60)
	at org.apache.fop.apps.Fop.main(Fop.java:19)


RE: problem with embedding TTF font

Posted by Tore Engvig <te...@manamind.com>.
Are you able to use this font with other applications? I tried to open it is
MS Volt and Volt crashed when i tried to view some glyphs.
This error indicates that some composite glyphs have wrong offsets, it
*could* of course be a bug in TTFSubSetFile (it should not generate a null
pointer exception anyway, but handle it in some way - ie terminate the
composite chain?).


Tore

-----Original Message-----
From: Petr Andrs [mailto:pand6029@artax.karlin.mff.cuni.cz]
Sent: Saturday, May 19, 2001 19:37
To: fop-dev@xml.apache.org
Subject: problem with embedding TTF font


Hi,

I am receiving following error when trying to embed following TTF
(Xerox Sans Serif Narrow, Italic). Can some TTF expert state that this
is FOP error or it is caused by mangled font (normal style of this font
works fine).

pa

ERROR: null
org.apache.fop.apps.FOPException
	at
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:65)
	at org.apache.fop.apps.Fop.main(Fop.java:19)

---------

java.lang.NullPointerException
	at
org.apache.fop.fonts.TTFSubSetFile.remapComposite(TTFSubSetFile.java:465
)
	at
org.apache.fop.fonts.TTFSubSetFile.scanGlyphs(TTFSubSetFile.java:545)
	at org.apache.fop.fonts.TTFSubSetFile.readFont(TTFSubSetFile.java:579)
	at
org.apache.fop.render.pdf.fonts.MultiByteFont.getFontFile(MultiByteFont.
java:180)
	at
org.apache.fop.pdf.PDFDocument.makeFontDescriptor(PDFDocument.java:864)
	at org.apache.fop.pdf.PDFDocument.makeFont(PDFDocument.java:768)
	at
org.apache.fop.render.pdf.FontSetup.addToResources(FontSetup.java:282)
	at org.apache.fop.render.pdf.PDFRenderer.render(PDFRenderer.java:133)
	at org.apache.fop.apps.Driver.render(Driver.java:471)
	at
org.apache.fop.apps.CommandLineStarter.run(CommandLineStarter.java:60)
	at org.apache.fop.apps.Fop.main(Fop.java:19)



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org