Andrea König wrote:
Hi all,
I am using fop-0.92 together with cocoon-2.1.9. I want the document is
printed in arial font. The metric font I generated. If I generate a pdf
document at the command line, the document is shown in the right font.
fop -c fop.xconf -xml source.xml -xsl template.xsl test.pdf
But if I try to print it out with
fop -c fop.xconf -xml source.xml -xsl template.xsl -print
I get the warning
WARNUNG: Font 'Arial,normal,400' not found. Substituting with default font.
23.01.2007 10:05:28 org.apache.fop.fonts.FontInfo notifyFontReplacement
WARNUNG: Font 'Arial,normal,700' not found. Substituting with default font.
This is becoming the FAQ of the week ;) The Print option uses the AWT
Renderer which is very different to the PDF Renderer and uses the Fonts
registered with the JVM not the Fonts in the config file. A better
alternative to printing on a printer is to generate Postscript and send
the output to the printer using operating system commands such as LPR.
This may seem a little annoying but you can easily modify fop.bat to
send the Postscript to the Printer using LPR command. Output from
Postscript is identical to output in PDF, where as output AWT Renderer
uses different font metrics, so lines end up getting broke in different
places and the output can look very different to PDF Renderer.
<snip/>
Chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]