Jeremias Maerki wrote:
Executive summary: the AFM alone is usually sufficient.

Both AFM and PFM contain a different set of font metrics. For
well-behaved Type1 fonts, the AFM alone is sufficient. When testing I
found at least one font where the PFM provided some information that
wasn't contained in the AFM. The Type1FontLoader class (responsible for
loading a Type 1 font) usually prefers information from the AFM if both
are available.

Thanks for the explanation, I gave it a go and got this:

SEVERE: Failed to read font metrics file null
java.io.EOFException at java.io.DataInputStream.readShort(DataInputStream.java:377) at org.apache.fop.fonts.type1.PFMInputStream.readShort(PFMInputStream.java:66) at org.apache.fop.fonts.type1.PFMFile.loadKernPairs(PFMFile.java:188) at org.apache.fop.fonts.type1.PFMFile.loadExtension(PFMFile.java:162)

Looking at the source code it appears there is a bug. Clearly, the font metrics file is null in the exception output, but looking at LazyFont.java I think that the actual metrics file to use is not determined from this variable. As far as I can tell it is calculated from the embed-url filename by swapping the extension.

The error itself seems to be an unexpected EOF. It would of course be helpful to know which metrics file FOP was trying to process :)

Ulrich


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

Reply via email to