Re: Font 'Arial,normal,400' not found
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. Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Font 'Arial,normal,400' not found
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. and the the documentis printed in a wrong font. The fop.xconf looks like the following: flate ... The metric font file and the ttf font file are locating in the given directory. Is there anybody could give a hint why the document cannot be printed in the right font? Regards -- Dr. Andrea König (Entwicklung) G.punkt - medical services Halberstädter Str. 115A Eiskellerpassage 39112 Magdeburg Tel: +49 391 280380 Fax: +49 391 2803822 Inet: www.gmatic.de mail: [EMAIL PROTECTED] -- Dr. Andrea König (Entwicklung) G.punkt - medical services Halberstädter Str. 115A Eiskellerpassage 39112 Magdeburg Tel: +49 391 280380 Fax: +49 391 2803822 Inet: www.gmatic.de mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]