FopFactory fopFactory = FopFactory.newInstance();
FOUserAgent foUserAgent = fopFactory.newFOUserAgent();   
fopFactory.setUserConfig(new File("./conf/fop.xconf"));
out = new FileOutputStream(afp);
out = new BufferedOutputStream(out);
Fop fop = fopFactory.newFop(MimeConstants.MIME_AFP, foUserAgent, out);


---> 6 sept. 2011 17:43:39 org.apache.fop.render.afp.AFPRenderer setupFontInfo
ATTENTION: No AFP fonts configured - using default setup




Hi all,

I have some problems with FOP & AFP.
I would like to setup fonts for an AFP output.

The Java code is :

FopFactory fopFactory = FopFactory.newInstance();
FOUserAgent foUserAgent = fopFactory.newFOUserAgent();   
fopFactory.setUserConfig(new File("./conf/fop.xconf"));
out = new FileOutputStream(afp);
out = new BufferedOutputStream(out);
Fop fop = fopFactory.newFop(MimeConstants.MIME_AFP, foUserAgent, out);

and it always responds :
org.apache.fop.render.afp.AFPRenderer setupFontInfo
ATTENTION: No AFP fonts configured - using default setup


but into fop.xconf I have 
...
<renderer mime="application/x-afp">
  <afp-font type="raster" codepage="T1EX0000" encoding="Cp1146" path="./fonts/
ibm">
  <afp-raster-font size="5" characterset="C0ZA05K0"/>
   ...
 </afp-font>
  <font-triplet name="Arial" style="normal" weight="normal"/>
...


Any idea is welcome....

Thanks
Greg


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to