Hi,


Sorry, I made an error (with the copy / paste operation), my FOP configuration 
file is the following one:



<?xml version="1.0" encoding="UTF-8"?>



<fop version="1.0">

       <renderers>

             <renderer mime="application/pdf">

                    <fonts>

                           <auto-detect />

                    </fonts>

             </renderer>

       </renderers>

</fop>



I don’t omit the starting <fonts> tag.



I have either no message “Font not found…”.



I try, without success, this FOP configuration file :



<?xml version="1.0" encoding="UTF-8"?>



<fop version="1.0">

       <renderers>

             <renderer mime="application/pdf">

                    <fonts>

                           <font kerning="yes" 
embed-url="file:///C:/Windows/fonts/calibri.ttf">

                                  <font-triplet name="Calibri" style="normal" 
weight="normal" />

                           </font>

                           <font kerning="yes" 
embed-url="file:///C:/Windows/fonts/calibrib.ttf">

                                  <font-triplet name="Calibrib" style="normal" 
weight="bold" />

                           </font>



                           <auto-detect />

                    </fonts>

             </renderer>

       </renderers>

</fop>



How to explain why there is no problem when I launch my program with Eclipse 
and there is a problem when I execute the program (Jar file) ?



<auto  -detect> is supposed to look for fonts installed on the PC, that the 
program is thrown under Eclipse or by the JAR file ?



Fabrice





De : Robert Meyer [mailto:rme...@hotmail.co.uk]
Envoyé : vendredi 3 avril 2015 12:55
À : fop-dev@xmlgraphics.apache.org
Objet : Re: Problem with FOP configuration auto detect



I'm guessing the omission of the starting <fonts> tag was a mistake when 
writing your message? If so do you get any messages going to the standard 
output? Usually something like “Font not found ‘<font>’, Substituting with …”. 
How are you referencing the font from your FO file?



Robert



From: Fabrice MAUPIN <mailto:fmau...@iback.fr>
Sent: ‎Friday‎, ‎3‎ ‎April‎ ‎2015 ‎11‎:‎01
To: fop-dev@xmlgraphics.apache.org



Hello everybody,

I use the FOP engine to generate PDF File in my JavaFX program, ok.

This is my FOP configuration file :

<?xml version="1.0" encoding="UTF-8"?>



<fop version="1.0">

       <renderers>

             <renderer mime="application/pdf">

                           <auto-detect />

                    </fonts>

             </renderer>

       </renderers>

</fop>

For information I use the Calibri Font (a system Font) to generate the PDF File.

When I execute my program with Eclipse, no problem the PDF file is correctly 
generated and  the Calibri Font is embedded into this file.

I build and package my program  : what generates one executable application.

When I execute my application, there is a problem : the PDF file is generated 
but the Calibri Font is not embedded into this file !

Any ideas ?

Thank you in advance.

Regards,

Fabrice









  _____


 <http://www.avast.com/>

L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
www.avast.com <http://www.avast.com/>







---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel 
antivirus Avast.
http://www.avast.com

Reply via email to