You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by "David J. B. Hollis" <dh...@AandOConsultancy.ltd.uk> on 2011/03/28 01:06:17 UTC

FOP 0.95 - Font metrics issue?

Hi All,

I'm using the DITA Open Toolkit, which includes FOP 0.95

It's producing this error:

      [fop] SEVERE: Failed to read font metrics file null
      [fop] java.io.EOFException: Reached EOF, file size=49872  
offset=49878
      [fop] 	at  
org 
.apache.fop.fonts.truetype.FontFileReader.seekSet(FontFileReader.java: 
86)
      [fop] 	at  
org 
.apache.fop.fonts.truetype.FontFileReader.seekAdd(FontFileReader.java: 
99)
      [fop] 	at  
org.apache.fop.fonts.truetype.FontFileReader.skip(FontFileReader.java: 
109)
      [fop] 	at  
org.apache.fop.fonts.truetype.TTFFile.readOS2(TTFFile.java:1016)
      [fop] 	at  
org.apache.fop.fonts.truetype.TTFFile.readFont(TTFFile.java:495)
      [fop] 	at  
org.apache.fop.fonts.truetype.TTFFontLoader.read(TTFFontLoader.java:58)
      [fop] 	at  
org.apache.fop.fonts.FontLoader.getFont(FontLoader.java:164)
      [fop] 	at  
org.apache.fop.fonts.FontLoader.loadFont(FontLoader.java:113)
etc, etc, etc ....

I thought that the font metrics URL wasn't required?

This maybe an obvious question, but I'd rather ask a daft question  
than create and add font metrics, only to find it's something else.

MTIA
David

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: FOP 0.95 - Font metrics issue?

Posted by "J.Pietschmann" <j3...@yahoo.de>.
On 28.03.2011 01:06, David J. B. Hollis wrote:
> [fop] SEVERE: Failed to read font metrics file null
..
> I thought that the font metrics URL wasn't required?

IIRC you need to have a font-base configured and pointing
to a directory with all additional font files you are using.
I you've already set this up correctly, try deleting the
font cache. Check
 
http://xmlgraphics.apache.org/fop/1.0/configuration.html#When+it+does+not+work
for further hints.

J.Pietschmann

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org