
Thanks for pointing out the new instructions. I have created the metrics files and the fopConfiguration file. My metrics file starts off: <font-metrics metrics-version="2" type="TYPE0"> <font-name>TimesNewRomanPSMT</font-name> <full-name>Times New Roman</full-name> <family-name>Times New Roman</family-name> However, when I attempt to actually build my pdf file, I get the following two warnings and my font is not used: C:>fop -d -xml index.xml -xsl index.xsl -pdf index.pdf Mar 3, 2009 7:00:14 AM org.apache.fop.fonts.FontCache loadFrom WARNING: I/O exception while reading font cache (org.apache.fop.fonts.FontCache; local class incompatible: stream classdesc serialVersionUID = 605232520271754717, local class serialVersionUID = 605232520271754718). Discarding font cache file. Mar 3, 2009 7:00:16 AM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Times New Roman,normal,400' not found. Substituting with 'any,normal,400'. Any advice? Thanks, Mark

You did not specify the fopConfiguration file with the -c parameter in the command line that runs FOP. The font is not used because a config file that links the font name ('Times New Roman') and the font metrics file was not passed to FOP. Regards, Sorin Mark Wilson wrote:
Thanks for pointing out the new instructions. I have created the metrics files and the fopConfiguration file. My metrics file starts off: <font-metrics metrics-version="2" type="TYPE0"> <font-name>TimesNewRomanPSMT</font-name> <full-name>Times New Roman</full-name> <family-name>Times New Roman</family-name>
However, when I attempt to actually build my pdf file, I get the following two warnings and my font is not used:
C:>fop -d -xml index.xml -xsl index.xsl -pdf index.pdf
Mar 3, 2009 7:00:14 AM org.apache.fop.fonts.FontCache loadFrom WARNING: I/O exception while reading font cache (org.apache.fop.fonts.FontCache; local class incompatible: stream classdesc serialVersionUID = 605232520271754717, local class serialVersionUID = 605232520271754718). Discarding font cache file.
Mar 3, 2009 7:00:16 AM org.apache.fop.fonts.FontInfo notifyFontReplacement WARNING: Font 'Times New Roman,normal,400' not found. Substituting with 'any,normal,400'.
Any advice? Thanks, Mark
participants (2)
-
Mark Wilson
-
Sorin Ristache