xmlgraphics-fop-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gregoire Meier <me...@epicard.ch>
Subject AFP & FOP Font Problem
Date Tue, 06 Sep 2011 19:51:49 GMT
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: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Mime
View raw message